Heya,
Ok, the new OpenDisplay looks like this:
Most of the old flags were removed, those still remaining are:
GDOPENDISPLAY_SHOWVERSION,
GDOPENDISPLAY_FULLSCREEN,
GDOPENDISPLAY_BACKBUFFERSYSMEM, and
GDOPENDISPLAY_BACKBUFFERVIDMEM
My question is the way this should be "wrapped" in CGapiApplication. I am thinking along the lines of a string, such as:
but that's not so nice (big understatement
) and the flags have to be sent separately.
another (better?) option is to use multiple data types:
As of now I will go with the second choice: multiple data types unless anyone have any great options..
Also.. Most options will be ignored when running on a PDA (only the flag and hWnd will be captured)... So maybe there should be two OpenDisplay()'s?
By the way.. libpng is now built into all dll versions for virtually zero memory overhead when loading BMP and PNG images from file or memory. It's also possible to save surfaces as PNG...
And BltRot has the target pivot point working (it even works with negative coordinates)...
and.. and.. 
/Johan
Ok, the new OpenDisplay looks like this:
- Code:
HRESULT OpenDisplay(DWORD dwFlags, HWND hWnd,
DWORD dwWidth, DWORD dwHeight,
DWORD dwZoomWidth, DWORD dwZoomHeight,
DWORD dwBPP, DWORD dwHz);
Most of the old flags were removed, those still remaining are:
GDOPENDISPLAY_SHOWVERSION,
GDOPENDISPLAY_FULLSCREEN,
GDOPENDISPLAY_BACKBUFFERSYSMEM, and
GDOPENDISPLAY_BACKBUFFERVIDMEM
My question is the way this should be "wrapped" in CGapiApplication. I am thinking along the lines of a string, such as:
- Code:
m_config.dwDisplayFlags = GDOPENDISPLAY_FULLSCREEN | GDOPENDISPLAY_BACKBUFFERVIDMEM;
m_config.pDisplay = TEXT("320x240x16x60(640x480)")
but that's not so nice (big understatement
another (better?) option is to use multiple data types:
- Code:
m_config.dwDisplayFlags = GDOPENDISPLAY_FULLSCREEN | GDOPENDISPLAY_BACKBUFFERVIDMEM;
m_config.dwDisplayWidth = 320;
m_config.dwDisplayHeight = 240;
m_config.dwDisplayZoomWidth = 640;
m_config.dwDisplayZoomHeight = 480;
m_config.dwBPP = 16;
m_config.dwHz = 60;
As of now I will go with the second choice: multiple data types unless anyone have any great options..
Also.. Most options will be ignored when running on a PDA (only the flag and hWnd will be captured)... So maybe there should be two OpenDisplay()'s?
By the way.. libpng is now built into all dll versions for virtually zero memory overhead when loading BMP and PNG images from file or memory. It's also possible to save surfaces as PNG...
/Johan