loading a bitmap to surface

Started by
-1 comments, last by plectrum 21 years, 3 months ago
Noob question for all you dX gurus: I''m playing around with DirectX 8, and I''m trying to load a 16-bit .bmp file onto a surface. I have the display mode set to 16-bit (D3DFMT_R5G6B5). The app starts up, then exits with no error messages, and without displaying the bmp. I know for sure that it finds the bitmap file (not sure if it actually loads it?), but it simply exits right after the: g_hResult =D3DXLoadSurfaceFromFile(g_pBitmapSurface, NULL, NULL,"well2.bmp", NULL, D3DX_DEFAULT, 0, NULL); I create the g_pBitmapSurface right before that. Can anyone figure out what could be happening? or do I have to be more specific with the problem description? any help would be very much appreciated, >>John NOTE: the app doesn''t crash if I just use it to display a blank blue screen, so I believe the problem is in the LoadSurface code.

This topic is closed to new replies.

Advertisement