Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 27, 2005, 12:24:27 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: merged the VertexArrayModel from heightmap and added some simple importer facility.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/graphics/importer/vertex_array_model.h

    r6308 r6310  
    1111#include "glincl.h"
    1212
    13 #include "array.h"
    1413#include <vector>
    1514
     
    4039  void addNormal(float x, float y, float z);
    4140  void addTexCoor(float u, float v);
    42   void addIndice(GLubyte indice);
     41  void addColor(float r, float g, float b);
     42
     43  void addIndice(GLuint indice);
    4344
    4445  void finalize();
    4546
    4647  //
    47   void planeModel();
     48  void planeModel(float sizeX, float sizeY, unsigned int resolutionX, unsigned int resolutionY);
     49  void spiralSphere(const float radius, const unsigned int loops, const unsigned int segmentsPerLoop);
     50
     51  void debug() const;
    4852
    4953 private:
     
    5357  bool                       bFinalized;       //!< Sets the Object to be finalized.
    5458
    55   tArray<GLfloat>            vertices;        //!< The Array that handles the Vertices.
    56   tArray<GLfloat>            normals;         //!< The Array that handles the Normals.
    57   tArray<GLfloat>            texCoords;       //!< The Array that handles the VertexTextureCoordinates.
     59  std::vector<GLfloat>       vertices;        //!< The Array that handles the Vertices.
     60  std::vector<GLfloat>       normals;         //!< The Array that handles the Normals.
     61  std::vector<GLfloat>       texCoords;       //!< The Array that handles the VertexTextureCoordinates.
     62  std::vector<GLfloat>       colors;          //!< The Array that handles Colors.
    5863
    59   tArray<GLubyte>            indices;         //!< The Array that tells us what Vertex is connected to which other one.
     64  std::vector<GLuint>        indices;         //!< The Array that tells us what Vertex is connected to which other one.
    6065
    6166  std::vector<GLuint>        stripes;         //!< A lsit of Stripes of this Model.
Note: See TracChangeset for help on using the changeset viewer.