#include <OpenGLObject.h>
Inherits Object.
Inherited by Box, Cubemap, MilkShapeObject, Sphere, and Tube.
Inheritance diagram for OpenGLObject:
Public Member Functions | |
OpenGLObject () | |
~OpenGLObject () | |
bool | createVertexBuffer () |
bool | clearVertexBuffer () |
void | draw () |
Protected Attributes | |
GLuint | vertexBufferID |
GLuint | indiceBufferID |
Author: Petter Alstermark, petter@alstermark.com
Definition at line 13 of file OpenGLObject.h.
|
Definition at line 13 of file OpenGLObject.cpp. References indiceBufferID, and vertexBufferID. |
|
Definition at line 18 of file OpenGLObject.cpp. |
|
Definition at line 45 of file OpenGLObject.cpp. References GL_ARB_vertex_buffer_object_supported, glDeleteBuffersARB, indiceBufferID, LOG_ERROR, LOG_SUCCESS, and vertexBufferID. Referenced by ObjLevel::clearVertexBuffer(), Play::unload(), Menu::unload(), and Join::unload(). |
|
Definition at line 21 of file OpenGLObject.cpp. References GL_ARB_vertex_buffer_object_supported, GL_ARRAY_BUFFER_ARB, GL_ELEMENT_ARRAY_BUFFER_ARB, GL_STATIC_DRAW_ARB, glBindBufferARB, glBufferDataARB, glGenBuffersARB, indiceBufferID, Object::indices, Object::indiceSize, LOG_ERROR, LOG_SUCCESS, Object::nIndices, Object::nVertices, vertexBufferID, Object::vertexSize, and Object::vertices. Referenced by ObjLevel::createVertexBuffer(). |
|
GL_UNSIGNED_BYTE Implements Object. Definition at line 58 of file OpenGLObject.cpp. References arrayGLFormat, arrayGLPrimitive, arrayGLType, ATT_COLOR, ATT_NORMAL, ATT_TEX, ATT_VERTEX, Format::attFormat, Format::attType, Object::formats, Set< TYPE >::getCount(), GL_ARB_vertex_buffer_object_supported, GL_ARRAY_BUFFER_ARB, GL_ELEMENT_ARRAY_BUFFER_ARB, glBindBufferARB, indiceBufferID, Object::indices, Object::nIndices, Object::nVertices, Format::offset, Object::primitive, Format::size, vertexBufferID, Object::vertexSize, and Object::vertices. Referenced by ObjLevel::draw(), Menu::drawCreate(), ObjLevel::drawFloor(), Menu::drawFrame(), Join::drawFrame(), Play::drawGrenades(), Menu::drawJoin(), Join::drawLevels(), Menu::drawMain(), Play::drawPlayer(), Play::drawProjectiles(), Menu::drawSelection(), Menu::drawSettings(), ObjLevel::drawShadow(), ObjLevel::drawWalls(), ObjLevel::drawWater(), and ObjLevel::drawWaterSurface(). Here is the call graph for this function: |
|
Definition at line 24 of file OpenGLObject.h. Referenced by clearVertexBuffer(), createVertexBuffer(), draw(), and OpenGLObject(). |
|
Definition at line 23 of file OpenGLObject.h. Referenced by clearVertexBuffer(), createVertexBuffer(), draw(), and OpenGLObject(). |