pub struct Pipeline { /* private fields */ }
Implementations
sourceimpl Pipeline
impl Pipeline
pub fn construct() -> PipelineBuilder
pub fn uniform_location(&self, name: &str) -> u32
sourceimpl Pipeline
impl Pipeline
pub fn begin(&self, additional_render_targets: Vec<Canvas, Global>)
pub fn begin_face(&self, face: i32)
pub fn begin_eye(&self, eye: i32)
pub fn end(&self)
pub fn vsynced(&self) -> bool
pub fn refresh_rate(&self) -> i32
pub fn clear(
&self,
color: Option<Color>,
depth: Option<f32>,
stencil: Option<i32>
)
pub fn viewport(&self, x: i32, y: i32, width: i32, height: i32)
pub fn scissor(&self, x: i32, y: i32, width: i32, height: i32)
pub fn disable_scissor(&self)
pub fn set_vertex_buffer(&self, buffer: u32)
pub fn set_vertex_buffers(&self, vertex_buffers: Vec<VertexBuffer, Global>)
pub fn set_index_buffer(&self, buffer: u32)
pub fn set_texture(
&self,
location: u32,
texture_unit: u32,
texture: Option<u32>
)
pub fn set_texture_depth(&self, unit: TextureUnit, texture: Image)
pub fn set_texture_array(&self, unit: TextureUnit, texture: Image)
pub fn set_video_texture(&self, unit: TextureUnit, texture: Video)
pub fn set_image_texture(&self, unit: TextureUnit, texture: Image)
pub fn set_texture_parameters(
&self,
texunit: TextureUnit,
u_addressing: TextureAddressing,
v_addressing: TextureAddressing,
minification_filter: TextureFilter,
magnification_filter: TextureFilter,
mipmap_filter: MipMapFilter
)
pub fn set_texture_3d_parameters(
&self,
texunit: TextureUnit,
u_addressing: TextureAddressing,
v_addressing: TextureAddressing,
w_addressing: TextureAddressing,
minification_filter: TextureFilter,
magnification_filter: TextureFilter,
mipmap_filter: MipMapFilter
)
pub fn set_texture_compare_mode(&self, texunit: TextureUnit, enabled: bool)
pub fn set_cube_map_compare_mode(&self, texunit: TextureUnit, enabled: bool)
pub fn set_cube_map(&self, unit: TextureUnit, cube_map: CubeMap)
pub fn set_cube_map_depth(&self, unit: TextureUnit, cube_map: CubeMap)
pub fn max_bound_textures() -> i32
pub fn set_stencil_reference_value(&self, value: i32)
pub fn instanced_rendering_available(&self) -> bool
pub fn set_depth_mode(write: bool, mode: CompareFunction)
pub fn set_cull_mode(mode: Option<Face>)
pub fn set_stencil_parameters(
compare_mode: CompareFunction,
both_pass: StencilOperation,
depth_fail: StencilOperation,
stencil_fail: StencilOperation,
reference_value: i32,
read_mask: u32,
write_mask: u32
)
pub fn make_current(&self)
pub fn set_bool(&self, location: u32, value: bool)
pub fn set_int(&self, location: u32, value: i32)
pub fn set_int2(&self, location: u32, value1: i32, value2: i32)
pub fn set_int3(&self, location: u32, value1: i32, value2: i32, value3: i32)
pub fn set_int4(
&self,
location: u32,
value1: i32,
value2: i32,
value3: i32,
value4: i32
)
pub fn set_ints(&self, location: u32, ints: Vec<i32, Global>)
pub fn set_float(&self, location: u32, value: f32)
pub fn set_float2(&self, location: u32, value1: f32, value2: f32)
pub fn set_float3(&self, location: u32, value1: f32, value2: f32, value3: f32)
pub fn set_float4(
&self,
location: u32,
value1: f32,
value2: f32,
value3: f32,
value4: f32
)
pub fn set_floats(&self, location: u32, floats: Vec<f32, Global>)
pub fn set_vector2(&self, location: u32, value: Vector2<f32>)
pub fn set_vector3(&self, location: u32, value: Vector3<f32>)
pub fn set_vector4(&self, location: u32, value: Vector4<f32>)
pub fn set_matrix(&self, location: u32, matrix: Matrix4<f32>)
pub fn set_matrix3(&self, location: u32, value: Matrix3<f32>)
pub fn draw_indexed_vertices(&self, start: usize, count: Option<usize>)
pub fn draw_indexed_vertices_instanced(
&self,
instance_count: usize,
start: usize,
count: usize
)
pub fn flush(&self)
Auto Trait Implementations
impl RefUnwindSafe for Pipeline
impl Send for Pipeline
impl Sync for Pipeline
impl Unpin for Pipeline
impl UnwindSafe for Pipeline
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<'a, T, C, M> Inspect<'a, C, &'a C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a mut C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a mut C, M> for T
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
fn into_color(self) -> To
fn into_color(self) -> To
Convert into color
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> SetParameter for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
Sets value
as a parameter of self
.