Also ich habe das jetzt mal so nachgebaut, die GraphicsInput Klasse und die wasdGraphics haben zwar weiter keine funktionalität bei mir aber es lässt sich alles kompilieren.
Ich würde deine includes in der Header Datei setzen, so habe ich es gemacht.
Also so bei deiner wasdEngine Klasse:
wasdEngine.h
|
C-/C++-Quelltext
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#ifndef WASDENGINE_H_
#define WASDENGINE_H_
#include "Declarations.h"
#include "Structs.h"
#include "wasdGraphics.h"
namespace wasd
{
class wasdGraphics;
class wasdEngine
{
public:
wasdEngine(GraphicsInput gi);
~wasdEngine();
void RenderFrame();
private:
wasdGraphics* graphics; };
}
#endif
|
wasdEngine.cpp
|
C-/C++-Quelltext
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#include "..\shared\wasdEngine.h"
using namespace wasd;
wasdEngine::wasdEngine(GraphicsInput gi)
{
graphics = new wasdGraphics(gi);
}
wasdEngine::~wasdEngine(void)
{
delete graphics;
}
|
Die Klasse GraphicsInput musst du nicht includen da du Sie ja wahrscheinlich schon in der wasdGraphics Klasse includet hast.