jay
2010-01-06 10:37:05 -0800 (Wed, 06 Jan 2010)
1346
gfx_sdl, gfx_common updates. Minor changes to remove platform dependencies in 
the rest of the gfx_common files. Changed Graphics.h to Video.h, changed the 
header defines, updated a lot of code, and completed the Windowing interface 
for sdl (the procedure and event filter is very basic right now, but the procs 
are callbacks and can be updated anytime in the main gfx_sdl.cpp progam.)

I'm working on the Input module right now, and will develop an gfx::OSMouse 
object, just like in gfx_directx, except using sdl's methods, not Windows'.

The ohr engine currently accepts version 1. However, gfx_directx and soon 
gfx_sdl support interface versions 1 and 2. After gfx_sdl is complete and 
tested, we could adjust the ohr engine to use version 2 interfaces. The problem 
is the gfx_directx and gfx_sdl backends have to report version 1 supported. 
Perhaps could the engine do a bitwise check to see whether it's version is 
supported, ie:
if(gfx_getversion() & 0x1) return S_OK;
else return E_FAIL;

or:
if(gfx_GetVersion() & 0x2) return S_OK;
else return E_FAIL;

Then the backends will report interface versions 0x1 & 0x2 as supported.

Finally, we should change gfx_getversion() to gfx_GetVersion() before 
release--otherwise we'll have to hold compatibility for the 
soon-to-be-succeeded function by providing at least the gfx_getversion() 
interface.
---
U   wip/gfx_common/_tstring.cpp
U   wip/gfx_common/_tstring.h
A   wip/gfx_common/gfx.new.h
A   wip/gfx_common/gfx.old.h
U   wip/gfx_common/gfx_palette.h
D   wip/gfx_sdl/source/Graphics.h
U   wip/gfx_sdl/source/Input.h
A   wip/gfx_sdl/source/Video.h
A   wip/gfx_sdl/source/Window.cpp
U   wip/gfx_sdl/source/Window.h
U   wip/gfx_sdl/source/gfx_sdl.cpp
_______________________________________________
Ohrrpgce mailing list
[email protected]
http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org

Reply via email to