Struct opengl_graphics::shader_utils::DynamicAttribute [−][src]
pub struct DynamicAttribute { /* fields omitted */ }Describes a shader attribute.
Methods
impl DynamicAttribute[src]
impl DynamicAttributepub fn xyz(
program: GLuint,
name: &str,
vao: GLuint
) -> Result<DynamicAttribute, String>[src]
pub fn xyz(
program: GLuint,
name: &str,
vao: GLuint
) -> Result<DynamicAttribute, String>Create XYZ vertex attribute.
pub fn xy(
program: GLuint,
name: &str,
vao: GLuint
) -> Result<DynamicAttribute, String>[src]
pub fn xy(
program: GLuint,
name: &str,
vao: GLuint
) -> Result<DynamicAttribute, String>Create XY vertex attribute.
pub fn rgb(
program: GLuint,
name: &str,
vao: GLuint
) -> Result<DynamicAttribute, String>[src]
pub fn rgb(
program: GLuint,
name: &str,
vao: GLuint
) -> Result<DynamicAttribute, String>Create RGB color attribute.
pub fn rgba(
program: GLuint,
name: &str,
vao: GLuint
) -> Result<DynamicAttribute, String>[src]
pub fn rgba(
program: GLuint,
name: &str,
vao: GLuint
) -> Result<DynamicAttribute, String>Create RGBA color attribute.
pub fn uv(
program: GLuint,
name: &str,
vao: GLuint
) -> Result<DynamicAttribute, String>[src]
pub fn uv(
program: GLuint,
name: &str,
vao: GLuint
) -> Result<DynamicAttribute, String>Create texture coordinate attribute.
pub unsafe fn set<T>(&self, data: &[T])[src]
pub unsafe fn set<T>(&self, data: &[T])Sets attribute data.
Trait Implementations
impl Drop for DynamicAttribute[src]
impl Drop for DynamicAttributeAuto Trait Implementations
impl Send for DynamicAttribute
impl Send for DynamicAttributeimpl Sync for DynamicAttribute
impl Sync for DynamicAttribute