Struct SurfaceCreateInfo

Struct Documentation

struct SurfaceCreateInfo

Public Types

enum Type

Values:

enumerator kInvalid

Type not specified.

enumerator kOffscreen

Surface not associated with a windowing system.

enumerator kWin32

Win32 window.

enumerator kX11

Xcb or Xlib window.

enumerator kWayland

Wayland compositor.

enumerator kCocoa

Cocoa (MacOS) window.

enumerator kAndroid

Android surface.

Public Members

Type type = kInvalid

Type of window (window system) for surface.

int32_t x = 0

X coordinate of top-left corner of surface (if applicable)

int32_t y = 0

Y coordinate of top-left corner of surface (if applicable)

int32_t width = 0

(2D) Width of surface (pixels/texels)

int32_t height = 0

(2D) Height of surface (pixels/texels)