Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4791 in orxonox.OLD


Ignore:
Timestamp:
Jul 6, 2005, 12:19:35 PM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: prepearing the objModel for triangles export support a la Patrick. @Bensch: I hope you will agree with my approach

Location:
orxonox/trunk/src/lib/graphics
Files:
4 edited

Legend:

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

    r4746 r4791  
    4040    /**   \returns The Count of entries in the Array*/
    4141    inline unsigned int getCount()const { return this->entryCount; };
     42    inline int getIndex(T* entry) const;
    4243    void debug() const ;
    4344
     
    153154}
    154155
     156
     157
     158template<class T>
     159int Array<T>::getIndex(T* entry) const
     160{
     161
     162}
     163
     164
    155165/**
    156166   \brief Simple debug info about the Array
     
    161171  PRINT(0)("entryCount=%i, address=%p\n", this->entryCount, this->array);
    162172}
     173
    163174#endif
  • orxonox/trunk/src/lib/graphics/importer/model.cc

    r4746 r4791  
    202202  // this creates the display List.
    203203  this->importToDisplayList();
     204  this->buildTriangleList();
    204205
    205206  // deletes everything we allocated.
     
    809810}
    810811
     812
     813
     814/**
     815   \brief builds an array of triangles, that can later on be used for obb separation and octree separation
     816 */
     817bool Model::buildTriangleList()
     818{
     819
     820}
    811821
    812822
  • orxonox/trunk/src/lib/graphics/importer/model.h

    r4746 r4791  
    157157
    158158  bool importToDisplayList();
     159  bool buildTriangleList();
    159160  bool addGLElement(ModelFaceElement* elem);
    160161
  • orxonox/trunk/src/lib/graphics/spatial_separation/spatial_separation.cc

    r4790 r4791  
    1010
    1111   ### File Specific:
    12    main-programmer: ...
     12   main-programmer: Patrick Boenzli
    1313   co-programmer: ...
    1414*/
Note: See TracChangeset for help on using the changeset viewer.