Changeset 6782 in orxonox.OLD for branches/network/src/lib/graphics/effects
- Timestamp:
- Jan 26, 2006, 7:43:44 PM (19 years ago)
- Location:
- branches/network/src/lib/graphics/effects
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/lib/graphics/effects/lense_flare.cc
r6779 r6782 25 25 #include "texture.h" 26 26 27 #include "render2D/billboard.h" 27 28 28 29 using namespace std; … … 38 39 LenseFlare::LenseFlare(const TiXmlElement* root) 39 40 { 40 41 41 if (root != NULL) 42 42 this->loadParams(root); … … 60 60 LoadParam(root, "add-flare-texture", this, LenseFlare, addFlare) 61 61 .describe("adds a lensflare texture to the engine"); 62 63 62 } 64 63 … … 68 67 */ 69 68 bool LenseFlare::init() 70 { 71 72 } 69 {} 73 70 74 71 … … 78 75 bool LenseFlare::activate() 79 76 { 80 77 this->bActivated = true; 81 78 } 82 79 … … 87 84 bool LenseFlare::deactivate() 88 85 { 89 86 this->bActivated = false; 90 87 } 91 88 … … 103 100 * @param textureName the name of the flare texture 104 101 */ 105 void addFlare(const char* textureName)102 void LenseFlare::addFlare(const char* textureName) 106 103 { 107 Texture* texture = new Texture (textureName, GL_TEXTURE); 108 109 104 Billboard* bb = new Billboard(NULL); 105 bb->setTexture(textureName); 110 106 } 111 107 112 108 109 /** 110 * draws the LenseFlares 111 */ 112 void LenseFlare::draw() const 113 { 114 if( !this->bActivated) 115 return; 116 117 } -
branches/network/src/lib/graphics/effects/lense_flare.h
r6779 r6782 14 14 class TiXmlElement; 15 15 class Light; 16 class Element2D;16 class Billboard; 17 17 18 18 //! A class that handles LenseFlares. The LenseFlareManager operates on this. … … 41 41 private: 42 42 Light* lightSource; //!< reference to the sun (or primary light source) 43 std::vector< Element2D*> flares; //!< the flares array43 std::vector<Billboard*> flares; //!< the flares array 44 44 }; 45 45
Note: See TracChangeset
for help on using the changeset viewer.