Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3070 in orxonox.OLD for orxonox/trunk/importer/material.h


Ignore:
Timestamp:
Dec 3, 2004, 8:22:38 PM (21 years ago)
Author:
bensch
Message:

orxonox/trunk/importer: ability to readIn BMP files for the diffuse-color-Texture

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/importer/material.h

    r3069 r3070  
    1111#include <GL/gl.h>
    1212#include <GL/glu.h>
     13#include <SDL/SDL.h>
    1314#include <stdlib.h>
    1415#include <fstream>
     
    2526  ~Material ();
    2627
     28  GLuint diffuseTexture;
     29  GLuint ambientTexture;
     30  GLuint specularTexture;
     31 
     32  bool diffuseTextureSet;
     33  bool ambientTextureSet;
     34  bool specularTextureSet;
    2735
    2836  void setName (char* mtlName);
     
    4048  void setTransparency (float trans);
    4149  void setTransparency (char* trans);
     50
     51  // MAPPING //
     52  void setDiffuseMap(char* dMap);
     53  void setAmbientMap(char* aMap);
     54  void setSpecularMap(char* sMap);
     55  void setBump(char* bump);
     56
     57  bool loadBMP (char* bmpName, GLuint* texture);
     58
    4259
    4360  Material* search (char* mtlName);
Note: See TracChangeset for help on using the changeset viewer.