pub fn to_gl_enum(&self) -> GLenum {
        use PrimitiveMode::*;

        match self {
            Points => gl::POINTS,
            Lines => gl::LINES,
            LineLoop => gl::LINE_LOOP,
            LineStrip => gl::LINE_STRIP,
            Triangles => gl::TRIANGLES,
            TriangleStrip => gl::TRIANGLE_STRIP,
            TriangleFan => gl::TRIANGLE_FAN,
        }
    }
/// Convert a primitive mode to the relavant OpenGL enum value.
Convert a primitive mode to the relavant OpenGL enum value.
Convert a primitive mode to the relavant OpenGL enum value .
pub fn to_gl_enum(&self) -> GLenum {
        use PrimitiveMode::*;
        match self {
            Points => gl::POINTS,
            Lines => gl::LINES,
            LineLoop => gl::LINE_LOOP,
            LineStrip => gl::LINE_STRIP,
            Triangles => gl::TRIANGLES,
            TriangleStrip => gl::TRIANGLE_STRIP,
            TriangleFan => gl::TRIANGLE_FAN,
        }
    }
pub fn to_gl_enum ( & self ) -> GLenum { use PrimitiveMode :: * ; match self { Points => gl :: POINTS , Lines => gl :: LINES , LineLoop => gl :: LINE_LOOP , LineStrip => gl :: LINE_STRIP , Triangles => gl :: TRIANGLES , TriangleStrip => gl :: TRIANGLE_STRIP , TriangleFan => gl :: TRIANGLE_FAN , } }
Convert a primitive mode to the relavant OpenGL enum value.
Convert a primitive mode to the relavant OpenGL enum value .
&self
&self