Enum turbine_scene3d::Command[][src]

pub enum Command {
Show 32 variants UseProgram(Program), SetModelViewProjection(Matrix4Uniform), SetModel(Matrix4Uniform), SetView(Matrix4Uniform), SetTexture(Texture), SetF32(F32Uniformf32), SetVector2(Vector2UniformVector2<f32>), SetVector3(Vector3UniformVector3<f32>), SetMatrix4(Matrix4UniformMatrix4<f32>), EnableFrameBufferSRGB, DisableFrameBufferSRGB, EnableBlend, DisableBlend, EnableCullFace, DisableCullFace, CullFaceFront, CullFaceBack, CullFaceFrontAndBack, DrawTriangles(VertexArrayusize), DrawTriangleStrip(VertexArrayusize), DrawLines(VertexArrayusize), DrawPoints(VertexArrayusize), Translate(Vector3<f32>), TranslateGlobal(Vector3<f32>), Scale(Vector3<f32>), RotateXDeg(f32), RotateYDeg(f32), RotateZDeg(f32), RotateAxisDeg(Vector3<f32>, f32), PushTransform, PopTransform, Draw(CommandList),
}
Expand description

Stores a scene command.

Variants

UseProgram(Program)

Tuple Fields

Use program.

SetModelViewProjection(Matrix4Uniform)

Tuple Fields

Set model-view-projection transform.

SetModel(Matrix4Uniform)

Tuple Fields

Set model transform.

SetView(Matrix4Uniform)

Tuple Fields

Set view transform.

SetTexture(Texture)

Tuple Fields

Set texture.

SetF32(F32Uniformf32)

Tuple Fields

1: f32

Set f32 uniform.

SetVector2(Vector2UniformVector2<f32>)

Tuple Fields

Set 2D vector uniform.

SetVector3(Vector3UniformVector3<f32>)

Tuple Fields

Set 3D vector uniform.

SetMatrix4(Matrix4UniformMatrix4<f32>)

Tuple Fields

Set matrx uniform.

EnableFrameBufferSRGB

Enable framebuffer sRGB.

DisableFrameBufferSRGB

Disable framebuffer sRGB.

EnableBlend

Enable blend.

DisableBlend

Disable blend.

EnableCullFace

Enable cull face.

DisableCullFace

Disable cull face.

CullFaceFront

Cull front face.

CullFaceBack

Cull back face.

CullFaceFrontAndBack

Cull both front and back face.

DrawTriangles(VertexArrayusize)

Tuple Fields

1: usize

Draw triangles.

DrawTriangleStrip(VertexArrayusize)

Tuple Fields

1: usize

Draw triangle strip.

DrawLines(VertexArrayusize)

Tuple Fields

1: usize

Draw lines.

DrawPoints(VertexArrayusize)

Tuple Fields

1: usize

Draw points.

Translate(Vector3<f32>)

Tuple Fields

Translate model.

TranslateGlobal(Vector3<f32>)

Tuple Fields

Translate model in global coordinates.

Scale(Vector3<f32>)

Tuple Fields

Scale model.

RotateXDeg(f32)

Tuple Fields

0: f32

Rotate model around x axis with degrees.

RotateYDeg(f32)

Tuple Fields

0: f32

Rotate model around y axis with degrees.

RotateZDeg(f32)

Tuple Fields

0: f32

Rotate model around z axis with degrees.

RotateAxisDeg(Vector3<f32>, f32)

Tuple Fields

1: f32

Rotate model around axis with degrees.

PushTransform

Push model transform to transform stack.

PopTransform

Pop model transform from transform stack.

Draw(CommandList)

Tuple Fields

Draw a command list.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.