Changeset 8241 in orxonox.OLD for branches/water/src
- Timestamp:
- Jun 8, 2006, 1:58:58 PM (19 years ago)
- Location:
- branches/water/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/water/src/story_entities/game_world.cc
r8235 r8241 135 135 } 136 136 imageSelector->showAll(); 137 imageSelector->setAbsCoor2D( 400, 30);137 imageSelector->setAbsCoor2D(200, 30); 138 138 OrxGui::GLGuiHandler::getInstance()->activateCursor(); 139 139 -
branches/water/src/world_entities/environments/mapped_water.cc
r8235 r8241 79 79 unsigned int* pTextureReflection = new unsigned int [this->textureSize * this->textureSize * channels]; 80 80 memset(pTextureReflection, 0, this->textureSize * this->textureSize * channels * sizeof(unsigned int)); 81 mat.select();81 //mat.select(); 82 82 glBindTexture(GL_TEXTURE_2D, this->mat.getDiffuseTexture(0)); 83 83 glTexImage2D(GL_TEXTURE_2D, 0, channels, this->textureSize, this->textureSize, 0, type, GL_UNSIGNED_INT, pTextureReflection); 84 85 84 glTexParameterf(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTER,GL_LINEAR); 85 glTexParameterf(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTER,GL_LINEAR); 86 glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); 87 glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE); 88 89 unsigned int* pTextureRefraction = new unsigned int [this->textureSize * this->textureSize * channels]; 90 memset(pTextureRefraction, 0, this->textureSize * this->textureSize * channels * sizeof(unsigned int)); 91 glBindTexture(GL_TEXTURE_2D, this->mat.getDiffuseTexture(1)); 86 92 87 93
Note: See TracChangeset
for help on using the changeset viewer.