Skip to content

Latest commit

History

20 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

GWM

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 :D

Using GWM in your project

for 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.0f

These 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
}

About

GWM_GL (Graphical Window Maker in GL) - a simple window maker for use to show information

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages