~unity-team/nux/nux-remove-glew-mx

« back to all changes in this revision

Viewing changes to NuxGraphics/MeshData.h

  • Committer: Jay Taoko
  • Date: 2011-05-30 02:54:31 UTC
  • mfrom: (353.1.1 nux)
  • Revision ID: jay.taoko@canonical.com-20110530025431-kpqcnbcq3apsfz92
* Object::Dispose() now does the same thing as Object::UnReference()
* Fixed memory leak in UXTheme::Load2DTextureFile
* Mesh Resource manager
    - Fixed mesh Resource manager pipeline
    - See example ProgObjMeshLoader

* Fixed GLSL Shaders in FontRendering.cpp
    - removed global variable USE_ARB_SHADERS and replaced with GraphicsEngine::UsingGLSLCodePath()

* Removing files IniFile.cpp/.h
* Removing files UIColorTheme.cpp/.h

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef MESHDATA_H
 
2
#define MESHDATA_H
 
3
 
 
4
namespace nux
 
5
{
 
6
  class MeshData
 
7
  {
 
8
  public:
 
9
    MeshData();
 
10
    ~MeshData();
 
11
 
 
12
    bool Allocate(int num_index, int index_size, int num_elements, int element_size);
 
13
 
 
14
  public:
 
15
    unsigned char* _vertex_data;
 
16
    unsigned char* _index_data;
 
17
    int   _num_element;
 
18
    int   _element_size;
 
19
    int   _num_index;
 
20
    int   _index_size;
 
21
  };
 
22
}
 
23
 
 
24
#endif // MESHDATA_H