Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6264 in orxonox.OLD


Ignore:
Timestamp:
Dec 22, 2005, 6:45:31 PM (19 years ago)
Author:
bensch
Message:

heightmap: triangle strips

File:
1 edited

Legend:

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

    r6263 r6264  
    8080  glColorPointer(3, GL_FLOAT, 0, &this->colors[0]);
    8181
    82   for (GLuint i = 1; ++i < this->stripes.size(); ++i)
    83     {
    84       glDrawElements( GL_TRIANGLES,
     82  for (GLuint i = 1; i < this->stripes.size(); ++i)
     83    {
     84      glDrawElements( GL_TRIANGLE_STRIP,
    8585                      this->stripes[i] - this->stripes[i-1],
    8686                      GL_UNSIGNED_BYTE,
Note: See TracChangeset for help on using the changeset viewer.