Skip to main content
GameDev.net gamedev.net
šŸ”’ Locked

Load mesh from resource

Started by GameDev.net Sep 2, 1999 at 1:53 PM 0 replies 1.5k views
Original Post
GameDev.net
GameDev.net
I need help loading a mesh from a resource using meshbuilder.

I added a custom resource to my applications resources called "MESH" and inserted a directx file IDR_MYMESH (mymesh.x).

Then I created a D3DRMLOADRESOURCE:
myResource.hModule = NULL;
myResource.lpName = MAKEINTRESOURCE(IDR_MYMESH);
myResource.lpType = "MESH"

then I called the meshbuilder load method:
myBuilder->Load( &myResource, NULL, D3DRMLOAD_FROMRESOURCE, NULL, NULL);

The problem seems to be that lpName isn't receiving the IDR_MYMESH resource name. It contains "".

Thanks...

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.