Now that you got rid of everything that only distracted you from the
real problems, get another cup o' coffee, and dive in:
3.
Then add the difficult part, Object by Object or whatever seems
appropriate. Then add anything that this particular object needs to
work. Not more.
Never add anything that is a complete mystery to you,
always look them up in the msdn or google.
Keep it compiling.
If at all possible, run it during all three steps as often as possible
or sensible,
(usually no problem but directx can be a bit of a bugger there)
This way your brain should have understood the underlying structure,
what is essential for the prog to run, and you know how the
difficult part was made. Closing the last gaps should not
be problem now.
On ddraw:
there are easy examples in the msdn and the sdk.
2006/1/17, JoeC <enk...@yahoo.com>:
So far I understand directXcreate, SetCooperativeLevel, and SetDisplay.
I am stilll wresting with VC++ because I don't know how to access the
dirX libs from DevC++. Still I am wresting with ways to simplify my
code and make it easier to organize and work or sections as I
understand them.
I will try to use on-linse sources but usally I don't find them very
helpful.
When I write this code I get my windows screen not a direct x one is
there more code I have to add? My program dosn't show any more.
int start(void *parms = NULL, int num = 0){
DirectDrawCreateEx(NULL, (void**) &lpdd, IID_IDirectDraw7, NULL);
if(FAILED(lpdd->SetCooperativeLevel(hwnd, DDSCL_FULLSCREEN |
DDSCL_EXCLUSIVE)));
lpdd->SetDisplayMode(ScrWd, ScrLn, 16,0,0);
return 1;
}
Andreas
2006/1/17, JoeC <enk...@yahoo.com>:
I only know a thing or two about opengl.
Andreas