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