Jens Jorgensen <jens_hojbjerg@hotmail.com> wrote:
I know that GDDK is in beta right now, but could someone give a short
description of what GDDK is going to provide?
It’s mainly intended for people who want to write graphics drivers for
Photon, but…
Is it going to let other applications bring the display into graphics mode -
like DirectX or SVGALib?
There is a utility called “setmode” in the DDK, which loads a driver
DLL, and switches into graphics modes (it’s in source code form). You could
use this as a starting point for mode-switching without Photon.
What’s missing is a way to figure out which dll(s) to load. You could
parse the file /etc/system/config/graphics-traplist to figure this out.
This file is generated by the enumerator at every boot.
Use cfgopen() (or fcfgopen()) to open this file.
Beware, the format of this file could change in a future release.
We may provide a cleaner mechanism for figuring out which dll(s) to
load in the future.