Struct glow::Context [−][src]
pub struct Context { /* fields omitted */ }
Implementations
Trait Implementations
type VertexArray = c_uint
type Framebuffer = c_uint
type Renderbuffer = c_uint
type UniformLocation = c_uint
type TransformFeedback = c_uint
unsafe fn get_tex_image(
&self,
target: u32,
level: i32,
format: u32,
ty: u32,
pixels: PixelPackData<'_>
)
[src]unsafe fn get_active_uniform(
&self,
program: Self::Program,
index: u32
) -> Option<ActiveUniform>
[src]unsafe fn bind_buffer_range(
&self,
target: u32,
index: u32,
buffer: Option<Self::Buffer>,
offset: i32,
size: i32
)
[src]unsafe fn blit_framebuffer(
&self,
src_x0: i32,
src_y0: i32,
src_x1: i32,
src_y1: i32,
dst_x0: i32,
dst_y0: i32,
dst_x1: i32,
dst_y1: i32,
mask: u32,
filter: u32
)
[src]unsafe fn bind_frag_data_location(
&self,
program: Self::Program,
color_number: u32,
name: &str
)
[src]unsafe fn clear_buffer_depth_stencil(
&self,
target: u32,
draw_buffer: u32,
depth: f32,
stencil: i32
)
[src]unsafe fn copy_buffer_sub_data(
&self,
src_target: u32,
dst_target: u32,
src_offset: i32,
dst_offset: i32,
size: i32
)
[src]unsafe fn draw_arrays_instanced(
&self,
mode: u32,
first: i32,
count: i32,
instance_count: i32
)
[src]unsafe fn draw_arrays_instanced_base_instance(
&self,
mode: u32,
first: i32,
count: i32,
instance_count: i32,
base_instance: u32
)
[src]unsafe fn draw_elements_base_vertex(
&self,
mode: u32,
count: i32,
element_type: u32,
offset: i32,
base_vertex: i32
)
[src]unsafe fn draw_elements_instanced(
&self,
mode: u32,
count: i32,
element_type: u32,
offset: i32,
instance_count: i32
)
[src]unsafe fn draw_elements_instanced_base_vertex(
&self,
mode: u32,
count: i32,
element_type: u32,
offset: i32,
instance_count: i32,
base_vertex: i32
)
[src]unsafe fn draw_elements_instanced_base_vertex_base_instance(
&self,
mode: u32,
count: i32,
element_type: u32,
offset: i32,
instance_count: i32,
base_vertex: i32,
base_instance: u32
)
[src]unsafe fn framebuffer_renderbuffer(
&self,
target: u32,
attachment: u32,
renderbuffer_target: u32,
renderbuffer: Option<Self::Renderbuffer>
)
[src]unsafe fn framebuffer_texture(
&self,
target: u32,
attachment: u32,
texture: Option<Self::Texture>,
level: i32
)
[src]unsafe fn framebuffer_texture_2d(
&self,
target: u32,
attachment: u32,
texture_target: u32,
texture: Option<Self::Texture>,
level: i32
)
[src]unsafe fn framebuffer_texture_3d(
&self,
target: u32,
attachment: u32,
texture_target: u32,
texture: Option<Self::Texture>,
level: i32,
layer: i32
)
[src]unsafe fn framebuffer_texture_layer(
&self,
target: u32,
attachment: u32,
texture: Option<Self::Texture>,
level: i32,
layer: i32
)
[src]unsafe fn get_uniform_location(
&self,
program: Self::Program,
name: &str
) -> Option<Self::UniformLocation>
[src]unsafe fn get_active_attribute(
&self,
program: Self::Program,
index: u32
) -> Option<ActiveAttribute>
[src]unsafe fn renderbuffer_storage(
&self,
target: u32,
internal_format: u32,
width: i32,
height: i32
)
[src]unsafe fn renderbuffer_storage_multisample(
&self,
target: u32,
samples: i32,
internal_format: u32,
width: i32,
height: i32
)
[src]unsafe fn sampler_parameter_f32_slice(
&self,
sampler: Self::Sampler,
name: u32,
value: &mut [f32]
)
[src]unsafe fn tex_image_1d(
&self,
target: u32,
level: i32,
internal_format: i32,
width: i32,
border: i32,
format: u32,
ty: u32,
pixels: Option<&[u8]>
)
[src]unsafe fn compressed_tex_image_1d(
&self,
target: u32,
level: i32,
internal_format: i32,
width: i32,
border: i32,
image_size: i32,
pixels: &[u8]
)
[src]unsafe fn tex_image_2d(
&self,
target: u32,
level: i32,
internal_format: i32,
width: i32,
height: i32,
border: i32,
format: u32,
ty: u32,
pixels: Option<&[u8]>
)
[src]unsafe fn tex_image_2d_multisample(
&self,
target: u32,
samples: i32,
internal_format: i32,
width: i32,
height: i32,
fixed_sample_locations: bool
)
[src]unsafe fn compressed_tex_image_2d(
&self,
target: u32,
level: i32,
internal_format: i32,
width: i32,
height: i32,
border: i32,
image_size: i32,
pixels: &[u8]
)
[src]unsafe fn tex_image_3d(
&self,
target: u32,
level: i32,
internal_format: i32,
width: i32,
height: i32,
depth: i32,
border: i32,
format: u32,
ty: u32,
pixels: Option<&[u8]>
)
[src]unsafe fn compressed_tex_image_3d(
&self,
target: u32,
level: i32,
internal_format: i32,
width: i32,
height: i32,
depth: i32,
border: i32,
image_size: i32,
pixels: &[u8]
)
[src]unsafe fn tex_storage_2d(
&self,
target: u32,
levels: i32,
internal_format: u32,
width: i32,
height: i32
)
[src]unsafe fn tex_storage_3d(
&self,
target: u32,
levels: i32,
internal_format: u32,
width: i32,
height: i32,
depth: i32
)
[src]unsafe fn get_uniform_i32(
&self,
program: Self::Program,
location: &Self::UniformLocation,
v: &mut [i32]
)
[src]unsafe fn get_uniform_f32(
&self,
program: Self::Program,
location: &Self::UniformLocation,
v: &mut [f32]
)
[src]unsafe fn uniform_3_i32(
&self,
location: Option<&Self::UniformLocation>,
x: i32,
y: i32,
z: i32
)
[src]unsafe fn uniform_4_i32(
&self,
location: Option<&Self::UniformLocation>,
x: i32,
y: i32,
z: i32,
w: i32
)
[src]unsafe fn uniform_3_u32(
&self,
location: Option<&Self::UniformLocation>,
x: u32,
y: u32,
z: u32
)
[src]unsafe fn uniform_4_u32(
&self,
location: Option<&Self::UniformLocation>,
x: u32,
y: u32,
z: u32,
w: u32
)
[src]unsafe fn uniform_3_f32(
&self,
location: Option<&Self::UniformLocation>,
x: f32,
y: f32,
z: f32
)
[src]unsafe fn uniform_4_f32(
&self,
location: Option<&Self::UniformLocation>,
x: f32,
y: f32,
z: f32,
w: f32
)
[src]unsafe fn uniform_matrix_2_f32_slice(
&self,
location: Option<&Self::UniformLocation>,
transpose: bool,
v: &[f32]
)
[src]unsafe fn uniform_matrix_3_f32_slice(
&self,
location: Option<&Self::UniformLocation>,
transpose: bool,
v: &[f32]
)
[src]unsafe fn uniform_matrix_4_f32_slice(
&self,
location: Option<&Self::UniformLocation>,
transpose: bool,
v: &[f32]
)
[src]unsafe fn color_mask_draw_buffer(
&self,
draw_buffer: u32,
red: bool,
green: bool,
blue: bool,
alpha: bool
)
[src]unsafe fn map_buffer_range(
&self,
target: u32,
offset: i32,
length: i32,
access: u32
) -> *mut u8
[src]unsafe fn tex_sub_image_2d(
&self,
target: u32,
level: i32,
x_offset: i32,
y_offset: i32,
width: i32,
height: i32,
format: u32,
ty: u32,
pixels: PixelUnpackData<'_>
)
[src]unsafe fn compressed_tex_sub_image_2d(
&self,
target: u32,
level: i32,
x_offset: i32,
y_offset: i32,
width: i32,
height: i32,
format: u32,
pixels: CompressedPixelUnpackData<'_>
)
[src]unsafe fn tex_sub_image_3d(
&self,
target: u32,
level: i32,
x_offset: i32,
y_offset: i32,
z_offset: i32,
width: i32,
height: i32,
depth: i32,
format: u32,
ty: u32,
pixels: PixelUnpackData<'_>
)
[src]unsafe fn vertex_attrib_pointer_f32(
&self,
index: u32,
size: i32,
data_type: u32,
normalized: bool,
stride: i32,
offset: i32
)
[src]unsafe fn vertex_attrib_pointer_i32(
&self,
index: u32,
size: i32,
data_type: u32,
stride: i32,
offset: i32
)
[src]unsafe fn vertex_attrib_pointer_f64(
&self,
index: u32,
size: i32,
data_type: u32,
stride: i32,
offset: i32
)
[src]unsafe fn blend_equation_separate_draw_buffer(
&self,
draw_buffer: u32,
mode_rgb: u32,
mode_alpha: u32
)
[src]unsafe fn blend_func_separate(
&self,
src_rgb: u32,
dst_rgb: u32,
src_alpha: u32,
dst_alpha: u32
)
[src]unsafe fn blend_func_separate_draw_buffer(
&self,
draw_buffer: u32,
src_rgb: u32,
dst_rgb: u32,
src_alpha: u32,
dst_alpha: u32
)
[src]unsafe fn stencil_op_separate(
&self,
face: u32,
stencil_fail: u32,
depth_fail: u32,
pass: u32
)
[src]unsafe fn debug_message_control(
&self,
source: u32,
msg_type: u32,
severity: u32,
ids: &[u32],
enabled: bool
)
[src]unsafe fn debug_message_insert<S>(
&self,
source: u32,
msg_type: u32,
id: u32,
severity: u32,
msg: S
) where
S: AsRef<str>,
[src]unsafe fn debug_message_callback<F>(&self, callback: F) where
F: FnMut(u32, u32, u32, u32, &str),
[src]unsafe fn object_label<S>(&self, identifier: u32, name: u32, label: Option<S>) where
S: AsRef<str>,
[src]unsafe fn object_ptr_label<S>(&self, sync: Self::Fence, label: Option<S>) where
S: AsRef<str>,
[src]unsafe fn get_shader_storage_block_index(
&self,
program: Self::Program,
name: &str
) -> Option<u32>
[src]unsafe fn shader_storage_block_binding(
&self,
program: Self::Program,
index: u32,
binding: u32
)
[src]unsafe fn read_pixels(
&self,
x: i32,
y: i32,
width: i32,
height: i32,
format: u32,
gltype: u32,
pixels: PixelPackData<'_>
)
[src]unsafe fn bind_transform_feedback(
&self,
target: u32,
transform_feedback: Option<Self::TransformFeedback>
)
[src]unsafe fn transform_feedback_varyings(
&self,
program: Self::Program,
varyings: &[&str],
buffer_mode: u32
)
[src]unsafe fn get_transform_feedback_varying(
&self,
program: Self::Program,
index: u32
) -> Option<ActiveTransformFeedback>
[src]Auto Trait Implementations
impl RefUnwindSafe for Context
impl UnwindSafe for Context