Struct bgfx::VertexDecl
[−]
[src]
pub struct VertexDecl { // some fields omitted }
Describes the structure of a vertex.
Methods
impl VertexDecl
fn new(renderer: Option<RendererType>) -> VertexDeclBuilder
Creates a new vertex declaration using a VertexDeclBuilder
.
Example
let decl = bgfx::VertexDecl::new(None) .add(bgfx::Attrib::Position, 3, bgfx::AttribType::Float) .add(bgfx::Attrib::Color0, 4, bgfx::AttribType::Uint8(true)) .end();