- Timestamp:
- 04/19/06 00:27:14 (19 years ago)
- Location:
- GTP/trunk/Lib/Illum/IBRBillboardCloudTrees/OGRE/include/BBC
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Illum/IBRBillboardCloudTrees/OGRE/include/BBC/BBCBillboardCloudGenerator.h
r721 r751 2 2 #define _BBCBILLBOARDCLOUDGENERATOR_H 3 3 4 #include <BBCUtil.h>5 4 #include <BBCEntity.h> 6 5 #include <BBCEntityDistribution.h> -
GTP/trunk/Lib/Illum/IBRBillboardCloudTrees/OGRE/include/BBC/BBCBillboardCloudUVMapper.h
r745 r751 46 46 void generateTextureAtlasTextureCoords(bool mergeBillboards, bool groupedBillboards = false, unsigned int numberGroups = 1); 47 47 48 void addTextureAtlasTextureCoords(bool mergeBillboards, bool groupedBillboards, unsigned int numGeneratedBillboardClouds, unsigned int iBillboardGroup, unsigned int iBillboard );48 void addTextureAtlasTextureCoords(bool mergeBillboards, bool groupedBillboards, unsigned int numGeneratedBillboardClouds, unsigned int iBillboardGroup, unsigned int iBillboard, unsigned int iBillboardInGroup); 49 49 50 50 void setBillboardCloud(BillboardCloud *billboardCloud); -
GTP/trunk/Lib/Illum/IBRBillboardCloudTrees/OGRE/include/BBC/BBCBillboardClusterData.h
r745 r751 77 77 Ogre::Vector2 getBillboardUVMapMin(unsigned int iBillboardGroup); 78 78 79 void addBillboardUVMapMin(Ogre::Vector2 min );79 void addBillboardUVMapMin(Ogre::Vector2 minVec); 80 80 81 81 void removeBillboardUVMapMin(unsigned int iBillboardGroup); … … 83 83 Ogre::Vector2 getBillboardUVMapMax(unsigned int iBillboardGroup); 84 84 85 void addBillboardUVMapMax(Ogre::Vector2 max );85 void addBillboardUVMapMax(Ogre::Vector2 maxVec); 86 86 87 87 void removeBillboardUVMapMax(unsigned int iBillboardGroup); -
GTP/trunk/Lib/Illum/IBRBillboardCloudTrees/OGRE/include/BBC/BBCManager.h
r731 r751 3 3 4 4 #include <BBCPrerequisites.h> 5 #include <BBCUtil.h> 5 6 #include <BBCSingleton.h> 6 7 … … 31 32 void shutdown(void); 32 33 33 Ogre::MeshSerializer* getMeshSerializer(void);34 35 Ogre::XMLMeshSerializer* getXMLMeshSerializer(void);36 37 protected:38 39 34 }; 40 35 -
GTP/trunk/Lib/Illum/IBRBillboardCloudTrees/OGRE/include/BBC/BBCSubEntity.h
r721 r751 130 130 void setMaterialName(Ogre::String value); 131 131 132 //void createUniqueVertices();133 134 132 UniqueVertexList* getUniqueVertices(); 135 133 -
GTP/trunk/Lib/Illum/IBRBillboardCloudTrees/OGRE/include/BBC/BBCUtil.h
r700 r751 5 5 6 6 namespace BBC { 7 8 class _BBCExport Util 9 { 10 public: 11 static Ogre::String getBaseName(Ogre::String fileName) 12 { 13 Ogre::String baseName; 14 size_t pos = fileName.find_last_of("."); 15 baseName = fileName.substr(0, pos); 16 return baseName; 17 } 18 19 static Ogre::String getExtensionName(Ogre::String fileName) 20 { 21 Ogre::String ext; 22 size_t pos = fileName.find_last_of("."); 23 ext = fileName.substr(pos+1); 24 return ext; 25 } 26 27 static unsigned int nextPowerOf2(unsigned int nPlanes) 28 { 29 unsigned int depth = 1; 30 while (depth < nPlanes) 31 { 32 depth = depth << 1; 33 } 34 return depth; 35 } 36 37 }; 38 7 39 /* 8 40 extern "C" _BBCExport double fround(double n, unsigned d) … … 15 47 return (int)floor(x + 0.5); 16 48 } 17 18 extern "C" _BBCExport unsigned int getUpperPowerOfTwo(unsigned int powerOfTwo)19 {20 unsigned int icount = 0;21 unsigned int depth = 1;22 while (icount < powerOfTwo)23 {24 depth = depth << 1;25 icount++;26 }27 return depth;28 }29 49 */ 30 50 }
Note: See TracChangeset
for help on using the changeset viewer.