Original Post
Hi guys. I get an error while compiling two classes which have included each other.
here my code
CLASS 1:
#ifndef TEXTURE_H
#define TEXTURE_H
#include "graphics.h"
class Texture
{
....
Graphics* getGraphics(); one method in my class
};
#endif
CLASS 2:
#ifndef GRAPHICS_H
#define GRAPHICS_H
#include <d3d8.h>
#include <d3dx8.h>
#include <dinput.h>
#include "texture.h"
class Graphics
{
.
.
.
Texture* getCurrentTexture(); one method in graphics
};
#endif
but this doesn''t work. I don''t know why? Perhaps someone can help me;