Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/trunk/src/lib/graphics/importer/primitive_model.h @ 3657

Last change on this file since 3657 was 3657, checked in by bensch, 19 years ago

orxonox.trunk: importer now with subclass PrimitiveModel, taht supports working CONE/CUBE/PLANE/SPHERE/CYLINDER

File size: 797 bytes
Line 
1/*!
2    \file primitive_model.h
3
4*/
5
6#ifndef _PRIMITIVE_MODEL_H
7#define _PRIMITIVE_MODEL_H
8
9#include "model.h"
10
11//! Specification of different primitives the Model knows
12enum PRIMITIVE {PLANE, CUBE, SPHERE, CYLINDER, CONE};
13
14// FORWARD DEFINITION \\
15
16//! A Class to create some default Models
17class PrimitiveModel : public Model {
18
19 public:
20  PrimitiveModel();
21  PrimitiveModel(PRIMITIVE type, float size = 1.0, unsigned int detail = 10);
22
23  virtual ~PrimitiveModel();
24
25 protected:
26  void cubeModel(void);
27  void sphereModel(float size = 1.0, unsigned int detail = 10);
28  void cylinderModel(float size = 1.0, unsigned int detail = 10);
29  void coneModel(float size = 1.0, unsigned int detail = 10);
30  void planeModel(float size = 1.0, unsigned int detail = 1);
31};
32
33#endif /* _PRIMITIVE_MODEL_H */
Note: See TracBrowser for help on using the repository browser.