[−][src]Struct ugli_raw::Context
Implementations
impl Context
[src]
pub fn bind_buffer(&self, target: Enum, buffer: &Buffer)
[src]
pub fn buffer_data<T>(&self, target: Enum, data: &[T], usage: Enum)
[src]
pub fn buffer_sub_data<T>(&self, target: Enum, offset: IntPtr, data: &[T])
[src]
pub fn create_buffer(&self) -> Option<Buffer>
[src]
pub fn delete_buffer(&self, buffer: &Buffer)
[src]
impl Context
[src]
pub fn clear(&self, mask: BitField)
[src]
pub fn draw_arrays(&self, mode: Enum, first: Int, count: SizeI)
[src]
pub fn draw_arrays_instanced(
&self,
mode: Enum,
first: Int,
count: SizeI,
primcount: SizeI
)
[src]
&self,
mode: Enum,
first: Int,
count: SizeI,
primcount: SizeI
)
impl Context
[src]
pub fn bind_framebuffer(&self, target: Enum, framebuffer: Option<&Framebuffer>)
[src]
pub fn check_framebuffer_status(&self, target: Enum) -> Enum
[src]
pub fn create_framebuffer(&self) -> Option<Framebuffer>
[src]
pub fn delete_framebuffer(&self, framebuffer: &Framebuffer)
[src]
pub fn framebuffer_renderbuffer(
&self,
target: Enum,
attachment: Enum,
renderbuffer_target: Enum,
renderbuffer: Option<&Renderbuffer>
)
[src]
&self,
target: Enum,
attachment: Enum,
renderbuffer_target: Enum,
renderbuffer: Option<&Renderbuffer>
)
pub fn framebuffer_texture_2d(
&self,
target: Enum,
attachment: Enum,
texture_target: Enum,
texture: Option<&Texture>,
level: Int
)
[src]
&self,
target: Enum,
attachment: Enum,
texture_target: Enum,
texture: Option<&Texture>,
level: Int
)
pub fn read_pixels<T>(
&self,
x: Int,
y: Int,
width: SizeI,
height: SizeI,
format: Enum,
typ: Enum,
pixels: &mut [T]
)
[src]
&self,
x: Int,
y: Int,
width: SizeI,
height: SizeI,
format: Enum,
typ: Enum,
pixels: &mut [T]
)
impl Context
[src]
pub fn attach_shader(&self, program: &Program, shader: &Shader)
[src]
pub fn compile_shader(&self, shader: &Shader)
[src]
pub fn create_program(&self) -> Option<Program>
[src]
pub fn create_shader(&self, typ: Enum) -> Option<Shader>
[src]
pub fn delete_program(&self, program: &Program)
[src]
pub fn delete_shader(&self, shader: &Shader)
[src]
pub fn detach_shader(&self, program: &Program, shader: &Shader)
[src]
pub fn get_program_info_log(&self, program: &Program) -> String
[src]
pub fn get_program_parameter_bool(&self, program: &Program, pname: Enum) -> Bool
[src]
pub fn get_program_parameter_int(&self, program: &Program, pname: Enum) -> Int
[src]
pub fn get_shader_info_log(&self, shader: &Shader) -> String
[src]
pub fn get_shader_parameter_bool(&self, shader: &Shader, pname: Enum) -> Bool
[src]
pub fn get_shader_parameter_int(&self, shader: &Shader, pname: Enum) -> Int
[src]
pub fn link_program(&self, program: &Program)
[src]
pub fn shader_source(&self, shader: &Shader, source: &str)
[src]
pub fn use_program(&self, program: &Program)
[src]
impl Context
[src]
pub fn bind_renderbuffer(&self, target: Enum, renderbuffer: &Renderbuffer)
[src]
pub fn create_renderbuffer(&self) -> Option<Renderbuffer>
[src]
pub fn delete_renderbuffer(&self, renderbuffer: &Renderbuffer)
[src]
pub fn renderbuffer_storage(
&self,
target: Enum,
internal_format: Enum,
width: SizeI,
height: SizeI
)
[src]
&self,
target: Enum,
internal_format: Enum,
width: SizeI,
height: SizeI
)
impl Context
[src]
pub fn blend_func(&self, sfactor: Enum, dfactor: Enum)
[src]
pub fn clear_color(
&self,
red: ClampedFloat,
green: ClampedFloat,
blue: ClampedFloat,
alpha: ClampedFloat
)
[src]
&self,
red: ClampedFloat,
green: ClampedFloat,
blue: ClampedFloat,
alpha: ClampedFloat
)
pub fn clear_depth(&self, depth: ClampedFloat)
[src]
pub fn color_mask(&self, red: Bool, green: Bool, blue: Bool, alpha: Bool)
[src]
pub fn cull_face(&self, mode: Enum)
[src]
pub fn depth_func(&self, func: Enum)
[src]
pub fn depth_mask(&self, flag: Bool)
[src]
pub fn disable(&self, cap: Enum)
[src]
pub fn enable(&self, cap: Enum)
[src]
pub fn get_error(&self) -> Enum
[src]
pub fn line_width(&self, width: Float)
[src]
pub fn get_version_string(&self) -> String
[src]
pub fn pixel_store(&self, pname: Enum, param: Int)
[src]
impl Context
[src]
pub fn active_texture(&self, texture: Enum)
[src]
pub fn bind_texture(&self, target: Enum, texture: &Texture)
[src]
pub fn create_texture(&self) -> Option<Texture>
[src]
pub fn delete_texture(&self, texture: &Texture)
[src]
pub fn generate_mipmap(&self, target: Enum)
[src]
pub fn tex_image_2d<T>(
&self,
target: Enum,
level: Int,
internal_format: Int,
width: SizeI,
height: SizeI,
border: Int,
format: Enum,
typ: Enum,
pixels: Option<&[T]>
)
[src]
&self,
target: Enum,
level: Int,
internal_format: Int,
width: SizeI,
height: SizeI,
border: Int,
format: Enum,
typ: Enum,
pixels: Option<&[T]>
)
pub fn tex_parameteri(&self, target: Enum, pname: Enum, param: Int)
[src]
pub fn tex_sub_image_2d<T>(
&self,
target: Enum,
level: Int,
x_offset: Int,
y_offset: Int,
width: SizeI,
height: SizeI,
format: Enum,
typ: Enum,
pixels: &[T]
)
[src]
&self,
target: Enum,
level: Int,
x_offset: Int,
y_offset: Int,
width: SizeI,
height: SizeI,
format: Enum,
typ: Enum,
pixels: &[T]
)
pub fn copy_tex_sub_image_2d(
&self,
target: Enum,
level: Int,
x_offset: Int,
y_offset: Int,
x: Int,
y: Int,
width: SizeI,
height: SizeI
)
[src]
&self,
target: Enum,
level: Int,
x_offset: Int,
y_offset: Int,
x: Int,
y: Int,
width: SizeI,
height: SizeI
)
impl Context
[src]
pub fn disable_vertex_attrib_array(&self, index: UInt)
[src]
pub fn enable_vertex_attrib_array(&self, index: UInt)
[src]
pub fn get_active_attrib(&self, program: &Program, index: UInt) -> ActiveInfo
[src]
pub fn get_active_uniform(&self, program: &Program, index: UInt) -> ActiveInfo
[src]
pub fn get_attrib_location(&self, program: &Program, name: &str) -> Int
[src]
pub fn get_uniform_location(
&self,
program: &Program,
name: &str
) -> Option<UniformLocation>
[src]
&self,
program: &Program,
name: &str
) -> Option<UniformLocation>
pub fn uniform_1i(&self, location: &UniformLocation, v: Int)
[src]
pub fn uniform_1f(&self, location: &UniformLocation, v: Float)
[src]
pub fn uniform_2i(&self, location: &UniformLocation, v0: Int, v1: Int)
[src]
pub fn uniform_2f(&self, location: &UniformLocation, v0: Float, v1: Float)
[src]
pub fn uniform_3i(&self, location: &UniformLocation, v0: Int, v1: Int, v2: Int)
[src]
pub fn uniform_3f(
&self,
location: &UniformLocation,
v0: Float,
v1: Float,
v2: Float
)
[src]
&self,
location: &UniformLocation,
v0: Float,
v1: Float,
v2: Float
)
pub fn uniform_4i(
&self,
location: &UniformLocation,
v0: Int,
v1: Int,
v2: Int,
v3: Int
)
[src]
&self,
location: &UniformLocation,
v0: Int,
v1: Int,
v2: Int,
v3: Int
)
pub fn uniform_4f(
&self,
location: &UniformLocation,
v0: Float,
v1: Float,
v2: Float,
v3: Float
)
[src]
&self,
location: &UniformLocation,
v0: Float,
v1: Float,
v2: Float,
v3: Float
)
pub fn uniform_matrix4fv(
&self,
location: &UniformLocation,
count: SizeI,
transpose: Bool,
v: &[Float]
)
[src]
&self,
location: &UniformLocation,
count: SizeI,
transpose: Bool,
v: &[Float]
)
pub fn vertex_attrib_divisor(&self, index: UInt, divisor: UInt)
[src]
pub fn vertex_attrib_pointer(
&self,
index: UInt,
size: Int,
typ: Enum,
normalized: Bool,
stride: SizeI,
offset: IntPtr
)
[src]
&self,
index: UInt,
size: Int,
typ: Enum,
normalized: Bool,
stride: SizeI,
offset: IntPtr
)
impl Context
[src]
pub fn bind_vertex_array(&self, vao: &VertexArrayObject)
[src]
pub fn create_vertex_array(&self) -> Option<VertexArrayObject>
[src]
pub fn delete_vertex_array(&self, vao: &VertexArrayObject)
[src]
impl Context
[src]
impl Context
[src]
Auto Trait Implementations
impl RefUnwindSafe for Context
[src]
impl Send for Context
[src]
impl Sync for Context
[src]
impl Unpin for Context
[src]
impl UnwindSafe for Context
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,