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: 7 months 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 (12 months ago)
- Default Branch: main
- Last Pushed: 2024-11-25T16:30:42.000Z (10 months ago)
- Last Synced: 2025-03-15T14:41:44.886Z (7 months 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;
}
```