#include <d3d.h>
#include <d3dtypes.h>
D3DVECTOR shape;
WORD x,y;
shape = D3DTLVERTEX(D3DVECTOR(x,y,0.0),1.0,RGBA_MAKE(255,255,255,0),0,0,0);
I can''t figure out what''s wrong... I also included to the project d3dim.lib (Though I doubt it has nothing to do with it).
Thanks,
Tornado
The road to success is always under construction
D3D compilation problem
I''ve been trying to compile a couple of D3D stuff and I keep getting this:
error C2661: ''_D3DVECTOR::_D3DVECTOR'' : no overloaded function takes 3 parameters
and this:
error C2661: ''_D3DTLVERTEX::_D3DTLVERTEX'' : no overloaded function takes 6 parameters
from the compiler.
Here''s the code:
Hi
Insert this line "#define D3D_OVERLOADS" in stdafx.h or
before any d3d header file.
Example:
#define D3D_OVERLOADS
#include
DLife
Insert this line "#define D3D_OVERLOADS" in stdafx.h or
before any d3d header file.
Example:
#define D3D_OVERLOADS
#include
DLife
quote:Original post by DLife
Hi
Insert this line "#define D3D_OVERLOADS" in stdafx.h or
before any d3d header file.
Example:
#define D3D_OVERLOADS
#include
DLife
Weird... The source I included was in D3D.cpp, but I already defined D3D_OVERLOADS in the header, so I thought I don''t have to define it again.
Damn DX
The road to success is always under construction
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement