pub fn gl_base_primitive(&self) -> GLenum {
        match *self {
            PrimitiveMode::Points
                => gl::POINTS,

            PrimitiveMode::LineStrip | PrimitiveMode::LineLoop | PrimitiveMode::Lines |
            PrimitiveMode::LineStripAdjacency | PrimitiveMode::LinesAdjacency
                => gl::LINES,

            PrimitiveMode::TriangleStrip | PrimitiveMode::TriangleFan | PrimitiveMode::Triangles |
            PrimitiveMode::TriangleStripAdjacency | PrimitiveMode::TrianglesAdjacency
                => gl::TRIANGLES,
        }
    }
/// Returns the base primitive for this type. Either `gl::POINTS`, `gl::LINES` or
/// `gl::TRIANGLES`.
Returns the base primitive for this type.
Returns the base primitive for this type .
pub fn gl_base_primitive(&self) -> GLenum {
        match *self {
            PrimitiveMode::Points
                => gl::POINTS,
            PrimitiveMode::LineStrip | PrimitiveMode::LineLoop | PrimitiveMode::Lines |
            PrimitiveMode::LineStripAdjacency | PrimitiveMode::LinesAdjacency
                => gl::LINES,
            PrimitiveMode::TriangleStrip | PrimitiveMode::TriangleFan | PrimitiveMode::Triangles |
            PrimitiveMode::TriangleStripAdjacency | PrimitiveMode::TrianglesAdjacency
                => gl::TRIANGLES,
        }
    }
pub fn gl_base_primitive ( & self ) -> GLenum { match * self { PrimitiveMode :: Points => gl :: POINTS , PrimitiveMode :: LineStrip | PrimitiveMode :: LineLoop | PrimitiveMode :: Lines | PrimitiveMode :: LineStripAdjacency | PrimitiveMode :: LinesAdjacency => gl :: LINES , PrimitiveMode :: TriangleStrip | PrimitiveMode :: TriangleFan | PrimitiveMode :: Triangles | PrimitiveMode :: TriangleStripAdjacency | PrimitiveMode :: TrianglesAdjacency => gl :: TRIANGLES , } }
Returns the base primitive for this type.
Returns the base primitive for this type .
&self
&self