Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4746 in orxonox.OLD for orxonox/trunk/src/lib/graphics/importer


Ignore:
Timestamp:
Jul 1, 2005, 12:48:48 PM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: changed (void) → ()

Location:
orxonox/trunk/src/lib/graphics/importer
Files:
7 edited

Legend:

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

    r4580 r4746  
    3232    ~Array();
    3333
    34     void finalizeArray (void);
     34    void finalizeArray ();
    3535    void addEntry (T entry);
    3636    void addEntry(T entry0, T entry1, T entry2);
     
    3939    inline const T* getArray () const { return this->array; };
    4040    /**   \returns The Count of entries in the Array*/
    41     inline unsigned int getCount(void)const { return this->entryCount; };
    42     void debug(void) const ;
     41    inline unsigned int getCount()const { return this->entryCount; };
     42    void debug() const ;
    4343
    4444  private:
     
    9797*/
    9898template<class T>
    99 void Array<T>::finalizeArray (void)
     99void Array<T>::finalizeArray ()
    100100{
    101101  PRINTF(4)("Finalizing array. Length: %i\n", entryCount);
     
    157157*/
    158158template<class T>
    159 void Array<T>::debug (void) const
     159void Array<T>::debug () const
    160160{
    161161  PRINT(0)("entryCount=%i, address=%p\n", this->entryCount, this->array);
  • orxonox/trunk/src/lib/graphics/importer/material.cc

    r4584 r4746  
    6464   \brief sets the material with which the following Faces will be painted
    6565*/
    66 bool Material::select (void)
     66bool Material::select ()
    6767{
    6868  // setting diffuse color
  • orxonox/trunk/src/lib/graphics/importer/material.h

    r4584 r4746  
    2828  ~Material ();
    2929
    30   bool select (void);
     30  bool select ();
    3131
    3232  void setIllum (int illum);
  • orxonox/trunk/src/lib/graphics/importer/model.cc

    r4677 r4746  
    113113   actually does the same as the delete Operator, but does not delete the predecessing group
    114114*/
    115 void ModelGroup::cleanup(void)
     115void ModelGroup::cleanup()
    116116{
    117117  PRINTF(5)("Cleaning up group\n");
     
    164164   Looks if any from model allocated space is still in use, and if so deleted it.
    165165*/
    166 Model::~Model(void)
     166Model::~Model()
    167167{
    168168  PRINTF(4)("Deleting Model ");
     
    198198   \brief Finalizes an Object. This can be done outside of the Class.
    199199*/
    200 void Model::finalize(void)
     200void Model::finalize()
    201201{
    202202  // this creates the display List.
     
    218218   It does this by just calling the Lists that must have been created earlier.
    219219*/
    220 void Model::draw (void) const
     220void Model::draw () const
    221221{
    222222  PRINTF(4)("drawing the 3D-Models\n");
     
    292292   \brief deletes all the arrays
    293293*/
    294 bool Model::deleteArrays(void)
     294bool Model::deleteArrays()
    295295{
    296296  if (this->vertices)
     
    310310   This funcion is needed, to delete all the Lists, and arrays that are no more needed because they are already imported into openGL. This will be applied at the end of the importing Process.
    311311*/
    312 bool Model::cleanup(void)
     312bool Model::cleanup()
    313313{
    314314  PRINTF(4)("cleaning up the 3D-Model to save Memory.\n");
     
    702702   \brief reads and includes the Faces/Materials into the openGL state Machine
    703703*/
    704 bool Model::importToDisplayList(void)
     704bool Model::importToDisplayList()
    705705{
    706706  // finalize the Arrays
     
    794794   \brief reads and includes the Faces/Materials into the openGL state Machine
    795795*/
    796 bool Model::importToVertexArray(void)
     796bool Model::importToVertexArray()
    797797{
    798798  // finalize the Arrays
     
    857857   This will inject a Cube, because this is the most basic model.
    858858*/
    859 void Model::cubeModel(void)
     859void Model::cubeModel()
    860860{
    861861  this->addVertex (-0.5, -0.5, 0.5);
  • orxonox/trunk/src/lib/graphics/importer/model.h

    r4678 r4746  
    9999 public:
    100100  Model(const char* modelName = NULL, MODEL_TYPE type = MODEL_DISPLAY_LIST);
    101   virtual ~Model(void);
     101  virtual ~Model();
    102102
    103   void draw(void) const;
     103  void draw() const;
    104104  void draw(int groupNumber) const;
    105105  void draw(char* groupName) const;
    106106
    107107  /** \returns Count of the Models (Groups) in this File */
    108   inline int getGroupCount(void) const { return this->groupCount; };
     108  inline int getGroupCount() const { return this->groupCount; };
    109109
    110110  /** \returns a Pointer to the Vertex-Array, if it was deleted it returns NULL */
    111   inline const GLfloat* getVertexArray(void) const { return this->vertices->getArray(); };
     111  inline const GLfloat* getVertexArray() const { return this->vertices->getArray(); };
    112112  /** \returns the VertexCount of this Model */
    113   inline unsigned int getVertexCount(void) const { return this->vertexCount; };
     113  inline unsigned int getVertexCount() const { return this->vertexCount; };
    114114
    115115  /** \returns a Pointer to the Normals-Array, if it was deleted it returns NULL */
    116   inline const GLfloat* getNormalsArray(void) const { return this->normals->getArray(); };
     116  inline const GLfloat* getNormalsArray() const { return this->normals->getArray(); };
    117117  /** \returns the NormalsCount of this Model */
    118   inline unsigned int getNormalsCount(void) const { return this->normalCount; };
     118  inline unsigned int getNormalsCount() const { return this->normalCount; };
    119119
    120120  /** \returns a Pointer to the TexCoord-Array, if it was deleted it returns NULL */
    121   inline const GLfloat* getTexCoordArray(void) const { return this->vTexture->getArray(); };
     121  inline const GLfloat* getTexCoordArray() const { return this->vTexture->getArray(); };
    122122  /** \returns the TexCoord-Count of this Model */
    123   inline unsigned int getTexCoordCount(void) const { return this->texCoordCount; };
     123  inline unsigned int getTexCoordCount() const { return this->texCoordCount; };
    124124
    125125  /** \returns the Count of Faces of this Model */
     
    141141  bool setMaterial(const char* mtlString);
    142142  bool setMaterial(Material* mtl);
    143   void finalize(void);
     143  void finalize();
    144144
    145145
    146146 protected:
    147   void cubeModel(void);
     147  void cubeModel();
    148148
    149149  Material* findMaterialByName(const char* materialName);
     
    154154
    155155 private:
    156   bool buildVertexNormals(void);
     156  bool buildVertexNormals();
    157157
    158   bool importToDisplayList(void);
     158  bool importToDisplayList();
    159159  bool addGLElement(ModelFaceElement* elem);
    160160
    161   bool importToVertexArray(void);
     161  bool importToVertexArray();
    162162
    163   bool deleteArrays(void);
    164   bool cleanup(void);
     163  bool deleteArrays();
     164  bool cleanup();
    165165
    166166 private:
  • orxonox/trunk/src/lib/graphics/importer/texture.cc

    r4662 r4746  
    4343   Frees Data, and deletes the textures from GL
    4444*/
    45 Texture::~Texture(void)
     45Texture::~Texture()
    4646{
    4747  if (this->texture)
  • orxonox/trunk/src/lib/graphics/importer/texture.h

    r4466 r4746  
    2525  //  Texture(TEXTURE_TYPE type, int resolution);
    2626
    27   ~Texture(void);
     27  ~Texture();
    2828
    2929  /** \returns The textureID of this texture.  */
    30   inline GLuint getTexture(void) {return this->texture;}
     30  inline GLuint getTexture() {return this->texture;}
    3131  GLuint loadTexToGL (SDL_Surface* surface);
    3232  /** \returns true if texture has alpha, false otherwise */
    33   inline bool hasAlpha(void) const {return bAlpha;}
     33  inline bool hasAlpha() const {return bAlpha;}
    3434
    3535  bool loadImage(const char* imageName);
Note: See TracChangeset for help on using the changeset viewer.