pub enum Command {
Show 28 variants UseProgram(Program), SetModelViewProjection(Matrix4Uniform), SetModel(Matrix4Uniform), SetView(Matrix4Uniform), SetTexture(Texture), SetF32(F32Uniformf32), SetVector2(Vector2UniformVector2<f32>), SetVector3(Vector3UniformVector3<f32>), SetMatrix4(Matrix4UniformMatrix4<f32>), 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)

Use program.

SetModelViewProjection(Matrix4Uniform)

Set model-view-projection transform.

SetModel(Matrix4Uniform)

Set model transform.

SetView(Matrix4Uniform)

Set view transform.

SetTexture(Texture)

Set texture.

SetF32(F32Uniformf32)

Set f32 uniform.

SetVector2(Vector2UniformVector2<f32>)

Set 2D vector uniform.

SetVector3(Vector3UniformVector3<f32>)

Set 3D vector uniform.

SetMatrix4(Matrix4UniformMatrix4<f32>)

Set matrx uniform.

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)

Draw triangles.

DrawTriangleStrip(VertexArrayusize)

Draw triangle strip.

DrawLines(VertexArrayusize)

Draw lines.

DrawPoints(VertexArrayusize)

Draw points.

Translate(Vector3<f32>)

Translate model.

TranslateGlobal(Vector3<f32>)

Translate model in global coordinates.

Scale(Vector3<f32>)

Scale model.

RotateXDeg(f32)

Rotate model around x axis with degrees.

RotateYDeg(f32)

Rotate model around y axis with degrees.

RotateZDeg(f32)

Rotate model around z axis with degrees.

RotateAxisDeg(Vector3<f32>, f32)

Rotate model around axis with degrees.

PushTransform

Push model transform to transform stack.

PopTransform

Pop model transform from transform stack.

Draw(CommandList)

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 !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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
Sets value as a parameter of self.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
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.