Struct asi_opengl::Program [−][src]
pub struct Program(_);
A loaded GPU program.
Methods
impl Program
[src]
impl Program
pub fn new(opengl: &OpenGL, vertex: &[u8], fragment: &[u8]) -> Self
[src]
pub fn new(opengl: &OpenGL, vertex: &[u8], fragment: &[u8]) -> Self
Load a shader program
pub fn vertex_data(&self, name: &[u8]) -> VertexData
[src]
pub fn vertex_data(&self, name: &[u8]) -> VertexData
Get a vertex data handle for this GPU program.
pub fn uniform(&self, name: &[u8]) -> UniformData
[src]
pub fn uniform(&self, name: &[u8]) -> UniformData
Get a uniform data handle for this GPU program.
pub fn draw_arrays(&self, topology: Topology, range: Range<u32>)
[src]
pub fn draw_arrays(&self, topology: Topology, range: Range<u32>)
Draw the elements.