Changeset 6532 in orxonox.OLD for trunk/src/lib/graphics
- Timestamp:
- Jan 18, 2006, 1:20:02 PM (19 years ago)
- Location:
- trunk/src/lib/graphics/importer
- Files:
-
- 4 edited
- 4 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/importer/Makefile.am
r6455 r6532 14 14 texture.cc \ 15 15 texture_sequence.cc \ 16 height_map.cc 16 height_map.cc \ 17 media_container.cc \ 18 movie_player.cc 17 19 18 20 libtc_a_SOURCES = tc.cc … … 32 34 height_map.h \ 33 35 anorms.h \ 34 anormtab.h 36 anormtab.h \ 37 media_container.h \ 38 movie_player.h -
trunk/src/lib/graphics/importer/texture.cc
r6523 r6532 199 199 0xFF000000 200 200 #else 201 201 0xFF000000, 202 202 0x00FF0000, 203 203 0x0000FF00, -
trunk/src/lib/graphics/importer/texture_sequence.cc
r5885 r6532 47 47 TextureSequence::~TextureSequence() 48 48 { 49 this->clearLists(); 50 } 51 52 void TextureSequence::clearLists() 53 { 49 54 // delete all images 50 55 while(!this->images.empty()) … … 54 59 } 55 60 56 this->setTexture(0);57 61 // delete all textures. 58 62 while(!this->textures.empty()) … … 63 67 } 64 68 } 65 66 69 67 70 /** … … 149 152 } 150 153 this->setAlpha(hasAlpha); 154 151 155 return true; 152 156 } 153 157 158 /** 159 * @brief adds a new Frame at the end of the Sequence. 160 * @param texture the texture to add at the end of the Sequence. 161 */ 162 bool TextureSequence::addFrame(GLuint texture) 163 { 164 if (texture == 0) 165 return false; 166 this->textures.push_back(texture); 154 167 168 return true; 169 } 155 170 156 171 /** … … 158 173 * @param frameNumber the n-th frame 159 174 */ 160 void TextureSequence::gotoFrame(unsigned int frameNumber)175 /*void TextureSequence::gotoFrame(unsigned int frameNumber) 161 176 { 162 177 if (this->textures.size() > frameNumber) 163 178 this->setTexture(this->textures[frameNumber]); 164 179 } 180 */ -
trunk/src/lib/graphics/importer/texture_sequence.h
r5865 r6532 29 29 bool addFrame(const char* image); 30 30 bool addFrame(SDL_Surface* surface); 31 bool addFrame(GLuint texture); 32 33 void clearLists(); 31 34 32 35 virtual bool rebuild(); … … 35 38 inline unsigned int getFrameCount() const { return this->textures.size(); }; 36 39 37 void gotoFrame(unsigned int frameNumber);40 //void gotoFrame(unsigned int frameNumber); 38 41 /** @returns The textureID of the Frame @param frameNumber the n-th frame this texture-series. */ 39 42 inline GLuint getFrameTexture(unsigned int frameNumber) const { return (this->textures.size()>frameNumber)?this->textures[frameNumber]:0; };
Note: See TracChangeset
for help on using the changeset viewer.