An open API service indexing awesome lists of open source software.

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.

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;
}
```