Allolib  1.0
C++ Components For Interactive Multimedia
al::VAO Class Reference

VAO class. More...

#include <C:/Users/Andres/source/repos/casm_viewer/external/tinc/external/allolib/include/al/graphics/al_VAO.hpp>

Inheritance diagram for al::VAO:
al::GPUObject al::EasyVAO

Public Types

enum  DataType : unsigned int {
  BYTE = GL_BYTE , UBYTE = GL_UNSIGNED_BYTE , SHORT = GL_SHORT , USHORT = GL_UNSIGNED_SHORT ,
  INT = GL_INT , UINT = GL_UNSIGNED_INT , FLOAT = GL_FLOAT , DOUBLE = GL_DOUBLE
}
 

Public Member Functions

virtual void onCreate () override
 Called when currently assigned context is created.
 
virtual void onDestroy () override
 Called when currently assigned context is destroyed.
 
void bind ()
 
void unbind ()
 
void enableAttrib (unsigned int index)
 
void disableAttrib (unsigned int index)
 
void attribPointer (unsigned int index, BufferObject &buffer, int size, unsigned int type=GL_FLOAT, unsigned char normalized=GL_FALSE, int stride=0, void const *offset=NULL)
 
bool created () const
 Returns whether object has been created.
 
void create ()
 Creates object on GPU.
 
void destroy ()
 Destroys object on GPU.
 
unsigned long id () const
 Returns the assigned object id.
 
void id (unsigned long v)
 
void validate ()
 Ensure that the GPUObject is ready to use. More...
 
void invalidate ()
 Triggers re-creation of object safely.
 

Protected Attributes

unsigned int mID
 
bool mResubmit
 

Detailed Description

VAO class.

Definition at line 18 of file al_VAO.hpp.

Member Function Documentation

◆ validate()

void al::GPUObject::validate ( )
inherited

Ensure that the GPUObject is ready to use.

This is typically placed before any rendering implementation. If the object has been invalidated, the object will be destroyed and then created again. Otherwise, the object will simply be created if not already created.


The documentation for this class was generated from the following file: