Struct gl_helpers::GLTexture
[−]
[src]
pub struct GLTexture { /* fields omitted */ }
Methods
impl GLTexture
[src]
fn new_2d<T>(
width: usize,
height: usize,
internal_format: InternalFormat,
format: DataFormat,
data_kind: DataKind,
filter: FilterMode,
wrap: Wrap,
generate_mipmap: bool,
data: &[T]
) -> Self
[src]
width: usize,
height: usize,
internal_format: InternalFormat,
format: DataFormat,
data_kind: DataKind,
filter: FilterMode,
wrap: Wrap,
generate_mipmap: bool,
data: &[T]
) -> Self
fn new_null_2d(
width: usize,
height: usize,
internal_format: InternalFormat,
format: DataFormat,
data_kind: DataKind,
filter: FilterMode,
wrap: Wrap,
generate_mipmap: bool
) -> Self
[src]
width: usize,
height: usize,
internal_format: InternalFormat,
format: DataFormat,
data_kind: DataKind,
filter: FilterMode,
wrap: Wrap,
generate_mipmap: bool
) -> Self
fn resize_null_2d(&mut self, width: usize, height: usize) -> &Self
[src]
fn id(&self) -> GLuint
[src]
fn kind(&self) -> TextureKind
[src]
fn width(&self) -> usize
[src]
fn height(&self) -> usize
[src]
fn data_kind(&self) -> DataKind
[src]
fn format(&self) -> DataFormat
[src]
fn filter(&self) -> FilterMode
[src]
fn wrap(&self) -> Wrap
[src]
fn mipmap(&self) -> bool
[src]
fn bind(&self) -> &Self
[src]
fn unbind(&self) -> &Self
[src]
fn gl_wrap_filter_mipmap(
width: usize,
height: usize,
filter: FilterMode,
wrap: Wrap,
generate_mipmap: bool
) -> bool
[src]
width: usize,
height: usize,
filter: FilterMode,
wrap: Wrap,
generate_mipmap: bool
) -> bool
fn gl_2d<T>(
width: usize,
height: usize,
internal_format: InternalFormat,
format: DataFormat,
data_kind: DataKind,
data: &[T]
)
[src]
width: usize,
height: usize,
internal_format: InternalFormat,
format: DataFormat,
data_kind: DataKind,
data: &[T]
)
fn gl_null_2d(
width: usize,
height: usize,
internal_format: InternalFormat,
format: DataFormat,
data_kind: DataKind
)
[src]
width: usize,
height: usize,
internal_format: InternalFormat,
format: DataFormat,
data_kind: DataKind
)
fn mag_filter_min_filter(
filter: FilterMode,
is_power_of_two: bool,
generate_mipmap: bool
) -> (GLuint, GLuint)
[src]
filter: FilterMode,
is_power_of_two: bool,
generate_mipmap: bool
) -> (GLuint, GLuint)
Trait Implementations
impl Debug for GLTexture
[src]
impl Hash for GLTexture
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more