Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 11, 2005, 12:23:25 AM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: triangle Stripper

File:
1 edited

Legend:

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

    r6022 r6037  
    1212
    1313#include "array.h"
    14 #include <list>
     14#include <vector>
    1515
    1616/* Forward Declaration */
     
    2222/////////////
    2323//! Class that handles 3D-Models. it can also read them in and display them.
     24/**
     25 * this renders models with help of the OpenGL glVertexArray
     26 */
    2427class VertexArrayModel : public Model
    2528{
     
    3033  void draw() const;
    3134
     35
     36  void newStripe();
     37
    3238  void addVertex(float x, float y, float z);
    33 
    3439  void addNormal(float x, float y, float z);
    35 
    3640  void addTexCoor(float u, float v);
    37 
    3841  void addIndice(GLubyte indice);
    3942
    4043  void finalize();
    4144
    42 
    43   void cubeModel();
     45  //
     46  void planeModel();
    4447
    4548 private:
     
    4750
    4851 private:
    49   bool                       finalized;       //!< Sets the Object to be finalized.
     52  bool                       bFinalized;       //!< Sets the Object to be finalized.
    5053
    5154  tArray<GLfloat>            vertices;        //!< The Array that handles the Vertices.
     
    5457
    5558  tArray<GLubyte>            indices;         //!< The Array that tells us what Vertex is connected to which other one.
     59
     60  std::vector<GLuint>        stripes;         //!< A lsit of Stripes of this Model.
     61
    5662};
    5763
Note: See TracChangeset for help on using the changeset viewer.