Changeset 3086 in orxonox.OLD for orxonox/branches/images/importer/material.h
- Timestamp:
- Dec 4, 2004, 6:05:54 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/images/importer/material.h
r3085 r3086 16 16 17 17 // IMAGE LIBS // 18 extern "C"{ // This has to be done, because not a c++ lib 18 19 #include <jpeglib.h> 19 20 } 20 21 //! Class to handle Materials. 21 22 class Material … … 63 64 void setBump(char* bump); 64 65 65 // TEXTURING66 bool loadBMP (char* bmpName, GLuint* texture);67 66 68 67 private: 68 struct tImageJPG 69 { 70 int rowSpan; 71 int sizeX; 72 int sizeY; 73 unsigned char *data; 74 }; 75 76 69 77 char* name; 70 78 int illumModel; … … 76 84 Material* nextMat; //!< pointer to the Next Material of the List. NULL if no next exists. 77 85 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); 78 90 }; 79 91 #endif
Note: See TracChangeset
for help on using the changeset viewer.