Simple Ddraw question. Display bitmap on a screen.
Hey. Just started some programming using some graphics API's. Know some openGL, but moving into Direct X API..
My problem is a simple one that I'm hoping someone can answer for me.. I wrote a program to load a bitmap into memory and then display it to the screen, however, all I am getting is a black screen.
I tried to debug it step by step and all functions pass successfully. I guess I am loading the bitmap wrong or drawing it to the surface incorrectly, but there are so many things that could go wrong that I do not know how to find the problem.
I'll include my source code below.. It contains 5 files.
Basically what I'm trying to do is create a window that is Fullscreen 640x480 and display the bitmap to it which is 640x480x8, but it is not displaying it..
Thnx for any help.