Code:
#ifndef MATERIAL_H
#define MATERIAL_H
#include "HString.h"
#include <GL/glut.h>
#include "Lumiere.h"
#include "Tableau.h"
#include "HashTable.h"
#include "Liste.h"
#include "Gob_types.h"
//Types de matériaux
#define MATTYPE_MONO (0)
#define MATTYPE_MULTI (1)
// Transparency types
#define TRANSP_UNDEFINED (3)
#define TRANSP_SUBSTRACTIVE (0)
#define TRANSP_ADDITIVE (1)
#define TRANSP_FILTER (2)
struct RefMateriau
{
Uint32 m_type;
void* m_Mat;
RefMateriau()
: m_type(0), m_Mat(NULL) {}
};
class Texture
{
friend class MonoMateriau;
private:
GLenum m_Type;
GLint m_NbComp;
GLuint m_Height,m_Width,m_ID;
GLubyte* m_Texels;
public:
Texture(const Texture & Tex);
Texture(const char * File, Boolean GenID);
Texture(const char * File, GLenum Type, Boolean GenID);
Texture(const char * ColorFile, const char * AlphaFile, Boolean ConvertToLuminance, Boolean GenID);
Texture(GLubyte *Texels,GLuint Height, GLuint Width, GLenum Type, Boolean CopyTexels, Boolean GenID);
.
.
.
.
In those lines it's the RefMateriau() : m_type(0), m_Mat(NULL) {} that is call to be wrong.
If I comment the RefMariau() code, it's just the Texture constructor that is crashing. If I comment the first texture constructur, it's the next that is crashing, and so on... I've comment so much lines that I've corrupt my VS Files ... so I reinstall it
I have put none optimisation options at all, I've double and triple check it. In the MSDN article, there is nothing more then this...
If I comment all this file, it's just another file that is getting the error...