2007-10-26 14:46:01 UTC
i'm a programmer for the Psychology-dept of the KULeuven university,
and i have been working on stimulus-presentation software for quite
some time now. The package relies on DirectX for fast blitting of
visual stimuli and graph-plotting of measured input. Recently, I have
been getting requests to port the package to MacOS X, which is
feasible fairly easily except for the DirectX part. So here are my
1) how difficult is it to use SDL to replace DirectX as a high-speed
blitter ? This basically boils down to 3 essential calls :
DX_display * init_direct_draw(monitor_GUID)
DX_surface * load_bitmap_into_surface(filename, surfacepointer)
void blit_surface_to_surface(DX_surface * , DX_surface *)
void blit_surface_to_display(DX_display * , DX_surface *)
2) is it hard to implement these DX_sound calls ?
DX_Sound * load_sound(filename)
play_sound (DX_sound * )
3) can I use SDL to fast-grab keyboard & mouse input ? I know that
keyboards are inherently inaccurate, but within these limitations, i
need to fetch keypresses as fast as possible.
4) can I use multiple monitors using SDL ? This part is probably the
hardest, as I haven't found docs on dual-monitor OpenGL
many many many thanks !