Skip to content
/ FastGL Public

Single-header graphics library for fast debugging and testing of algorithms.

License

Notifications You must be signed in to change notification settings

allogic/FastGL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 

Repository files navigation

FastGL

Basic Window

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

About

Single-header graphics library for fast debugging and testing of algorithms.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages