Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6265 in orxonox.OLD for branches/height_map/src/lib


Ignore:
Timestamp:
Dec 22, 2005, 7:10:54 PM (19 years ago)
Author:
bensch
Message:

heightMap: drawing works: *fu* GLubyte…

Location:
branches/height_map/src/lib/graphics/importer
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/height_map/src/lib/graphics/importer/vertex_array_model.cc

    r6264 r6265  
    8484      glDrawElements( GL_TRIANGLE_STRIP,
    8585                      this->stripes[i] - this->stripes[i-1],
    86                       GL_UNSIGNED_BYTE,
     86                      GL_UNSIGNED_INT,
    8787                      &this->indices[this->stripes[i-1]] );
    8888    }
     
    171171 * @param type The information Passed with each Vertex
    172172*/
    173 void VertexArrayModel::addIndice(GLubyte indice)
     173void VertexArrayModel::addIndice(GLuint indice)
    174174{
    175175  this->indices.push_back(indice);
     
    206206void VertexArrayModel::planeModel()
    207207{
    208   unsigned int sizeX = 20, sizeY = 20;
    209 
    210   unsigned int i, j;
     208  GLuint sizeX = 20;
     209  GLuint sizeY = 20;
     210
     211  GLuint i, j;
    211212  for (i = 0; i < sizeY; i++)
    212213    {
     
    228229    }
    229230    this->newStripe();
    230     this->debug();
    231231  }
    232232}
     
    299299  for (GLuint i = 1; i < this->stripes.size(); ++i)
    300300  {
    301     PRINT(0)("Stripe-%d ::", i);
     301    PRINT(0)("Stripe-%d (s:%d:e:%d):: ", i, this->stripes[i-1], this->stripes[i]);
    302302    for (GLuint j = this->stripes[i-1] ; j < this->stripes[i]; j++)
    303303    {
  • branches/height_map/src/lib/graphics/importer/vertex_array_model.h

    r6263 r6265  
    4040  void addColor(float r, float g, float b);
    4141
    42   void addIndice(GLubyte indice);
     42  void addIndice(GLuint indice);
    4343
    4444  void finalize();
     
    6161  std::vector<GLfloat>       colors;          //!< The Array that handles Colors.
    6262
    63   std::vector<GLubyte>       indices;         //!< The Array that tells us what Vertex is connected to which other one.
     63  std::vector<GLuint>        indices;         //!< The Array that tells us what Vertex is connected to which other one.
    6464
    6565  std::vector<GLuint>        stripes;         //!< A lsit of Stripes of this Model.
Note: See TracChangeset for help on using the changeset viewer.