Last change
on this file since 4156 was
3658,
checked in by bensch, 19 years ago
|
orxonox/trunk: resource manager working, player uses it.
|
File size:
902 bytes
|
Rev | Line | |
---|
[3245] | 1 | /*! |
---|
[3658] | 2 | \file primitive_model.h |
---|
| 3 | \brief a Class to handle different simple models like planes cubes spheres and so on. |
---|
| 4 | (cube is also an option of Model, but is extended here. |
---|
[3245] | 5 | */ |
---|
[1853] | 6 | |
---|
[3657] | 7 | #ifndef _PRIMITIVE_MODEL_H |
---|
| 8 | #define _PRIMITIVE_MODEL_H |
---|
[1853] | 9 | |
---|
[3657] | 10 | #include "model.h" |
---|
[1853] | 11 | |
---|
[3657] | 12 | //! Specification of different primitives the Model knows |
---|
[3658] | 13 | enum PRIMITIVE {CUBE, SPHERE, PLANE, CYLINDER, CONE}; |
---|
[3657] | 14 | |
---|
[3543] | 15 | // FORWARD DEFINITION \\ |
---|
| 16 | |
---|
[3657] | 17 | //! A Class to create some default Models |
---|
| 18 | class PrimitiveModel : public Model { |
---|
[3543] | 19 | |
---|
[1904] | 20 | public: |
---|
[3657] | 21 | PrimitiveModel(PRIMITIVE type, float size = 1.0, unsigned int detail = 10); |
---|
| 22 | virtual ~PrimitiveModel(); |
---|
[3245] | 23 | |
---|
[3657] | 24 | protected: |
---|
| 25 | void sphereModel(float size = 1.0, unsigned int detail = 10); |
---|
| 26 | void cylinderModel(float size = 1.0, unsigned int detail = 10); |
---|
| 27 | void coneModel(float size = 1.0, unsigned int detail = 10); |
---|
| 28 | void planeModel(float size = 1.0, unsigned int detail = 1); |
---|
[1853] | 29 | }; |
---|
| 30 | |
---|
[3657] | 31 | #endif /* _PRIMITIVE_MODEL_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.