mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 20:52:36 +01:00
Updated bindings.
This commit is contained in:
@@ -2490,7 +2490,7 @@ public static class bgfx
|
||||
public static extern void init_ctor(Init* _init);
|
||||
|
||||
/// <summary>
|
||||
/// Initialize bgfx library.
|
||||
/// Initialize the bgfx library.
|
||||
/// </summary>
|
||||
///
|
||||
/// <param name="_init">Initialization parameters. See: `bgfx::Init` for more info.</param>
|
||||
@@ -2507,13 +2507,13 @@ public static class bgfx
|
||||
|
||||
/// <summary>
|
||||
/// Reset graphic settings and back-buffer size.
|
||||
/// @attention This call doesn't actually change window size, it just
|
||||
/// resizes back-buffer. Windowing code has to change window size.
|
||||
/// @attention This call doesn’t change the window size, it just resizes
|
||||
/// the back-buffer. Your windowing code controls the window size.
|
||||
/// </summary>
|
||||
///
|
||||
/// <param name="_width">Back-buffer width.</param>
|
||||
/// <param name="_height">Back-buffer height.</param>
|
||||
/// <param name="_flags">See: `BGFX_RESET_*` for more info. - `BGFX_RESET_NONE` - No reset flags. - `BGFX_RESET_FULLSCREEN` - Not supported yet. - `BGFX_RESET_MSAA_X[2/4/8/16]` - Enable 2, 4, 8 or 16 x MSAA. - `BGFX_RESET_VSYNC` - Enable V-Sync. - `BGFX_RESET_MAXANISOTROPY` - Turn on/off max anisotropy. - `BGFX_RESET_CAPTURE` - Begin screen capture. - `BGFX_RESET_FLUSH_AFTER_RENDER` - Flush rendering after submitting to GPU. - `BGFX_RESET_FLIP_AFTER_RENDER` - This flag specifies where flip occurs. Default behaviour is that flip occurs before rendering new frame. This flag only has effect when `BGFX_CONFIG_MULTITHREADED=0`. - `BGFX_RESET_SRGB_BACKBUFFER` - Enable sRGB backbuffer.</param>
|
||||
/// <param name="_flags">See: `BGFX_RESET_*` for more info. - `BGFX_RESET_NONE` - No reset flags. - `BGFX_RESET_FULLSCREEN` - Not supported yet. - `BGFX_RESET_MSAA_X[2/4/8/16]` - Enable 2, 4, 8 or 16 x MSAA. - `BGFX_RESET_VSYNC` - Enable V-Sync. - `BGFX_RESET_MAXANISOTROPY` - Turn on/off max anisotropy. - `BGFX_RESET_CAPTURE` - Begin screen capture. - `BGFX_RESET_FLUSH_AFTER_RENDER` - Flush rendering after submitting to GPU. - `BGFX_RESET_FLIP_AFTER_RENDER` - This flag specifies where flip occurs. Default behaviour is that flip occurs before rendering new frame. This flag only has effect when `BGFX_CONFIG_MULTITHREADED=0`. - `BGFX_RESET_SRGB_BACKBUFFER` - Enable sRGB back-buffer.</param>
|
||||
/// <param name="_format">Texture format. See: `TextureFormat::Enum`.</param>
|
||||
///
|
||||
[LinkName("bgfx_reset")]
|
||||
@@ -2757,7 +2757,7 @@ public static class bgfx
|
||||
public static extern DynamicIndexBufferHandle create_dynamic_index_buffer(uint32 _num, uint16 _flags);
|
||||
|
||||
/// <summary>
|
||||
/// Create dynamic index buffer and initialized it.
|
||||
/// Create a dynamic index buffer and initialize it.
|
||||
/// </summary>
|
||||
///
|
||||
/// <param name="_mem">Index buffer data.</param>
|
||||
@@ -3066,7 +3066,7 @@ public static class bgfx
|
||||
public static extern TextureHandle create_texture_2d(uint16 _width, uint16 _height, bool _hasMips, uint16 _numLayers, TextureFormat _format, uint64 _flags, Memory* _mem);
|
||||
|
||||
/// <summary>
|
||||
/// Create texture with size based on backbuffer ratio. Texture will maintain ratio
|
||||
/// Create texture with size based on back-buffer ratio. Texture will maintain ratio
|
||||
/// if back buffer resolution changes.
|
||||
/// </summary>
|
||||
///
|
||||
@@ -3220,7 +3220,7 @@ public static class bgfx
|
||||
public static extern FrameBufferHandle create_frame_buffer(uint16 _width, uint16 _height, TextureFormat _format, uint64 _textureFlags);
|
||||
|
||||
/// <summary>
|
||||
/// Create frame buffer with size based on backbuffer ratio. Frame buffer will maintain ratio
|
||||
/// Create frame buffer with size based on back-buffer ratio. Frame buffer will maintain ratio
|
||||
/// if back buffer resolution changes.
|
||||
/// </summary>
|
||||
///
|
||||
@@ -3468,8 +3468,8 @@ public static class bgfx
|
||||
|
||||
/// <summary>
|
||||
/// Set view clear flags with different clear color for each
|
||||
/// frame buffer texture. Must use `bgfx::setPaletteColor` to setup clear color
|
||||
/// palette.
|
||||
/// frame buffer texture. `bgfx::setPaletteColor` must be used to set up a
|
||||
/// clear color palette.
|
||||
/// </summary>
|
||||
///
|
||||
/// <param name="_id">View id.</param>
|
||||
@@ -3513,8 +3513,8 @@ public static class bgfx
|
||||
public static extern void set_view_frame_buffer(ViewId _id, FrameBufferHandle _handle);
|
||||
|
||||
/// <summary>
|
||||
/// Set view view and projection matrices, all draw primitives in this
|
||||
/// view will use these matrices.
|
||||
/// Set view's view matrix and projection matrix,
|
||||
/// all draw primitives in this view will use these two matrices.
|
||||
/// </summary>
|
||||
///
|
||||
/// <param name="_id">View id.</param>
|
||||
@@ -3573,7 +3573,7 @@ public static class bgfx
|
||||
/// <summary>
|
||||
/// Set render states for draw primitive.
|
||||
/// @remarks
|
||||
/// 1. To setup more complex states use:
|
||||
/// 1. To set up more complex states use:
|
||||
/// `BGFX_STATE_ALPHA_REF(_ref)`,
|
||||
/// `BGFX_STATE_POINT_SIZE(_size)`,
|
||||
/// `BGFX_STATE_BLEND_FUNC(_src, _dst)`,
|
||||
@@ -4121,7 +4121,7 @@ public static class bgfx
|
||||
/// <summary>
|
||||
/// Set render states for draw primitive.
|
||||
/// @remarks
|
||||
/// 1. To setup more complex states use:
|
||||
/// 1. To set up more complex states use:
|
||||
/// `BGFX_STATE_ALPHA_REF(_ref)`,
|
||||
/// `BGFX_STATE_POINT_SIZE(_size)`,
|
||||
/// `BGFX_STATE_BLEND_FUNC(_src, _dst)`,
|
||||
|
||||
Reference in New Issue
Block a user