Trait kiss3d::resource::GLPrimitive [] [src]

pub trait GLPrimitive: Copy {
    fn gl_type(_type: Option<Self>) -> GLuint;
    fn size(_type: Option<Self>) -> GLuint;
    fn upload(&self, location: GLuint);

Trait implemented by structures that can be uploaded to a uniform or contained by a gpu array.

Required Methods

The opengl primitive type of this structure content.

The number of elements of type self.gl_type() this structure stores.

Uploads the element to a gpu location.