Changeset 8619 in orxonox.OLD for trunk/src/world_entities
- Timestamp:
- Jun 20, 2006, 1:24:11 PM (19 years ago)
- Location:
- trunk/src/world_entities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/environments/mapped_water.cc
r8312 r8619 80 80 memset(pTextureReflection, 0, this->textureSize * this->textureSize * channels * sizeof(unsigned int)); 81 81 //mat.select(); 82 glBindTexture(GL_TEXTURE_2D, this->mat. getDiffuseTexture(0));82 glBindTexture(GL_TEXTURE_2D, this->mat.diffuseTextureID(0)); 83 83 glTexParameterf(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTER,GL_LINEAR); 84 84 glTexParameterf(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTER,GL_LINEAR); … … 90 90 unsigned int* pTextureRefraction = new unsigned int [this->textureSize * this->textureSize * channels]; 91 91 memset(pTextureRefraction, 0, this->textureSize * this->textureSize * channels * sizeof(unsigned int)); 92 glBindTexture(GL_TEXTURE_2D, this->mat. getDiffuseTexture(1));92 glBindTexture(GL_TEXTURE_2D, this->mat.diffuseTextureID(1)); 93 93 glTexParameterf(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTER,GL_LINEAR); 94 94 glTexParameterf(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTER,GL_LINEAR); … … 281 281 /// 282 282 283 glBindTexture(GL_TEXTURE_2D, this->mat. getDiffuseTexture(0));283 glBindTexture(GL_TEXTURE_2D, this->mat.diffuseTextureID(0)); 284 284 285 285 // Create the texture and store it on the video card … … 351 351 if(pos.y > waterHeight) 352 352 { 353 double plane[4] = {0.0, -1.0, 0.0, waterHeight}; 353 double plane[4] = {0.0, -1.0, 0.0, waterHeight}; 354 354 glClipPlane(GL_CLIP_PLANE0, plane); 355 355 … … 359 359 { 360 360 glCullFace(GL_FRONT); 361 double plane[4] = {0.0, 1.0, 0.0, -waterHeight}; 361 double plane[4] = {0.0, 1.0, 0.0, -waterHeight}; 362 362 glClipPlane(GL_CLIP_PLANE0, plane); 363 363 } … … 370 370 371 371 372 glBindTexture(GL_TEXTURE_2D, this->mat. getDiffuseTexture(1));372 glBindTexture(GL_TEXTURE_2D, this->mat.diffuseTextureID(1)); 373 373 374 374 // Create the texture and store it on the video card -
trunk/src/world_entities/skybox.h
r7954 r8619 53 53 const std::string& posY, const std::string& negZ, const std::string& posZ); 54 54 55 GLuint getTexture(SKY_SIDE side) const { return (this->material[side]) ? this->material[side]-> getDiffuseTexture(): 0; };55 GLuint getTexture(SKY_SIDE side) const { return (this->material[side]) ? this->material[side]->diffuseTextureID(): 0; }; 56 56 57 57 static void enableCubeMap(); … … 69 69 float textureSize; //!< this is the length of a texture (assumes a square texture) 70 70 std::string textureName; //!< Name of the Texture 71 71 72 72 int textureName_handle; //!< used to notify about changes of textureName 73 73 int size_handle; //!< used to notify about changes of size
Note: See TracChangeset
for help on using the changeset viewer.