Changeset 3946 in orxonox.OLD for orxonox/branches/particleEngine/src/lib/graphics/importer
- Timestamp:
- Apr 24, 2005, 7:22:17 PM (20 years ago)
- Location:
- orxonox/branches/particleEngine/src/lib/graphics/importer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/particleEngine/src/lib/graphics/importer/material.cc
r3914 r3946 88 88 89 89 // setting the transparency 90 if (this->transparency == 1.0) 91 { 92 glDisable(GL_BLEND); 93 } 94 else 90 if (this->transparency < 1.0) 95 91 { 96 92 glEnable(GL_BLEND); 97 93 glColor4f(1.0f, 1.0f, 1.0f, this->transparency); 98 94 glBlendFunc(GL_SRC_ALPHA, GL_ONE); 95 } 96 else 97 { 98 glDisable(GL_BLEND); 99 glColor4f(1.0f, 1.0f, 1.0f, 1.0f); 99 100 } 100 101 -
orxonox/branches/particleEngine/src/lib/graphics/importer/texture.cc
r3905 r3946 119 119 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); 120 120 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); 121 /*glTexImage2D(GL_TEXTURE_2D,121 glTexImage2D(GL_TEXTURE_2D, 122 122 0, 123 123 GL_RGBA, … … 127 127 GL_UNSIGNED_BYTE, 128 128 image->pixels); 129 */130 gluBuild2DMipmaps(GL_TEXTURE_2D,129 130 /*gluBuild2DMipmaps(GL_TEXTURE_2D, 131 131 3, 132 132 w, … … 135 135 GL_UNSIGNED_BYTE, 136 136 image->pixels); 137 137 */ 138 138 SDL_FreeSurface(image); /* No longer needed */ 139 139
Note: See TracChangeset
for help on using the changeset viewer.