Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

orxonox/trunk: resource manager working, player uses it.

File size: 902 bytes
Line 
1/*!
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.
5*/
6
7#ifndef _PRIMITIVE_MODEL_H
8#define _PRIMITIVE_MODEL_H
9
10#include "model.h"
11
12//! Specification of different primitives the Model knows
13enum PRIMITIVE {CUBE, SPHERE, PLANE, CYLINDER, CONE};
14
15// FORWARD DEFINITION \\
16
17//! A Class to create some default Models
18class PrimitiveModel : public Model {
19
20 public:
21  PrimitiveModel(PRIMITIVE type, float size = 1.0, unsigned int detail = 10);
22  virtual ~PrimitiveModel();
23
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);
29};
30
31#endif /* _PRIMITIVE_MODEL_H */
Note: See TracBrowser for help on using the repository browser.