I'm trying already for some time to let DirectX code work together whit Dark GDK,
I'm getting a lot of errors and it never works,
what I wanted was calling a class in a header that does DirectX stuff:
main.cpp:
#include "DarkGDK.h"
#include "DirectX.h"
DX DX;
void DarkGDK (void)
{
DX.MakeTriangle();
while (LoopGDK())
{
dbSync();
}
}
DirectX.h:
#include <d3d9.h>
class DX {
public:
void MakeTriangle();
};
void DX::MakeTriangle()
{
d3ddev->DrawPrimitive(D3DPT_TRIANGLELIST, 0, 1);
}
In DirectX.h should be more code, but his is the idea I wanted,
Does someone knows how to make this happen?