D
Dave
simple problem, sorry. I've got a class:
class CDirect3DEngine
{
public:
CDirect3DEngine();
~CDirect3DEngine();
HRESULT InitD3D (HWND hWnd);
ID3DXMesh* Mesh;
private:
CLoadOBJFile LoadOBJFile;
LPDIRECT3D9 g_pD3D; //Direct3D object
LPDIRECT3DDEVICE9 g_pd3dDevice; //Direct3D device
LPDIRECT3DVERTEXBUFFER9 g_pvb; //Vertex Buffer
LPDIRECT3DTEXTURE9 g_pTexture; //Texture
};
in the function InitD3D, it says g_pD3D is an undeclared identifier. Any
ideas why?
Also, another question. What would happen if i made a class but did not
include the constructor and destructor declarations? I'm guessing they'd
never get called, but what specifically would this cause?
cheers
dave
class CDirect3DEngine
{
public:
CDirect3DEngine();
~CDirect3DEngine();
HRESULT InitD3D (HWND hWnd);
ID3DXMesh* Mesh;
private:
CLoadOBJFile LoadOBJFile;
LPDIRECT3D9 g_pD3D; //Direct3D object
LPDIRECT3DDEVICE9 g_pd3dDevice; //Direct3D device
LPDIRECT3DVERTEXBUFFER9 g_pvb; //Vertex Buffer
LPDIRECT3DTEXTURE9 g_pTexture; //Texture
};
in the function InitD3D, it says g_pD3D is an undeclared identifier. Any
ideas why?
Also, another question. What would happen if i made a class but did not
include the constructor and destructor declarations? I'm guessing they'd
never get called, but what specifically would this cause?
cheers
dave