Merge: doc -> main

This commit is contained in:
PedroEdiaz
2024-10-02 13:10:08 -06:00
parent 3c9690a2a7
commit d22daff16d
17 changed files with 363 additions and 163 deletions

14
src/context.c Normal file
View File

@@ -0,0 +1,14 @@
#define GL_GLEXT_PROTOTYPES
#include <GL/gl.h>
#include "main.h"
void set_clean_color_context( unsigned char r, unsigned char g, unsigned char b )
{
glEnable( GL_DEPTH_TEST );
glClearColor( (float)r/0xff, (float)g/0xff, (float)b/0xff, 1.0 );
}
void clean_context( void )
{
glClear( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT );
}