-
Notifications
You must be signed in to change notification settings - Fork 0
LibGui's functions
LibGui doesn't add only classes, but also few functions, usually supporting some class.
Initializes the library, more in window guide.
If you plan to not update Initialization window for awhile, call this instead to keep updating the library.
Terminates the library, call before program ends.
Returns time elapsed since call of Init() function.
Returns source code of one of LibGui's built-in shaders. DefShaderType_ ref
if mouse cursor is on object then
__ sets object color to hoverColor
__ if ChangeMouseShape is true then
_____ sets cursor looks to CursorShape_PointingHand
else
__ sets object color to defaultColor
returns true if user clicked the object
Sets rendering mask, outside of which, nothing will render. Put -1 in any axis to not have mask there.
| Type | Name | Description |
|---|---|---|
| bool | DebugRender |
If true, renders everything as wireframe. On default it's false
|
| double | DeltaTime |
[READ-ONLY] Seconds since last (initialization window draw)/(manual update) call. |
| double | Framerate |
[READ-ONLY] Frames per second, calculated from time since (initialization window draw)/(manual update) call. |
| int | DefaultWindowInitFlags |
InitFlag set for window creation. |
| int | InfoWindowInitFlags |
InitFlag set for window creation. |
| GLFWwindow* | MainWindow |
Pointer to initialization window. |
| Shader | DefaultShader |
Default shader used to redner all non-custom-shader objects except dynamic text. |
| Window* | DefaultWindow |
Reference to initialization window, used when window not specified in object's creation. |
Features