Class GLObject

RAII OpenGL object template.

class GLObject(GLObjectTypes type, uint target = 0);

Constructors

NameDescription
this ()

Fields

NameTypeDescription
ID GLuint

Methods

NameDescription
bind ()
fill (indexes)
fill (buffs)
setSamplerParams (linear, clamp, mipmap)
setup (binding)
unbind ()

Note

on construction it binds itself to the target, and it binds 0 to target on destruction. All methods (except ctor, dtor, bind(), unbind() and setup()) does not perform binding.