Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

worldbox.h

Go to the documentation of this file.
00001 
00008 #ifndef _WORLDBOX_H
00009 #define _WORLDBOX_H
00010 
00011 #include "material.h"
00012 
00013 #include <gfx/vec3.h>
00014 
00015 #include <ode/ode.h>
00016 
00017 class WorldBox {
00018 public:
00019 
00020     // size is taken to be total size of box in each dimension, centered
00021     // the origin
00022     WorldBox( Vec3 size, const Material& box_mat, const Material& cloud_mat );
00023 
00024     ~WorldBox( void );
00025 
00026     void render( void );
00027 
00028     Vec3 get_size() { return _size; }
00029 
00030     string WorldBox::get_info() const;
00031 private:
00032 
00033     Material _material;
00034     Material _clouds;
00035 
00036     dGeomID _geom_id[ 6 ];
00037 
00038     Vec3 _size;
00039 
00040     Vec3 _min, _max;
00041 
00042     double _cloud_ds;
00043     double _cloud_dt;
00044 };
00045 
00046 #endif // header guard

Generated on Sat Mar 13 15:00:10 2004 by doxygen 1.3.5