anyone get these classes to work for them yet ?
i got it putting the mesh on screen - but totally void of the 100% perfectly ready to use texture that belongs on it.
DO NOT reply look at.. gamepad, dolphin, any other damn tut in there - cuz i'm doin the exact same thing they all do - but still no textures. (and yes xbg and xpr are correctly made and work in other projects)
CXBPackedResource cubeResource;
CXBMesh theCube;
HRESULT InitGeometry()
{
if( FAILED( cubeResource.Create( "D:\\Media\\cube.xpr" )) )
return E_FAIL;
if( FAILED( theCube.Create( "D:\\Media\\cube.xbg", &cubeResource )) )
return E_FAIL;
return S_OK;
}
then in main loop call to ...
VOID Render()
{
g_pd3dDevice->Clear( 0, NULL, D3DCLEAR_TARGET|D3DCLEAR_ZBUFFER,
D3DCOLOR_XRGB(0,0,63), 1.0f, 0 );
SetupMatrices();
theCube.Render();
g_pd3dDevice->Present( NULL, NULL, NULL, NULL );
}
according to ms's comments - the 2nd if there should create the mesh (it does) with the texture in the referenced resource (it does NOT) - textures are MIA and i got a grey ass cube - any input ?? me and my keyboard thk you for your help (it's already lost 6 keys - who said programming couldn't be a contact sport hehe)