Struct three_d::context::GLContext [−][src]
pub struct GLContext { /* fields omitted */ }
Expand description
Contains the graphics API for almost direct calls to OpenGL/WebGL. Used internally in the higher level features and can safely be ignored unless you want more control.
Calls to this API can be combined with higher level features.
Implementations
This is supported on non-WebAssembly only.
This is supported on non-WebAssembly only.
This is supported on non-WebAssembly only.
This is supported on non-WebAssembly only.
This is supported on non-WebAssembly only.
This is supported on non-WebAssembly only.
This is supported on non-WebAssembly only.
This is supported on non-WebAssembly only.
This is supported on non-WebAssembly only.
This is supported on non-WebAssembly only.
This is supported on non-WebAssembly only.
This is supported on non-WebAssembly only.
This is supported on non-WebAssembly only.
This is supported on non-WebAssembly only.
This is supported on non-WebAssembly only.
This is supported on non-WebAssembly only.
This is supported on non-WebAssembly only.
This is supported on non-WebAssembly only.
This is supported on non-WebAssembly only.
This is supported on non-WebAssembly only.
This is supported on non-WebAssembly only.
This is supported on non-WebAssembly only.
This is supported on non-WebAssembly only.
This is supported on non-WebAssembly only.
This is supported on non-WebAssembly only.
This is supported on non-WebAssembly only.
This is supported on non-WebAssembly only.
This is supported on non-WebAssembly only.
This is supported on non-WebAssembly only.
This is supported on non-WebAssembly only.
This is supported on non-WebAssembly only.
This is supported on non-WebAssembly only.
This is supported on non-WebAssembly only.
This is supported on non-WebAssembly only.
pub fn vertex_attrib_pointer(
&self,
location: AttributeLocation,
size: u32,
data_type: DataType,
normalized: bool,
stride: u32,
offset: u32
)
This is supported on non-WebAssembly only.
This is supported on non-WebAssembly only.
This is supported on non-WebAssembly only.
This is supported on non-WebAssembly only.
This is supported on non-WebAssembly only.
This is supported on non-WebAssembly only.
This is supported on non-WebAssembly only.
This is supported on non-WebAssembly only.
This is supported on non-WebAssembly only.
This is supported on non-WebAssembly only.
This is supported on non-WebAssembly only.
This is supported on non-WebAssembly only.
This is supported on non-WebAssembly only.
This is supported on non-WebAssembly only.
This is supported on non-WebAssembly only.
This is supported on non-WebAssembly only.
pub fn blit_framebuffer(
&self,
src_x0: u32,
src_y0: u32,
src_x1: u32,
src_y1: u32,
dst_x0: u32,
dst_y0: u32,
dst_x1: u32,
dst_y1: u32,
mask: u32,
filter: u32
)
This is supported on non-WebAssembly only.
This is supported on non-WebAssembly only.
This is supported on non-WebAssembly only.
This is supported on non-WebAssembly only.
This is supported on non-WebAssembly only.
This is supported on non-WebAssembly only.
This is supported on non-WebAssembly only.
This is supported on non-WebAssembly only.
This is supported on non-WebAssembly only.
This is supported on non-WebAssembly only.
This is supported on non-WebAssembly only.
This is supported on non-WebAssembly only.
This is supported on non-WebAssembly only.
This is supported on non-WebAssembly only.
This is supported on non-WebAssembly only.
This is supported on non-WebAssembly only.
This is supported on non-WebAssembly only.
This is supported on non-WebAssembly only.
This is supported on non-WebAssembly only.
This is supported on non-WebAssembly only.
pub fn tex_storage_2d(
&self,
target: u32,
levels: u32,
internalformat: u32,
width: u32,
height: u32
)
This is supported on non-WebAssembly only.
pub fn tex_storage_3d(
&self,
target: u32,
levels: u32,
internalformat: u32,
width: u32,
height: u32,
depth: u32
)
This is supported on non-WebAssembly only.
pub fn tex_image_2d(
&self,
target: u32,
level: u32,
internalformat: u32,
width: u32,
height: u32,
border: u32,
format: u32,
data_type: DataType
)
This is supported on non-WebAssembly only.
pub fn tex_image_2d_with_u8_data(
&self,
target: u32,
level: u32,
internalformat: u32,
width: u32,
height: u32,
border: u32,
format: u32,
data_type: DataType,
pixels: &[u8]
)
This is supported on non-WebAssembly only.
pub fn tex_sub_image_2d_with_u8_data(
&self,
target: u32,
level: u32,
x_offset: u32,
y_offset: u32,
width: u32,
height: u32,
format: u32,
data_type: DataType,
pixels: &[u8]
)
This is supported on non-WebAssembly only.
pub fn tex_image_2d_with_f32_data(
&self,
target: u32,
level: u32,
internalformat: u32,
width: u32,
height: u32,
border: u32,
format: u32,
data_type: DataType,
pixels: &[f32]
)
This is supported on non-WebAssembly only.
pub fn tex_sub_image_2d_with_f32_data(
&self,
target: u32,
level: u32,
x_offset: u32,
y_offset: u32,
width: u32,
height: u32,
format: u32,
data_type: DataType,
pixels: &[f32]
)
This is supported on non-WebAssembly only.
pub fn tex_sub_image_2d_with_u32_data(
&self,
target: u32,
level: u32,
x_offset: u32,
y_offset: u32,
width: u32,
height: u32,
format: u32,
data_type: DataType,
pixels: &[u32]
)
This is supported on non-WebAssembly only.
pub fn tex_image_3d(
&self,
target: u32,
level: u32,
internalformat: u32,
width: u32,
height: u32,
depth: u32,
format: u32,
data_type: DataType
)
This is supported on non-WebAssembly only.
pub fn tex_image_3d_with_u16_data(
&self,
target: u32,
level: u32,
internalformat: u32,
width: u32,
height: u32,
depth: u32,
border: u32,
format: u32,
data_type: DataType,
pixels: &[u16]
)
This is supported on non-WebAssembly only.
This is supported on non-WebAssembly only.
This is supported on non-WebAssembly only.
pub fn framebuffer_texture_2d(
&self,
target: u32,
attachment: u32,
textarget: u32,
texture: &Texture,
level: u32
)
This is supported on non-WebAssembly only.
pub fn framebuffer_texture_layer(
&self,
target: u32,
attachment: u32,
texture: &Texture,
level: u32,
layer: u32
)
This is supported on non-WebAssembly only.
This is supported on non-WebAssembly only.
This is supported on non-WebAssembly only.
This is supported on non-WebAssembly only.
pub fn draw_elements_instanced(
&self,
mode: u32,
count: u32,
data_type: DataType,
offset: u32,
instance_count: u32
)
This is supported on non-WebAssembly only.
pub fn read_pixels(
&self,
x: u32,
y: u32,
width: u32,
height: u32,
format: u32,
data_type: DataType
)
This is supported on non-WebAssembly only.
pub fn read_pixels_with_u8_data(
&self,
x: u32,
y: u32,
width: u32,
height: u32,
format: u32,
data_type: DataType,
dst_data: &mut [u8]
)
This is supported on non-WebAssembly only.
pub fn read_pixels_with_f32_data(
&self,
x: u32,
y: u32,
width: u32,
height: u32,
format: u32,
data_type: DataType,
dst_data: &mut [f32]
)
This is supported on non-WebAssembly only.
pub fn read_pixels_with_u32_data(
&self,
x: u32,
y: u32,
width: u32,
height: u32,
format: u32,
data_type: DataType,
dst_data: &mut [u32]
)
This is supported on non-WebAssembly only.
This is supported on non-WebAssembly only.
This is supported on non-WebAssembly only.
This is supported on non-WebAssembly only.
This is supported on non-WebAssembly only.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for GLContext
impl UnwindSafe for GLContext
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more