Changeset 7574 in orxonox.OLD for branches/bsp_model
- Timestamp:
- May 10, 2006, 3:43:27 PM (19 years ago)
- Location:
- branches/bsp_model/src/lib/graphics/importer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/bsp_model/src/lib/graphics/importer/material.cc
r7525 r7574 77 77 78 78 79 Material* Material::selectedMaterial = NULL;79 const Material* Material::selectedMaterial = NULL; 80 80 81 81 const GLenum Material::glTextureArbs[] = 82 82 { 83 GL_TEXTURE0 _ARB,84 GL_TEXTURE1 _ARB,85 GL_TEXTURE2 _ARB,86 GL_TEXTURE3 _ARB,87 GL_TEXTURE4 _ARB,88 GL_TEXTURE5 _ARB,89 GL_TEXTURE6 _ARB,90 GL_TEXTURE7 _ARB83 GL_TEXTURE0, 84 GL_TEXTURE1, 85 GL_TEXTURE2, 86 GL_TEXTURE3, 87 GL_TEXTURE4, 88 GL_TEXTURE5, 89 GL_TEXTURE6, 90 GL_TEXTURE7 91 91 }; 92 92 … … 158 158 glActiveTexture(Material::glTextureArbs[i]); 159 159 glBindTexture(GL_TEXTURE_2D, 0); 160 glDisable(GL_TEXTURE_2D); 160 161 } 161 162 } … … 174 175 } 175 176 } 177 Material::selectedMaterial = this; 176 178 177 179 /* if (this->diffuseTexture != NULL) -
branches/bsp_model/src/lib/graphics/importer/material.h
r7524 r7574 69 69 70 70 private: 71 static Material* selectedMaterial; //!< The currently selected material.71 static const Material* selectedMaterial; //!< The currently selected material. 72 72 73 73 int illumModel; //!< The IlluminationModel is either flat or smooth.
Note: See TracChangeset
for help on using the changeset viewer.