|
|
@@ -690,6 +690,12 @@ enum.ViewMode { underscore, comment = "View modes:" }
|
|
|
.DepthDescending --- Sort draw call depth in descending order.
|
|
|
()
|
|
|
|
|
|
+--- Native window handle type.
|
|
|
+enum.NativeWindowHandleType { underscore, comment = "Native Window handle type:" }
|
|
|
+ .Default --- Platform default handle type (X11 on Linux).
|
|
|
+ .Wayland --- Wayland.
|
|
|
+ ()
|
|
|
+
|
|
|
--- Render frame enum.
|
|
|
enum.RenderFrame { underscore, comment = "" }
|
|
|
.NoContext --- Renderer context is not created yet.
|
|
|
@@ -774,15 +780,16 @@ struct.InternalData
|
|
|
|
|
|
--- Platform data.
|
|
|
struct.PlatformData { ctor }
|
|
|
- .ndt "void*" --- Native display type (*nix specific).
|
|
|
- .nwh "void*" --- Native window handle. If `NULL`, bgfx will create a headless
|
|
|
- --- context/device, provided the rendering API supports it.
|
|
|
- .context "void*" --- GL context, D3D device, or Vulkan device. If `NULL`, bgfx
|
|
|
- --- will create context/device.
|
|
|
- .backBuffer "void*" --- GL back-buffer, or D3D render target view. If `NULL` bgfx will
|
|
|
- --- create back-buffer color surface.
|
|
|
- .backBufferDS "void*" --- Backbuffer depth/stencil. If `NULL`, bgfx will create a back-buffer
|
|
|
- --- depth/stencil surface.
|
|
|
+ .ndt "void*" --- Native display type (*nix specific).
|
|
|
+ .nwh "void*" --- Native window handle. If `NULL`, bgfx will create a headless
|
|
|
+ --- context/device, provided the rendering API supports it.
|
|
|
+ .context "void*" --- GL context, D3D device, or Vulkan device. If `NULL`, bgfx
|
|
|
+ --- will create context/device.
|
|
|
+ .backBuffer "void*" --- GL back-buffer, or D3D render target view. If `NULL` bgfx will
|
|
|
+ --- create back-buffer color surface.
|
|
|
+ .backBufferDS "void*" --- Backbuffer depth/stencil. If `NULL`, bgfx will create a back-buffer
|
|
|
+ --- depth/stencil surface.
|
|
|
+ .type "NativeWindowHandleType::Enum" --- Handle type. Needed for platforms having more than one option.
|
|
|
|
|
|
--- Backbuffer resolution and reset parameters.
|
|
|
struct.Resolution { ctor }
|