Structs§
- Bone
Transform - Describes the transform of a bone. More compact and more defined than a Mat4.
- Bounding
Box - Used for 3D culling and tessellation applications.
- Rectangle
- Used to restrict the drawing of 2d triangles to a specific region.
- SdfInstance
Data - Describes an instance of an Sdf function to be rendered.
- Skinned
SdfInstance Data - Texture
Description - Describes a texture and is used for texture creation.
- Texture
Description Bits bytemuck
-generated type for internal purposes only.
Enums§
- Texture
Format - Describes how a texture stores its data.
- Texture
Type - Defines the type of texture.
Statics§
- API
- FFI API
Functions§
- create_
sdf_ model - Creates an SDF model from a Saft program.
- create_
texture - Create a texture, returning a handle to it.
- destroy_
sdf_ model - Destroys an SDF model.
- destroy_
texture - Destroy a
TextureHandle
’s associated texture data. - draw_
sdf_ model - Draws 1 or more instances of an SDF model.
- draw_
textured_ triangles_ 2d - Draw colored 2D textured triangles in screen space (physical pixel coordinates).
- draw_
triangles_ 2d - Draw colored 2D triangles in screen space (physical pixel coordinates).
- render__
create_ ⚠sdf_ model - Creates an SDF model from a Saft program.
- render__
create_ ⚠texture - Create a texture, returning a handle to it.
- render__
destroy_ ⚠sdf_ model - Destroys an SDF model.
- render__
destroy_ ⚠texture - Destroy a
TextureHandle
’s associated texture data. - render__
draw_ ⚠sdf_ model - Draws 1 or more instances of an SDF model.
- render__
draw_ ⚠textured_ triangles_ 2d - Draw colored 2D textured triangles in screen space (physical pixel coordinates).
- render__
draw_ ⚠triangles_ 2d - Draw colored 2D triangles in screen space (physical pixel coordinates).
- render__
update_ ⚠texture - Updates a subrectangle of a texture with new data.
- update_
texture - Updates a subrectangle of a texture with new data.
Type Aliases§
- SdfHandle
- Texture
Handle - Handle to a texture in Ark.