Enum glitter::texture::TxCubeMapImageTarget
[−]
[src]
pub enum TxCubeMapImageTarget { CubeMapPositiveX, CubeMapNegativeX, CubeMapPositiveY, CubeMapNegativeY, CubeMapPositiveZ, CubeMapNegativeZ, }
The possible 2D image targets for a cubemap texture.
Variants
CubeMapPositiveX
The positive-X image target face of a cubemap.
CubeMapNegativeX
The negative-X image target face of a cubemap.
CubeMapPositiveY
The positive-Y image target face of a cubemap.
CubeMapNegativeY
The negative-Y image target face of a cubemap.
CubeMapPositiveZ
The positive-Z image target face of a cubemap.
CubeMapNegativeZ
The negative-Z image target face of a cubemap.
Methods
impl TxCubeMapImageTarget
[src]
pub fn from_gl(gl_enum: GLenum) -> Result<Self, ()>
[src]
Convert from a raw OpenGL integer value to an enum variant. Returns an error if the value is not a valid enum variant.
pub fn gl_enum(&self) -> GLenum
[src]
Return the OpenGL integer value for a given enum variant.
Trait Implementations
impl Debug for TxCubeMapImageTarget
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for TxCubeMapImageTarget
[src]
fn clone(&self) -> TxCubeMapImageTarget
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for TxCubeMapImageTarget
[src]
impl PartialEq for TxCubeMapImageTarget
[src]
fn eq(&self, __arg_0: &TxCubeMapImageTarget) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Eq for TxCubeMapImageTarget
[src]
impl Hash for TxCubeMapImageTarget
[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