Crate rend3_types

Source
Expand description

Type declarations for the rend3 3D rendering crate.

This is reexported in the rend3 crate proper and includes all the “surface” api arguments.

Re-exports§

pub use glam;

Structs§

Backends
Represents the backends that wgpu will use.
Camera
Describes how the camera should look at the scene.
Color
RGBA double precision color.
DirectionalLight
Describes how directional lights (sun lights) and their shadows should be processed.
DirectionalLightChange
Describes a modification to a DirectionalLight.
Mesh
A mesh that may be used by many objects.
MeshBuilder
Easy to use builder for a Mesh that deals with common operations for you.
Object
An object in the world that is composed of a Mesh and Material.
ObjectChange
Describes a modification to a Object.
RawResourceHandle
Non-owning resource handle.
ResourceHandle
Owning resource handle. Used as part of rend3’s interface.
Skeleton
A Skeleton stores the necessary data to do vertex skinning for an Object.
Texture
A bitmap image used as a data source for a texture.
TextureFromTexture
Describes a texture made from the mipmaps of another texture.
TextureUsages
Different ways that you can use a texture.

Enums§

Backend
Backends supported by wgpu.
CameraProjection
Describes how the world should be projected into the camera.
DeviceType
Supported physical device types.
Handedness
Describes the “Handedness” of a given coordinate system. Affects math done in the space.
MeshValidationError
Error returned from mesh validation.
MipmapCount
The count of mipmap levels a texture should have.
MipmapSource
How texture mipmaps get generated.
ObjectMeshKind
Source of a mesh for an object.
PresentMode
Behavior of the presentation engine based on frame rate.
SampleCount
The sample count when doing multisampling.
TextureFormat
Underlying texture data format.
VertexBufferType
Identifies the semantic use of a vertex buffer.

Constants§

MAX_VERTEX_COUNT
The maximum amount of vertices any one object can have.

Traits§

Material
Interface that all materials must use.

Type Aliases§

DirectionalLightHandle
Refcounted handle to a DirectionalLight.
MaterialHandle
Refcounted handle to a MaterialTag.
MeshHandle
Refcounted handle to a Mesh.
ObjectHandle
Refcounted handle to a Object.
RawDirectionalLightHandle
Internal non-owning handle to a DirectionalLight.
RawMaterialHandle
Internal non-owning handle to a MaterialTag.
RawMeshHandle
Internal non-owning handle to a Mesh.
RawObjectHandle
Internal non-owning handle to a Object.
RawSkeletonHandle
Internal non-owning handle to a Skeleton.
RawTextureHandle
Internal non-owning handle to a Texture.
SkeletonHandle
Refcounted handle to a Skeleton.
TextureHandle
Refcounted handle to a Texture.