Jump to content

  • Log In with Google      Sign In   
  • Create Account

FREE SOFTWARE GIVEAWAY

We have 4 x Pro Licences (valued at $59 each) for 2d modular animation software Spriter to give away in this Thursday's GDNet Direct email newsletter.


Read more in this forum topic or make sure you're signed up (from the right-hand sidebar on the homepage) and read Thursday's newsletter to get in the running!


#Actualgeorge7378

Posted 24 January 2013 - 01:39 PM

Yeah, I've only got the one, and it's my global one. The way I define it is like this:

DIRECT3DDEVICE9 d3ddev;
//Class here, see code above
MeshObject meshTorus("Torus.x", d3ddev);

So basically I just say that renderdev=d3ddev when I create my meshTorus object. It seems a bit strange to me that the function D3DXLoadFromMeshX() doesn't take a pointer - that would make more sense...

#2george7378

Posted 24 January 2013 - 01:39 PM

Yeah, I've only got the one, and it's my global one. The way I define it is like this:

DIRECT3DDEVICE9 d3ddev;
//Class here, see code above
MeshObject meshTorus("Torus.x", d3ddev);

So basically I just say that renderdev=d3ddev when I create my meshTorus object. It seems a bit strange to me that the function D3DXLoadFromMeshX() doesn't take a pointer - that would make more sense...

#1george7378

Posted 24 January 2013 - 01:38 PM

Yeah, I've only got the one, and it's my global one. The way I define it is like this:

 

DIRECT3DDEVICE9 d3ddev;

//Class here, see code above

MeshObject meshTorus("Torus.x", d3ddev);

 

So basically I just say that renderdev=d3ddev when I create my class. It seems a bit strange to me that the function D3DXLoadFromMeshX() doesn't take a pointer - that would make more sense...


PARTNERS