diff --git a/bgfx.html b/bgfx.html index feebb6412..c144b2a3f 100644 --- a/bgfx.html +++ b/bgfx.html @@ -239,7 +239,7 @@ tutorial.
structbgfx::Init¶Initialization parameters used by bgfx::init.
C99 equivalent is bgfx_init_t.
C99’s equivalent binding is bgfx_init_t.
Limits¶Configurable runtime limits parameters.
C99 equivalent is bgfx_init_limits_t.
C99’s equivalent binding is bgfx_init_limits_t.
bgfx::Resolution¶Backbuffer resolution and reset parameters.
C99 equivalent is bgfx_resolution_t.
C99’s equivalent binding is bgfx_resolution_t.
bgfx::init(const Init &_init = {})¶Initialize bgfx library.
+Initialize the bgfx library.
true if initialization was successful.
C99 equivalent is bgfx_init.
C99’s equivalent binding is bgfx_init.
[in] _init: Initialization parameters. See: bgfx::Init for more info.
’fatal’ and ‘trace’ callbacks can be called from any thread. Other callbacks are called from the render thread.
C99 equivalent is bgfx_callback_interface_t.
C99’s equivalent binding is bgfx_callback_interface_t.
Not thread safe and it can be called from any thread.
C99 equivalent is bgfx_callback_vtbl.fatal.
C99’s equivalent binding is bgfx_callback_vtbl.fatal.
[in] _filePath: File path where fatal message was generated.
Not thread safe and it can be called from any thread.
C99 equivalent is bgfx_callback_vtbl.trace_vargs.
C99’s equivalent binding is bgfx_callback_vtbl.trace_vargs.
[in] _filePath: File path where debug message was generated.
Not thread safe and it can be called from any thread.
C99 equivalent is bgfx_callback_vtbl.profiler_begin.
C99’s equivalent binding is bgfx_callback_vtbl.profiler_begin.
[in] _name: Region name, contains dynamic string.
Not thread safe and it can be called from any thread.
C99 equivalent is bgfx_callback_vtbl.profiler_begin_literal.
C99’s equivalent binding is bgfx_callback_vtbl.profiler_begin_literal.
[in] _name: Region name, contains string literal.
Not thread safe and it can be called from any thread.
C99 equivalent is bgfx_callback_vtbl.profiler_end.
C99’s equivalent binding is bgfx_callback_vtbl.profiler_end.
Number of bytes to read.
C99 equivalent is bgfx_callback_vtbl.cache_read_size.
C99’s equivalent binding is bgfx_callback_vtbl.cache_read_size.
[in] _id: Cache id.
True if data is read.
C99 equivalent is bgfx_callback_vtbl.cache_read.
C99’s equivalent binding is bgfx_callback_vtbl.cache_read.
[in] _id: Cache id.
cacheWrite(uint64_t _id, const void *_data, uint32_t _size) = 0¶Write cached item.
C99 equivalent is bgfx_callback_vtbl.cache_write.
C99’s equivalent binding is bgfx_callback_vtbl.cache_write.
[in] _id: Cache id.
screenShot(const char *_filePath, uint32_t _width, uint32_t _height, uint32_t _pitch, const void *_data, uint32_t _size, bool _yflip) = 0¶Screenshot captured. Screenshot format is always 4-byte BGRA.
C99 equivalent is bgfx_callback_vtbl.screen_shot.
C99’s equivalent binding is bgfx_callback_vtbl.screen_shot.
[in] _filePath: File path.
captureBegin(uint32_t _width, uint32_t _height, uint32_t _pitch, TextureFormat::Enum _format, bool _yflip) = 0¶Called when a video capture begins.
C99 equivalent is bgfx_callback_vtbl.capture_begin.
C99’s equivalent binding is bgfx_callback_vtbl.capture_begin.
[in] _width: Image width.
captureEnd() = 0¶Called when a video capture ends.
C99 equivalent is bgfx_callback_vtbl.capture_end.
C99’s equivalent binding is bgfx_callback_vtbl.capture_end.
captureFrame(const void *_data, uint32_t _size) = 0¶Captured frame.
C99 equivalent is bgfx_callback_vtbl.capture_frame.
C99’s equivalent binding is bgfx_callback_vtbl.capture_frame.
[in] _data: Image data.
bgfx::shutdown()¶Shutdown bgfx library.
C99 equivalent is bgfx_shutdown.
C99’s equivalent binding is bgfx_shutdown.
bgfx::reset(uint32_t _width, uint32_t _height, uint32_t _flags = BGFX_RESET_NONE, TextureFormat::Enum _format = TextureFormat::Count)¶Reset graphic settings and back-buffer size.
This call doesn’t actually change window size, it just resizes back-buffer. Windowing code has to change window size.
+This call doesn’t change the window size, it just resizes the back-buffer. Your windowing code controls the window size.
C99 equivalent is bgfx_reset.
C99’s equivalent binding is bgfx_reset.
[in] _width: Back-buffer width.
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 behavior 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.
BGFX_RESET_SRGB_BACKBUFFER - Enable sRGB back-buffer.
[in] _format: Texture format. See: TextureFormat::Enum.
Current frame number. This might be used in conjunction with double/multi buffering data outside the library and passing it to library via bgfx::makeRef calls.
C99 equivalent is bgfx_frame.
C99’s equivalent binding is bgfx_frame.
[in] _capture: Capture frame with graphics debugger.
bgfx::setDebug(uint32_t _debug)¶Set debug flags.
C99 equivalent is bgfx_set_debug.
C99’s equivalent binding is bgfx_set_debug.
[in] _debug: Available flags:
bgfx::dbgTextClear(uint8_t _attr = 0, bool _small = false)¶Clear internal debug text buffer.
C99 equivalent is bgfx_dbg_text_clear.
C99’s equivalent binding is bgfx_dbg_text_clear.
[in] _attr: Background color.
bgfx::dbgTextPrintf(uint16_t _x, uint16_t _y, uint8_t _attr, const char *_format, ...)¶Print into internal debug text character-buffer (VGA-compatible text mode).
C99 equivalent is bgfx_dbg_text_printf.
C99’s equivalent binding is bgfx_dbg_text_printf.
[in] _x[in] _y: 2D position from top-left.
bgfx::dbgTextPrintfVargs(uint16_t _x, uint16_t _y, uint8_t _attr, const char *_format, va_list _argList)¶Print into internal debug text character-buffer (VGA-compatible text mode).
C99 equivalent is bgfx_dbg_text_vprintf.
C99’s equivalent binding is bgfx_dbg_text_vprintf.
[in] _x[in] _y: 2D position from top-left.
bgfx::dbgTextImage(uint16_t _x, uint16_t _y, uint16_t _width, uint16_t _height, const void *_data, uint16_t _pitch)¶Draw image into internal debug text buffer.
C99 equivalent is bgfx_dbg_text_image.
C99’s equivalent binding is bgfx_dbg_text_image.
[in] _x[in] _y: 2D position from top-left.
Number of supported renderers.
C99 equivalent is bgfx_get_supported_renderers.
C99’s equivalent binding is bgfx_get_supported_renderers.
[in] _max: Maximum number of elements in _enum array.
Library must be initialized.
C99 equivalent is bgfx_get_renderer_type.
C99’s equivalent binding is bgfx_get_renderer_type.
bgfx::RendererType¶Renderer backend type enum.
C99 equivalent is bgfx_renderer_type_t.
C99’s equivalent binding is bgfx_renderer_type_t.
Library must be initialized.
C99 equivalent is bgfx_get_caps.
C99’s equivalent binding is bgfx_get_caps.
bgfx::Caps¶Renderer capabilities.
C99 equivalent is bgfx_caps_t.
C99’s equivalent binding is bgfx_caps_t.
GPU¶GPU info.
C99 equivalent is bgfx_caps_gpu_t.
C99’s equivalent binding is bgfx_caps_gpu_t.
Limits¶Renderer runtime limits.
C99 equivalent is bgfx_caps_limits_t.
C99’s equivalent binding is bgfx_caps_limits_t.
Pointer returned is valid until bgfx::frame is called.
C99 equivalent is bgfx_get_stats.
C99’s equivalent binding is bgfx_get_stats.
bgfx::Stats¶Renderer statistics data.
C99 equivalent is bgfx_stats_t.
C99’s equivalent binding is bgfx_stats_t.
All time values are high-resolution timestamps, while time frequencies define timestamps-per-second for that hardware.
bgfx::ViewStats¶View stats.
C99 equivalent is bgfx_view_stats_t.
C99’s equivalent binding is bgfx_view_stats_t.
bgfx::EncoderStats¶Encoder stats.
C99 equivalent is bgfx_encoder_stats_t.
C99’s equivalent binding is bgfx_encoder_stats_t.
This call should be only used on platforms that don’t allow creating separate rendering thread. If it is called before to bgfx::init, render thread won’t be created by bgfx::init call.
C99 equivalent is bgfx_render_frame.
C99’s equivalent binding is bgfx_render_frame.
_msecs: Timeout in milliseconds.
RenderFrame¶Render frame enum.
C99 equivalent is bgfx_render_frame_t.
C99’s equivalent binding is bgfx_render_frame_t.
Must be called before bgfx::init.
C99 equivalent is bgfx_set_platform_data.
C99’s equivalent binding is bgfx_set_platform_data.
bgfx::PlatformData¶Platform data.
C99 equivalent is bgfx_platform_data_t.
C99’s equivalent binding is bgfx_platform_data_t.
nwh¶Native window handle. If NULL bgfx will create headless context/device if renderer API supports it.
Native window handle. If NULL, bgfx will create a headless context/device, provided the rendering API supports it.
context¶GL context, or D3D device. If NULL, bgfx will create context/device.
GL context, D3D device, or Vulkan device. If NULL, bgfx will create context/device.
backBufferDS¶Backbuffer depth/stencil. If NULL bgfx will create back-buffer depth/stencil surface.
Backbuffer depth/stencil. If NULL, bgfx will create a back-buffer depth/stencil surface.
Must be called only on render thread.
C99 equivalent is bgfx_get_internal_data.
C99’s equivalent binding is bgfx_get_internal_data.
bgfx::InternalData¶Internal data.
C99 equivalent is bgfx_internal_data_t.
C99’s equivalent binding is bgfx_internal_data_t.
Must be called only on render thread.
C99 equivalent is bgfx_override_internal_texture_ptr.
C99’s equivalent binding is bgfx_override_internal_texture_ptr.
[in] _handle: Texture handle.
Must be called only on render thread.
C99 equivalent is bgfx_override_internal_texture.
C99’s equivalent binding is bgfx_override_internal_texture.
[in] _handle: Texture handle.
bgfx::vertexPack(const float _input[4], bool _inputNormalized, Attrib::Enum _attr, const VertexLayout &_layout, void *_data, uint32_t _index = 0)¶Pack vertex attribute into vertex stream format.
C99 equivalent is bgfx_vertex_pack.
C99’s equivalent binding is bgfx_vertex_pack.
[in] _input: Value to be packed into vertex stream.
bgfx::vertexUnpack(float _output[4], Attrib::Enum _attr, const VertexLayout &_layout, const void *_data, uint32_t _index = 0)¶Unpack vertex attribute from vertex stream format.
C99 equivalent is bgfx_vertex_unpack.
C99’s equivalent binding is bgfx_vertex_unpack.
[out] _output: Result of unpacking.
bgfx::vertexConvert(const VertexLayout &_destLayout, void *_destData, const VertexLayout &_srcLayout, const void *_srcData, uint32_t _num = 1)¶Converts vertex stream data from one vertex stream format to another.
C99 equivalent is bgfx_vertex_convert.
C99’s equivalent binding is bgfx_vertex_convert.
[in] _destLayout: Destination vertex stream layout.
Number of unique vertices after vertex welding.
C99 equivalent is bgfx_weld_vertices.
C99’s equivalent binding is bgfx_weld_vertices.
[in] _output: Welded vertices remapping table. The size of buffer must be the same as number of vertices.
bgfx::TopologyConvert¶Topology conversion function.
C99 equivalent is bgfx_topology_convert_t.
C99’s equivalent binding is bgfx_topology_convert_t.
Number of output indices after conversion.
C99 equivalent is bgfx_topology_convert.
C99’s equivalent binding is bgfx_topology_convert.
[in] _conversion: Conversion type, see TopologyConvert::Enum.
bgfx::TopologySort¶Topology sort order.
C99 equivalent is bgfx_topology_sort_t.
C99’s equivalent binding is bgfx_topology_sort_t.
bgfx::topologySortTriList(TopologySort::Enum _sort, void *_dst, uint32_t _dstSize, const float _dir[3], const float _pos[3], const void *_vertices, uint32_t _stride, const void *_indices, uint32_t _numIndices, bool _index32)¶Sort indices.
C99 equivalent is bgfx_topology_sort_tri_list.
C99’s equivalent binding is bgfx_topology_sort_tri_list.
[in] _sort: Sort order, see TopologySort::Enum.
bgfx::discard(uint8_t _flags = BGFX_DISCARD_ALL)¶Discard all previously set state for draw or compute call.
C99 equivalent is bgfx_discard.
C99’s equivalent binding is bgfx_discard.
[in] _flags: Draw/compute states to discard.
Submit an empty primitive for rendering. Uniforms and draw state will be applied but no geometry will be submitted.
These empty draw calls will sort before ordinary draw calls.
C99 equivalent is bgfx_touch.
C99’s equivalent binding is bgfx_touch.
[in] _id: View id.
bgfx::setPaletteColor(uint8_t _index, uint32_t _rgba)¶Set palette color value.
C99 equivalent is bgfx_set_palette_color.
C99’s equivalent binding is bgfx_set_palette_color.
[in] _index: Index into palette.
bgfx::setPaletteColor(uint8_t _index, const float _rgba[4])¶Set palette color value.
C99 equivalent is bgfx_set_palette_color.
C99’s equivalent binding is bgfx_set_palette_color.
[in] _index: Index into palette.
bgfx::setPaletteColor(uint8_t _index, float _r, float _g, float _b, float _a)¶Set palette color value.
C99 equivalent is bgfx_set_palette_color.
C99’s equivalent binding is bgfx_set_palette_color.
[in] _index: Index into palette.
Frame buffer handle must be created with OS’ target native window handle.
C99 equivalent is bgfx_request_screen_shot.
C99’s equivalent binding is bgfx_request_screen_shot.
[in] _handle: Frame buffer handle. If handle is BGFX_INVALID_HANDLE request will be made for main window back buffer.
C99 equivalent is bgfx_set_view_name.
C99’s equivalent binding is bgfx_set_view_name.
bgfx::setViewRect(ViewId _id, uint16_t _x, uint16_t _y, uint16_t _width, uint16_t _height)¶Set view rectangle. Draw primitive outside view will be clipped.
C99 equivalent is bgfx_set_view_rect.
C99’s equivalent binding is bgfx_set_view_rect.
[in] _id: View id.
bgfx::setViewRect(ViewId _id, uint16_t _x, uint16_t _y, BackbufferRatio::Enum _ratio)¶Set view rectangle. Draw primitive outside view will be clipped.
C99 equivalent is bgfx_set_view_rect_ratio.
C99’s equivalent binding is bgfx_set_view_rect_ratio.
[in] _id: View id.
bgfx::setViewScissor(ViewId _id, uint16_t _x = 0, uint16_t _y = 0, uint16_t _width = 0, uint16_t _height = 0)¶Set view scissor. Draw primitive outside view will be clipped. When _x, _y, _width and _height are set to 0, scissor will be disabled.
C99 equivalent is bgfx_set_view_scissor.
C99’s equivalent binding is bgfx_set_view_scissor.
[in] _id: View id.
bgfx::setViewClear(ViewId _id, uint16_t _flags, uint32_t _rgba = 0x000000ff, float _depth = 1.0f, uint8_t _stencil = 0)¶Set view clear flags.
C99 equivalent is bgfx_set_view_clear.
C99’s equivalent binding is bgfx_set_view_clear.
[in] _id: View id.
bgfx::setViewClear(ViewId _id, uint16_t _flags, float _depth, uint8_t _stencil, uint8_t _0 = UINT8_MAX, uint8_t _1 = UINT8_MAX, uint8_t _2 = UINT8_MAX, uint8_t _3 = UINT8_MAX, uint8_t _4 = UINT8_MAX, uint8_t _5 = UINT8_MAX, uint8_t _6 = UINT8_MAX, uint8_t _7 = UINT8_MAX)¶Set view clear flags with different clear color for each frame buffer texture. Must use bgfx::setPaletteColor to setup clear color palette.
Set view clear flags with different clear color for each frame buffer texture. bgfx::setPaletteColor must be used to set up a clear color palette.
C99 equivalent is bgfx_set_view_clear_mrt.
C99’s equivalent binding is bgfx_set_view_clear_mrt.
[in] _id: View id.
bgfx::ViewMode¶View mode sets draw call sort order.
C99 equivalent is bgfx_view_mode_t.
C99’s equivalent binding is bgfx_view_mode_t.
View mode must be set prior calling bgfx::submit for the view.
C99 equivalent is bgfx_set_view_mode.
C99’s equivalent binding is bgfx_set_view_mode.
[in] _id: View id.
Not persistent after bgfx::reset call.
C99 equivalent is bgfx_set_view_frame_buffer.
C99’s equivalent binding is bgfx_set_view_frame_buffer.
[in] _id: View id.
bgfx::setViewTransform(ViewId _id, const void *_view, const void *_proj)¶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.
C99 equivalent is bgfx_set_view_transform.
C99’s equivalent binding is bgfx_set_view_transform.
[in] _id: View id.
bgfx::setViewOrder(ViewId _id = 0, uint16_t _num = UINT16_MAX, const ViewId *_remap = NULL)¶Post submit view reordering.
C99 equivalent is bgfx_set_view_order.
C99’s equivalent binding is bgfx_set_view_order.
[in] _id: First view id.
bgfx::resetView(ViewId _id)¶Reset all view settings to default.
C99 equivalent is bgfx_reset_view.
C99’s equivalent binding is bgfx_reset_view.
[in] _id: View id.
bgfx::Encoder¶Encoders are used for submitting draw calls from multiple threads. Only one encoder per thread should be used. Use bgfx::begin() to obtain an encoder for a thread.
C99 equivalent is bgfx_encoder.
C99’s equivalent binding is bgfx_encoder.
setMarker(const char *_marker)¶Sets a debug marker. This allows you to group graphics calls together for easy browsing in graphics debugging tools.
C99 equivalent is bgfx_encoder_set_marker.
C99’s equivalent binding is bgfx_encoder_set_marker.
Set render states for draw primitive.
To setup more complex states use: BGFX_STATE_ALPHA_REF(_ref), BGFX_STATE_POINT_SIZE(_size), BGFX_STATE_BLEND_FUNC(_src, _dst), BGFX_STATE_BLEND_FUNC_SEPARATE(_srcRGB, _dstRGB, _srcA, _dstA), BGFX_STATE_BLEND_EQUATION(_equation), BGFX_STATE_BLEND_EQUATION_SEPARATE(_equationRGB, _equationA)
To set up more complex states use: BGFX_STATE_ALPHA_REF(_ref), BGFX_STATE_POINT_SIZE(_size), BGFX_STATE_BLEND_FUNC(_src, _dst), BGFX_STATE_BLEND_FUNC_SEPARATE(_srcRGB, _dstRGB, _srcA, _dstA), BGFX_STATE_BLEND_EQUATION(_equation), BGFX_STATE_BLEND_EQUATION_SEPARATE(_equationRGB, _equationA)
BGFX_STATE_BLEND_EQUATION_ADD is set when no other blend equation is specified.
C99 equivalent is bgfx_encoder_set_state.
C99’s equivalent binding is bgfx_encoder_set_state.
[in] _state: State flags. Default state for primitive type is triangles. See: BGFX_STATE_DEFAULT.
setCondition(OcclusionQueryHandle _handle, bool _visible)¶Set condition for rendering.
C99 equivalent is bgfx_encoder_set_condition.
C99’s equivalent binding is bgfx_encoder_set_condition.
[in] _handle: Occlusion query handle.
setStencil(uint32_t _fstencil, uint32_t _bstencil = BGFX_STENCIL_NONE)¶Set stencil test state.
C99 equivalent is bgfx_encoder_set_stencil.
C99’s equivalent binding is bgfx_encoder_set_stencil.
[in] _fstencil: Front stencil state.
Scissor cache index.
C99 equivalent is bgfx_encoder_set_scissor.
C99’s equivalent binding is bgfx_encoder_set_scissor.
[in] _x: Position x from the left side of the window.
setScissor(uint16_t _cache = UINT16_MAX)¶Set scissor from cache for draw primitive.
C99 equivalent is bgfx_encoder_set_scissor_cached.
C99’s equivalent binding is bgfx_encoder_set_scissor_cached.
[in] _cache: Index in scissor cache. Pass UINT16_MAX to have primitive use view scissor instead.
Index into matrix cache in case the same model matrix has to be used for other draw primitive call.
C99 equivalent is bgfx_encoder_set_transform.
C99’s equivalent binding is bgfx_encoder_set_transform.
[in] _mtx: Pointer to first matrix in array.
Pointer returned can be modified until bgfx::frame is called.
C99 equivalent is bgfx_encoder_alloc_transform.
C99’s equivalent binding is bgfx_encoder_alloc_transform.
[in] _transform: Pointer to Transform structure.
setTransform(uint32_t _cache, uint16_t _num = 1)¶Set model matrix from matrix cache for draw primitive.
C99 equivalent is bgfx_encoder_set_transform_cached.
C99’s equivalent binding is bgfx_encoder_set_transform_cached.
[in] _cache: Index in matrix cache.
setUniform(UniformHandle _handle, const void *_value, uint16_t _num = 1)¶Set shader uniform parameter for draw primitive.
C99 equivalent is bgfx_encoder_set_uniform.
C99’s equivalent binding is bgfx_encoder_set_uniform.
[in] _handle: Uniform.
setIndexBuffer(IndexBufferHandle _handle)¶Set index buffer for draw primitive.
C99 equivalent is bgfx_encoder_set_index_buffer.
C99’s equivalent binding is bgfx_encoder_set_index_buffer.
[in] _handle: Index buffer.
setIndexBuffer(IndexBufferHandle _handle, uint32_t _firstIndex, uint32_t _numIndices)¶Set index buffer for draw primitive.
C99 equivalent is bgfx_encoder_set_index_buffer.
C99’s equivalent binding is bgfx_encoder_set_index_buffer.
[in] _handle: Index buffer.
setIndexBuffer(DynamicIndexBufferHandle _handle)¶Set index buffer for draw primitive.
C99 equivalent is bgfx_encoder_set_dynamic_index_buffer.
C99’s equivalent binding is bgfx_encoder_set_dynamic_index_buffer.
[in] _handle: Dynamic index buffer.
setIndexBuffer(DynamicIndexBufferHandle _handle, uint32_t _firstIndex, uint32_t _numIndices)¶Set index buffer for draw primitive.
C99 equivalent is bgfx_encoder_set_dynamic_index_buffer.
C99’s equivalent binding is bgfx_encoder_set_dynamic_index_buffer.
[in] _handle: Dynamic index buffer.
setIndexBuffer(const TransientIndexBuffer *_tib)¶Set index buffer for draw primitive.
C99 equivalent is bgfx_encoder_set_transient_index_buffer.
C99’s equivalent binding is bgfx_encoder_set_transient_index_buffer.
[in] _tib: Transient index buffer.
setIndexBuffer(const TransientIndexBuffer *_tib, uint32_t _firstIndex, uint32_t _numIndices)¶Set index buffer for draw primitive.
C99 equivalent is bgfx_encoder_set_transient_index_buffer.
C99’s equivalent binding is bgfx_encoder_set_transient_index_buffer.
[in] _tib: Transient index buffer.
setVertexBuffer(uint8_t _stream, VertexBufferHandle _handle)¶Set vertex buffer for draw primitive.
C99 equivalent is bgfx_encoder_set_vertex_buffer.
C99’s equivalent binding is bgfx_encoder_set_vertex_buffer.
[in] _stream: Vertex stream.
setVertexBuffer(uint8_t _stream, VertexBufferHandle _handle, uint32_t _startVertex, uint32_t _numVertices, VertexLayoutHandle _layoutHandle = BGFX_INVALID_HANDLE)¶Set vertex buffer for draw primitive.
C99 equivalent is bgfx_encoder_set_vertex_buffer.
C99’s equivalent binding is bgfx_encoder_set_vertex_buffer.
[in] _stream: Vertex stream.
setVertexBuffer(uint8_t _stream, DynamicVertexBufferHandle _handle)¶Set vertex buffer for draw primitive.
C99 equivalent is bgfx_encoder_set_dynamic_vertex_buffer.
C99’s equivalent binding is bgfx_encoder_set_dynamic_vertex_buffer.
[in] _stream: Vertex stream.
setVertexBuffer(uint8_t _stream, DynamicVertexBufferHandle _handle, uint32_t _startVertex, uint32_t _numVertices, VertexLayoutHandle _layoutHandle = BGFX_INVALID_HANDLE)¶Set vertex buffer for draw primitive.
C99 equivalent is bgfx_encoder_set_dynamic_vertex_buffer.
C99’s equivalent binding is bgfx_encoder_set_dynamic_vertex_buffer.
[in] _stream: Vertex stream.
setVertexBuffer(uint8_t _stream, const TransientVertexBuffer *_tvb)¶Set vertex buffer for draw primitive.
C99 equivalent is bgfx_encoder_set_transient_vertex_buffer.
C99’s equivalent binding is bgfx_encoder_set_transient_vertex_buffer.
[in] _stream: Vertex stream.
setVertexBuffer(uint8_t _stream, const TransientVertexBuffer *_tvb, uint32_t _startVertex, uint32_t _numVertices, VertexLayoutHandle _layoutHandle = BGFX_INVALID_HANDLE)¶Set vertex buffer for draw primitive.
C99 equivalent is bgfx_encoder_set_transient_vertex_buffer.
C99’s equivalent binding is bgfx_encoder_set_transient_vertex_buffer.
[in] _stream: Vertex stream.
Availability depends on: BGFX_CAPS_VERTEX_ID.
C99 equivalent is bgfx_encoder_set_vertex_count.
C99’s equivalent binding is bgfx_encoder_set_vertex_count.
[in] _numVertices: Number of vertices.
setInstanceDataBuffer(const InstanceDataBuffer *_idb)¶Set instance data buffer for draw primitive.
C99 equivalent is bgfx_encoder_set_instance_data_buffer.
C99’s equivalent binding is bgfx_encoder_set_instance_data_buffer.
[in] _idb: Transient instance data buffer.
setInstanceDataBuffer(const InstanceDataBuffer *_idb, uint32_t _start, uint32_t _num)¶Set instance data buffer for draw primitive.
C99 equivalent is bgfx_encoder_set_instance_data_buffer.
C99’s equivalent binding is bgfx_encoder_set_instance_data_buffer.