Module render_v1

Source

Structs§

CameraDeprecated
CameraBits
bytemuck-generated type for internal purposes only.
Environment
Global scene rendering parameters.
GltfFlags
Line
MeshDataInfo
MeshDataInfoFlags
MeshStreamLayout
MeshStreamLayoutBits
bytemuck-generated type for internal purposes only.
RawIsoTransform
FFI-safe version of macaw::IsoTransform. See macaw’s documentation for more information.
Rectangle
Used to restrict the drawing of 2d triangles to a specific region.
RenderMaterial
RenderMeshInstance
RenderMeshInstance2
RenderMeshSection
Section of a mesh.
RenderMeshStyle
RenderMeshStyleFlags
SdfInstanceData2
Describes an instance of an Sdf function to be rendered.
SkinnedSdfInstanceData2

Enums§

MeshComponentFormat
Mesh component format for a stream
MeshPrimitiveTopology
Mesh primitive topology
MeshStreamSemantic
Mesh semantic to describe what a stream contains

Constants§

INVALID_RESOURCE_HANDLE

Statics§

API
FFI API

Functions§

create_mesh_from_gltf
Creates a mesh from an included GLTF file, from the module directory.
create_mesh_from_gltf_resource
Creates a mesh directly from GLTF referred to by a resource handle.
create_mesh_from_gltf_with_flags
Creates a mesh from an included GLTF file, from the module directory.
create_mesh_from_gltf_with_flags_name
Creates a mesh from an included GLTF file, from the module directory.
create_named_mesh_with_materials_and_sections
Create a mesh and return a handle to it.
destroy_mesh
Schedule a mesh for destruction.
draw_debug_lines
Draws debug lines.
draw_meshes
Draw a mesh with the specified world transform matrix and mesh style.
draw_meshes2
Draw a mesh with the specified world transform matrix and mesh style. The world transform will be combined with the camera transform.
draw_meshes_with_materials
Draw a mesh with the specified world transform matrix, mesh style and materials.
draw_sdf_model2
Draws 1 or more instances of an SDF model.
get_mesh_data_info
Obtain info about the mesh. (Index count, vertex count etc)
get_mesh_data_name
Obtain info about the mesh. (Index count, vertex count etc)
get_mesh_data_stream
Obtain a mesh stream (vertex attributes) from a RenderMeshHandle.
render__create_mesh_from_gltf
Creates a mesh from an included GLTF file, from the module directory.
render__create_mesh_from_gltf_resource
Creates a mesh directly from GLTF referred to by a resource handle.
render__create_mesh_from_gltf_with_flags
Creates a mesh from an included GLTF file, from the module directory.
render__create_mesh_from_gltf_with_flags_name
Creates a mesh from an included GLTF file, from the module directory.
render__create_named_mesh_with_materials_and_sections
Create a mesh and return a handle to it.
render__destroy_mesh
Schedule a mesh for destruction.
render__draw_debug_lines
Draws debug lines.
render__draw_meshes
Draw a mesh with the specified world transform matrix and mesh style.
render__draw_meshes2
Draw a mesh with the specified world transform matrix and mesh style. The world transform will be combined with the camera transform.
render__draw_meshes_with_materials
Draw a mesh with the specified world transform matrix, mesh style and materials.
render__draw_sdf_model2
Draws 1 or more instances of an SDF model.
render__get_mesh_data_info
Obtain info about the mesh. (Index count, vertex count etc)
render__get_mesh_data_name
Obtain info about the mesh. (Index count, vertex count etc)
render__get_mesh_data_stream
Obtain a mesh stream (vertex attributes) from a RenderMeshHandle.
render__set_cameraDeprecated
set_cameraDeprecated

Type Aliases§

RenderMeshHandle
ResourceHandleRepr
A raw handle to a unique resource
SdfHandle