GWM_GL (Graphical Window Maker in GL) - a simple cross-platform window maker for use to showing information (like WinAPI etc.)
Confirmed working on Windows and Linux
Any contribution would be nice :Dfor more info, see Example.c
GWM uses 2 structs - GWMConfig, WindowPosition:
typedefstruct {
floatPosX; // GWM Window X PositionfloatPosY; // GWM Window Y Position
} WindowPosition;
typedefstruct {
floatWinX; // GWM Window X ResolutionfloatWinY; // GWM Window Y Resolutionchar*DESC; // Description; displayed textfloatDescX; // Texts X PositionfloatDescY; // Texts Y Position
} GWMConfig;PosX, PosY must be defined in your project like this:
// Value(s) can be changed up to your needs.#definePosX 100.0f
#definePosY 100.0fThese values will be then passed down when defining structs:
WindowPositionWP= {PosX, PosY};
GWMConfigGWM= {
200.0f,
100.0f,
"a quick brown fox jumps\nover the lazy dog",
PosX+1.0f,
PosY+78.0f
}; then to display your GWM Window you insert MakeWindow(GWMConfig *GWM, WindowPosition *WP) command and see the window being created:
voiddisplay(){
// CodeMakeWindow(&GWM, &WP);
// Rest of the Code
}
