Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5306 in orxonox.OLD for trunk/src/lib/graphics/importer


Ignore:
Timestamp:
Oct 7, 2005, 6:17:49 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: ResourceManage-fixes

Location:
trunk/src/lib/graphics/importer
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/graphics/importer/material.cc

    r5303 r5306  
    3131
    3232/**
    33  *  creates a Material.
     33 * creates a Material.
    3434 * @param mtlName Name of the Material to be added to the Material List
    35 */
     35 */
    3636Material::Material (const char* mtlName)
    3737{
     
    105105    glShadeModel(GL_SMOOTH);
    106106
    107   if (this->diffuseTexture)
     107  if (this->diffuseTexture != NULL)
    108108    {
    109109      glEnable(GL_TEXTURE_2D);
  • trunk/src/lib/graphics/importer/texture.cc

    r5305 r5306  
    3333{
    3434  this->setClassID(CL_TEXTURE, "Texture");
     35  this->setName(imageName);
    3536
    3637  this->bAlpha = false;
Note: See TracChangeset for help on using the changeset viewer.