Enum glitter::types::DataType
[−]
[src]
pub enum DataType { Byte, UnsignedByte, Short, UnsignedShort, Fixed, Float, }
The different OpenGL data types.
Variants
Byte
A signed 8-bit byte.
UnsignedByte
An unsigned 8-bit byte.
Short
A signed 16-bit short.
UnsignedShort
An unsigned 16-bit short.
Fixed
A signed 32-bit, fixed-point number in 16.16 form.
Float
A 32-bit, IEEE floating-point number.
Methods
impl DataType
[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 DataType
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for DataType
[src]
fn clone(&self) -> DataType
[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 DataType
[src]
impl PartialEq for DataType
[src]
fn eq(&self, __arg_0: &DataType) -> 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 !=
.