https://github.com/allogic/fastgl
Single-header graphics library for fast debugging and testing of algorithms.
https://github.com/allogic/fastgl
debugging fast gl graphics header library open opengl single win32 windows x64
Last synced: about 1 month ago
JSON representation
Single-header graphics library for fast debugging and testing of algorithms.
- Host: GitHub
- URL: https://github.com/allogic/fastgl
- Owner: allogic
- License: mit
- Created: 2024-10-09T14:54:19.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-25T16:30:42.000Z (over 1 year ago)
- Last Synced: 2025-03-15T14:41:44.886Z (over 1 year ago)
- Topics: debugging, fast, gl, graphics, header, library, open, opengl, single, win32, windows, x64
- Language: C
- Homepage:
- Size: 634 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# FastGL
## Basic Window
```c
#define FGL_IMPLEMENTATION
#include "FastGL.h"
int main()
{
int Width = 800;
int Height = 800;
Window_Alloc(Width, Height, "FastGL");
while (!Window_ShouldClose())
{
Window_PollEvents();
Width = Window_GetWidth();
Height = Window_GetHeight();
glViewport(0, 0, Width, Height);
glClearColor(0.0F, 0.0F, 0.0F, 0.0F);
glClear(GL_COLOR_BUFFER_BIT);
Text_BeginScreen(Font_GetDefault());
Text_DrawScreenSimple(10.0F, 10.0F, 0.0F, 0.0F, 100.0F, 100.0F, 1.0F, 0xFFFFFFFF, "FastGL");
Text_EndScreen();
Window_SwapBuffers();
}
Window_Free();
return 0;
}
```