[][src]Enum turbine_scene3d::Command

pub enum Command {
    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),
}

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.

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)

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

impl PartialEq<Command> for Command[src]

impl Copy for Command[src]

impl Clone for Command[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for Command[src]

Auto Trait Implementations

impl Send for Command

impl Sync for Command

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> SetParameter for T

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 

Sets value as a parameter of self.