
// compile object withour name_space and no errors:
// ppc-amigaos-g++  -c test_namespace.cpp

// compile object with name_space thing and have those errors:
// ppc-amigaos-g++ -D__USE_AMIGAOS_NAMESPACE__  -c test_namespace.cpp


#include <GLES2/gl2.h>
#include <GLES2/gl2ext.h>


class GL2IndexBuffer {
 public:
  GL2IndexBuffer();
  virtual ~GL2IndexBuffer();
  
 private:
  int m_RefCount;
  int m_NumIndices;
  GLenum m_PrimitiveType;
  GLuint m_IndicesVBO;
};


GL2IndexBuffer::GL2IndexBuffer()
    : m_RefCount(0),
      m_NumIndices(0),
      m_PrimitiveType(GL_TRIANGLES),
      m_IndicesVBO(0) {}

GL2IndexBuffer::~GL2IndexBuffer() {
  if (m_IndicesVBO) {
    glDeleteBuffers(1, &m_IndicesVBO);
    m_IndicesVBO = 0;
  }
}
