Last change
on this file since 711 was
708,
checked in by rgrieder, 18 years ago
|
- added Vector2, Vector3, Matrix3, ColourValue, Quaternion and String to the misc folder as header files
(each of them contains #include <string> … typedef std::string String , etc.)
- please use String from now on by including <misc/String.h"
- removed #include <OgreVector3.h", etc. from "CoreIncludes.h" (adjusted all source files)
- adjusted all the source files (except network, that keeps <string> for the moment) (what a mess..)
- moved usleep hack to misc/Sleep.h
- relative include paths for files from other root directories (like misc, network, etc.)
(but it stills writes "../Orxonox.h" when in folder orxonox/objects)
- "OgreSceneManager.h" —> <OgreSceneManager.h>
- included OrxonoxPrereqs in every file in folder orxonox
- moved HUD and ParticleInterface to namespace orxonox
- removed some using namespace Ogre/std when appropriate
- I hope I haven't forgotten important points..
|
File size:
930 bytes
|
Rev | Line | |
---|
[673] | 1 | #ifndef _BillboardSet_H__ |
---|
| 2 | #define _BillboardSet_H__ |
---|
| 3 | |
---|
[708] | 4 | #include <OgreBillboardSet.h> |
---|
[633] | 5 | |
---|
[708] | 6 | #include "../OrxonoxPrereqs.h" |
---|
[633] | 7 | |
---|
[708] | 8 | #include "misc/String.h" |
---|
| 9 | #include "../core/CoreIncludes.h" |
---|
| 10 | #include "misc/ColourValue.h" |
---|
| 11 | #include "misc/Vector3.h" |
---|
| 12 | |
---|
[633] | 13 | namespace orxonox |
---|
| 14 | { |
---|
| 15 | class BillboardSet |
---|
| 16 | { |
---|
| 17 | public: |
---|
| 18 | BillboardSet(); |
---|
| 19 | ~BillboardSet(); |
---|
[708] | 20 | void setBillboardSet(const String& file, const ColourValue& colour = ColourValue(1.0, 1.0, 1.0), int count = 1, const Vector3& position = Vector3::ZERO); |
---|
[633] | 21 | |
---|
| 22 | inline Ogre::BillboardSet* getBillboardSet() |
---|
| 23 | { return this->billboardSet_; } |
---|
| 24 | |
---|
[708] | 25 | inline const String& getName() const |
---|
[633] | 26 | { return this->billboardSet_->getName(); } |
---|
| 27 | |
---|
| 28 | private: |
---|
| 29 | static unsigned int billboardSetCounter_s; |
---|
| 30 | Ogre::BillboardSet* billboardSet_; |
---|
| 31 | }; |
---|
| 32 | } |
---|
| 33 | |
---|
[673] | 34 | #endif /* _BillboardSet_H__ */ |
---|
Note: See
TracBrowser
for help on using the repository browser.