Line | |
---|
1 |
|
---|
2 | #pragma once
|
---|
3 |
|
---|
4 | #ifdef GAMETOOLS_ILLUMINATION_MODULE
|
---|
5 |
|
---|
6 | #include "Ogre.h"
|
---|
7 |
|
---|
8 | namespace Ogre {
|
---|
9 |
|
---|
10 |
|
---|
11 | class _OgreExport SpriteSet : public BillboardSet
|
---|
12 | {
|
---|
13 |
|
---|
14 | public:
|
---|
15 |
|
---|
16 | SpriteSet( const String& name, unsigned int poolSize = 20,
|
---|
17 | bool externalDataSource = false): BillboardSet(name, poolSize, externalDataSource)
|
---|
18 | {}
|
---|
19 |
|
---|
20 | virtual ~SpriteSet(){}
|
---|
21 |
|
---|
22 | /** Begin injection of billboard data; applicable when
|
---|
23 | constructing the BillboardSet for external data use.
|
---|
24 | */
|
---|
25 | void beginBillboards(void);
|
---|
26 | /// Define a billboard.
|
---|
27 | void injectBillboard(const Billboard& bb);
|
---|
28 |
|
---|
29 | const String& getMovableType(void) const;
|
---|
30 |
|
---|
31 | /** Overridden from MovableObject
|
---|
32 | @see
|
---|
33 | MovableObject
|
---|
34 | */
|
---|
35 | virtual void getRenderOperation(RenderOperation& op);
|
---|
36 |
|
---|
37 | protected:
|
---|
38 | /** Private constructor (instances cannot be created directly).
|
---|
39 | */
|
---|
40 | SpriteSet(){}
|
---|
41 |
|
---|
42 | void genVertices( const Billboard& bb);
|
---|
43 |
|
---|
44 |
|
---|
45 | void _createBuffers(void);
|
---|
46 |
|
---|
47 |
|
---|
48 | };
|
---|
49 |
|
---|
50 | /** Factory object for creating BillboardSet instances */
|
---|
51 | class _OgreExport SpriteSetFactory : public MovableObjectFactory
|
---|
52 | {
|
---|
53 | protected:
|
---|
54 | MovableObject* createInstanceImpl( const String& name, const NameValuePairList* params);
|
---|
55 | public:
|
---|
56 | SpriteSetFactory() {}
|
---|
57 | ~SpriteSetFactory() {}
|
---|
58 |
|
---|
59 | static String FACTORY_TYPE_NAME;
|
---|
60 |
|
---|
61 | const String& getType(void) const;
|
---|
62 | void destroyInstance( MovableObject* obj);
|
---|
63 |
|
---|
64 | };
|
---|
65 |
|
---|
66 |
|
---|
67 | }
|
---|
68 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.