GlistEngine
Loading...
Searching...
No Matches
gVbo Class Reference

#include <gVbo.h>

Inheritance diagram for gVbo:
Collaboration diagram for gVbo:

Public Member Functions

 gVbo ()
virtual ~gVbo ()
 gVbo (const gVbo &)=delete
gVbo & operator= (const gVbo &other)=delete
void setVertexData (const gVertex *vertices, int coordNum, int total)
void setIndexData (const gIndex *indices, int total)
void setInstanceData (const glm::mat4 *instanceTransformations, int instanceCount)
void clear ()
void bind () const
void unbind () const
void enable ()
void disable ()
bool isEnabled () const
bool isVertexDataAllocated () const
bool isIndexDataAllocated () const
void setVertexData (const glm::vec3 *vertices, int total, int usage=GL_STATIC_DRAW)
void setVertexData (const glm::vec2 *vertices, int total, int usage=GL_STATIC_DRAW)
void setVertexData (const float *verticesptr, int coordNum, int total, int usage, int stride=0)
void setColorData (const gColor *colors, int total, int usage)
void setColorData (const float *color0r, int total, int usage, int stride=0)
void setTexCoordData (const glm::vec2 *texCoords, int total, int usage)
void setTexCoordData (const float *texCoord0x, int total, int usage, int stride=0)
void setNormalData (const glm::vec3 *normals, int total, int usage=GL_STATIC_DRAW)
void setNormalData (const float *normal0x, int total, int usage, int stride=0)
void setIndexData (const int *indices, int total, int usage)
int getVAOid () const
int getVerticesNum () const
int getIndicesNum () const
Public Member Functions inherited from gRenderObject
 gRenderObject ()
int getScreenWidth ()
int getScreenHeight ()
void pushMatrix ()
void popMatrix ()
Public Member Functions inherited from gObject
 gObject ()
void logi (std::string message)
void logd (std::string message)
void logw (std::string message)
void loge (std::string message)
void logi (std::string tag, std::string message)
void logd (std::string tag, std::string message)
void logw (std::string tag, std::string message)
void loge (std::string tag, std::string message)

Additional Inherited Members

Static Public Member Functions inherited from gRenderObject
static void setScreenSize (int screenWidth, int screenHeight)
static void setUnitScreenSize (int unitWidth, int unitHeight)
static void setScreenScaling (int screenScaling)
static void enableShadowMapping ()
static void disableShadowMapping ()
static bool isShadowMappingEnabled ()
static void enableExtraShaders (bool isEnabled=true)
static void disableExtraShaders ()
static bool isExtraShadersEnabled ()
static gRenderer * getRenderer ()
static void destroyRenderer ()
static void createRenderer (int renderEngine=G_RENDERER_GL)
Static Public Member Functions inherited from gObject
static std::string gGetAppDir ()
static std::string gGetAssetsDir ()
static void gSetAssetsDir (std::string assetsDir)
static std::string gGetFilesDir ()
static std::string gGetImagesDir ()
static std::string gGetFontsDir ()
static std::string gGetModelsDir ()
static std::string gGetTexturesDir ()
static std::string gGetShadersDir ()
static std::string gGetSoundsDir ()
static std::string gGetDatabasesDir ()
static std::string gGetVideosDir ()
static void setCurrentResolution (int scalingNo, int currentResolutionNo)
Static Public Attributes inherited from gObject
static const int LOGLEVEL_SILENT
static const int LOGLEVEL_DEBUG
static const int LOGLEVEL_INFO
static const int LOGLEVEL_WARNING
static const int LOGLEVEL_ERROR
Static Protected Attributes inherited from gRenderObject
static bool isshadowmappingenabled
static bool isextrashadersenabled
Static Protected Attributes inherited from gObject
static int renderpassnum
static int renderpassno
static int releasescaling
static int releaseresolution

Constructor & Destructor Documentation

◆ gVbo() [1/2]

gVbo::gVbo ( )

◆ ~gVbo()

virtual gVbo::~gVbo ( )
virtual

◆ gVbo() [2/2]

gVbo::gVbo ( const gVbo & )
delete

Member Function Documentation

◆ bind()

void gVbo::bind ( ) const

◆ clear()

void gVbo::clear ( )

◆ disable()

void gVbo::disable ( )

◆ enable()

void gVbo::enable ( )

◆ getIndicesNum()

int gVbo::getIndicesNum ( ) const

◆ getVAOid()

int gVbo::getVAOid ( ) const

◆ getVerticesNum()

int gVbo::getVerticesNum ( ) const

◆ isEnabled()

bool gVbo::isEnabled ( ) const

◆ isIndexDataAllocated()

bool gVbo::isIndexDataAllocated ( ) const

◆ isVertexDataAllocated()

bool gVbo::isVertexDataAllocated ( ) const

◆ operator=()

gVbo & gVbo::operator= ( const gVbo & other)
delete

◆ setColorData() [1/2]

void gVbo::setColorData ( const float * color0r,
int total,
int usage,
int stride = 0 )

◆ setColorData() [2/2]

void gVbo::setColorData ( const gColor * colors,
int total,
int usage )

◆ setIndexData() [1/2]

void gVbo::setIndexData ( const gIndex * indices,
int total )

◆ setIndexData() [2/2]

void gVbo::setIndexData ( const int * indices,
int total,
int usage )

◆ setInstanceData()

void gVbo::setInstanceData ( const glm::mat4 * instanceTransformations,
int instanceCount )

◆ setNormalData() [1/2]

void gVbo::setNormalData ( const float * normal0x,
int total,
int usage,
int stride = 0 )

◆ setNormalData() [2/2]

void gVbo::setNormalData ( const glm::vec3 * normals,
int total,
int usage = GL_STATIC_DRAW )

◆ setTexCoordData() [1/2]

void gVbo::setTexCoordData ( const float * texCoord0x,
int total,
int usage,
int stride = 0 )

◆ setTexCoordData() [2/2]

void gVbo::setTexCoordData ( const glm::vec2 * texCoords,
int total,
int usage )

◆ setVertexData() [1/4]

void gVbo::setVertexData ( const float * verticesptr,
int coordNum,
int total,
int usage,
int stride = 0 )

◆ setVertexData() [2/4]

void gVbo::setVertexData ( const glm::vec2 * vertices,
int total,
int usage = GL_STATIC_DRAW )

◆ setVertexData() [3/4]

void gVbo::setVertexData ( const glm::vec3 * vertices,
int total,
int usage = GL_STATIC_DRAW )

◆ setVertexData() [4/4]

void gVbo::setVertexData ( const gVertex * vertices,
int coordNum,
int total )

◆ unbind()

void gVbo::unbind ( ) const

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