Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3086 in orxonox.OLD for orxonox/branches/images/importer/material.h


Ignore:
Timestamp:
Dec 4, 2004, 6:05:54 PM (19 years ago)
Author:
bensch
Message:

orxonox/branches/images: ability to readIn jpg-files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/images/importer/material.h

    r3085 r3086  
    1616
    1717// IMAGE LIBS //
     18extern "C"{         // This has to be done, because not a c++ lib
    1819#include <jpeglib.h>
    19 
     20}
    2021//! Class to handle Materials.
    2122class Material
     
    6364  void setBump(char* bump);
    6465
    65   // TEXTURING
    66   bool loadBMP (char* bmpName, GLuint* texture);
    6766
    6867 private:
     68  struct tImageJPG
     69  {
     70    int rowSpan;
     71    int sizeX;
     72    int sizeY;
     73    unsigned char *data;
     74  };
     75
     76
    6977  char* name;
    7078  int illumModel;
     
    7684  Material* nextMat; //!< pointer to the Next Material of the List. NULL if no next exists.
    7785
     86  // TEXTURING
     87  bool loadBMP (char* bmpName, GLuint* texture);
     88  bool loadJPG (char* jpgName, GLuint* texture);
     89  void decodeJPG(jpeg_decompress_struct* cinfo, tImageJPG *pImageData);
    7890};
    7991#endif
Note: See TracChangeset for help on using the changeset viewer.