Jump to content

  • Log In with Google      Sign In   
  • Create Account

#Actualgeorge7378

Posted 24 January 2013 - 05:36 PM

I think I might have cracked it - the function MeshObjectLoad() only works when I create my MeshObject AFTER the CreateDevice() has been called. I changed the MeshObjectLoad() to this:

bool MeshObjectLoad(LPDIRECT3DDEVICE9 dev){ renderdev = dev;//rest of function

 

Here's a random screenshot of the program working - both the torus and skybox were loaded using this class

 

[attachment=13356:DirectX Use Skybox 2013-01-24 23-32-00-77.jpg]


#2george7378

Posted 24 January 2013 - 01:56 PM

I think I might have cracked it - the function MeshObjectLoad() works when I create my MeshObject AFTER the CreateDevice() has been called. I changed the MeshObjectLoad() to this:

bool MeshObjectLoad(LPDIRECT3DDEVICE9 dev){
	renderdev = dev;
//rest of function

#1george7378

Posted 24 January 2013 - 01:47 PM

I think I might have cracked it - the function MeshObjectLoad() works when I create my MeshObject AFTER the CreateDevice() has been called.


PARTNERS