source: GTP/trunk/Lib/Illum/GPUObscurancesGT/include/SNStr.h @ 930

Revision 930, 978 bytes checked in by igarcia, 18 years ago (diff)
Line 
1#ifndef _SN_STRUCT_
2#define _SN_STRUCT_
3
4//*****************************************************
5// Class to store the geometric data for internal use.
6// Authors: Sergi Funtané & Nicolau Sunyer
7// 2005 University of Girona.
8//*****************************************************
9
10typedef struct
11{
12public:
13        float _reflect[3];
14}snMaterial;
15
16
17typedef struct{
18        int _numTris;
19        snMaterial _mat;
20
21        int _numVer;
22        float *_ver;
23        float *_nor;
24        float *_tex;   
25        float *_refl;
26        int *_index;
27
28        unsigned int    m_nVBOVertices;                         // Name of the VBO of Vertex positions.
29        unsigned int    m_nVBONormals;                          // Name of the VBO of Vertex Normals.
30        unsigned int    m_nVBOTexCoords;                        // Name of the VBO of Texture Coordinates.
31        unsigned int    m_nVBOColors;
32        unsigned int    m_nVBOIndexs;                           // Name of the VBO of Vertex Indexs.
33}snTriSet;
34
35typedef struct{
36        int _numTriSets;
37        snTriSet *_triSet;
38}snGeo;
39
40typedef struct{
41        int _numGeos;
42        snGeo *_geo;
43}snObject;
44
45
46#endif
Note: See TracBrowser for help on using the repository browser.