Changeset 4836 in orxonox.OLD for orxonox/trunk/src/lib/graphics/importer/material.cc
- Timestamp:
- Jul 12, 2005, 12:33:16 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/graphics/importer/material.cc
r4834 r4836 25 25 #include <string.h> 26 26 27 //! \todo check if we are in RESOURCE MANAGER-mode27 //! @todo check if we are in RESOURCE MANAGER-mode 28 28 #include "resource_manager.h" 29 29 … … 31 31 32 32 /** 33 \briefcreates a Material.34 \param mtlName Name of the Material to be added to the Material List33 * creates a Material. 34 * @param mtlName Name of the Material to be added to the Material List 35 35 */ 36 36 Material::Material (const char* mtlName) … … 52 52 53 53 /** 54 \briefdeletes a Material54 * deletes a Material 55 55 */ 56 56 Material::~Material() … … 67 67 68 68 /** 69 \briefsets the material with which the following Faces will be painted69 * sets the material with which the following Faces will be painted 70 70 */ 71 71 bool Material::select () … … 99 99 100 100 // setting illumination Model 101 if (this->illumModel == 1) //! \todo make this work, if no vertex-normals are read.101 if (this->illumModel == 1) //! @todo make this work, if no vertex-normals are read. 102 102 glShadeModel(GL_FLAT); 103 103 else if (this->illumModel >= 2) … … 124 124 125 125 /** 126 \briefSets the Material Illumination Model.127 \briefillu illumination Model in int form126 * Sets the Material Illumination Model. 127 * illu illumination Model in int form 128 128 */ 129 129 void Material::setIllum (int illum) … … 133 133 } 134 134 /** 135 \briefSets the Material Illumination Model.136 \briefillu illumination Model in char* form135 * Sets the Material Illumination Model. 136 * illu illumination Model in char* form 137 137 */void Material::setIllum (char* illum) 138 138 { … … 141 141 142 142 /** 143 \briefSets the Material Diffuse Color.144 \param r Red Color Channel.145 \param g Green Color Channel.146 \param b Blue Color Channel.143 * Sets the Material Diffuse Color. 144 * @param r Red Color Channel. 145 * @param g Green Color Channel. 146 * @param b Blue Color Channel. 147 147 */ 148 148 void Material::setDiffuse (float r, float g, float b) … … 156 156 } 157 157 /** 158 \briefSets the Material Diffuse Color.159 \param rgb The red, green, blue channel in char format (with spaces between them)158 * Sets the Material Diffuse Color. 159 * @param rgb The red, green, blue channel in char format (with spaces between them) 160 160 */ 161 161 void Material::setDiffuse (char* rgb) … … 167 167 168 168 /** 169 \briefSets the Material Ambient Color.170 \param r Red Color Channel.171 \param g Green Color Channel.172 \param b Blue Color Channel.169 * Sets the Material Ambient Color. 170 * @param r Red Color Channel. 171 * @param g Green Color Channel. 172 * @param b Blue Color Channel. 173 173 */ 174 174 void Material::setAmbient (float r, float g, float b) … … 181 181 } 182 182 /** 183 \briefSets the Material Ambient Color.184 \param rgb The red, green, blue channel in char format (with spaces between them)183 * Sets the Material Ambient Color. 184 * @param rgb The red, green, blue channel in char format (with spaces between them) 185 185 */ 186 186 void Material::setAmbient (char* rgb) … … 192 192 193 193 /** 194 \briefSets the Material Specular Color.195 \param r Red Color Channel.196 \param g Green Color Channel.197 \param b Blue Color Channel.194 * Sets the Material Specular Color. 195 * @param r Red Color Channel. 196 * @param g Green Color Channel. 197 * @param b Blue Color Channel. 198 198 */ 199 199 void Material::setSpecular (float r, float g, float b) … … 206 206 } 207 207 /** 208 \briefSets the Material Specular Color.209 \param rgb The red, green, blue channel in char format (with spaces between them)208 * Sets the Material Specular Color. 209 * @param rgb The red, green, blue channel in char format (with spaces between them) 210 210 */ 211 211 void Material::setSpecular (char* rgb) … … 217 217 218 218 /** 219 \briefSets the Material Shininess.220 \param shini stes the Shininess from float.219 * Sets the Material Shininess. 220 * @param shini stes the Shininess from float. 221 221 */ 222 222 void Material::setShininess (float shini) … … 225 225 } 226 226 /** 227 \briefSets the Material Shininess.228 \param shini stes the Shininess from char*.227 * Sets the Material Shininess. 228 * @param shini stes the Shininess from char*. 229 229 */ 230 230 void Material::setShininess (char* shini) … … 234 234 235 235 /** 236 \briefSets the Material Transparency.237 \param trans stes the Transparency from int.236 * Sets the Material Transparency. 237 * @param trans stes the Transparency from int. 238 238 */ 239 239 void Material::setTransparency (float trans) … … 243 243 } 244 244 /** 245 \briefSets the Material Transparency.246 \param trans stes the Transparency from char*.245 * Sets the Material Transparency. 246 * @param trans stes the Transparency from char*. 247 247 */ 248 248 void Material::setTransparency (char* trans) … … 252 252 253 253 /** 254 \briefAdds a Texture Path to the List of already existing Paths255 \param pathName The Path to add.254 * Adds a Texture Path to the List of already existing Paths 255 * @param pathName The Path to add. 256 256 */ 257 257 void Material::addTexturePath(const char* pathName) … … 263 263 264 264 /** 265 \briefSets the Materials Diffuse Map266 \param dMap the Name of the Image to Use265 * Sets the Materials Diffuse Map 266 * @param dMap the Name of the Image to Use 267 267 */ 268 268 void Material::setDiffuseMap(const char* dMap) … … 281 281 282 282 /** 283 \briefSets the Materials Ambient Map284 \param aMap the Name of the Image to Use285 \todo implement this283 * Sets the Materials Ambient Map 284 * @param aMap the Name of the Image to Use 285 @todo implement this 286 286 */ 287 287 void Material::setAmbientMap(const char* aMap) … … 292 292 293 293 /** 294 \briefSets the Materials Specular Map295 \param sMap the Name of the Image to Use296 \todo implement this294 * Sets the Materials Specular Map 295 * @param sMap the Name of the Image to Use 296 @todo implement this 297 297 */ 298 298 void Material::setSpecularMap(const char* sMap) … … 303 303 304 304 /** 305 \briefSets the Materials Bumpiness306 \param bump the Name of the Image to Use307 \todo implemet this305 * Sets the Materials Bumpiness 306 * @param bump the Name of the Image to Use 307 @todo implemet this 308 308 */ 309 309 void Material::setBump(const char* bump)
Note: See TracChangeset
for help on using the changeset viewer.