Add console.

This commit is contained in:
2025-02-20 22:52:39 -06:00
parent 11806510c0
commit 00ad38e87b
13 changed files with 214 additions and 15 deletions

View File

@ -7,11 +7,24 @@
#include "assert/assertgl.h"
#include "render.h"
#include "console/console.h"
render_t RENDER;
void renderInit() {
memset(&RENDER, 0, sizeof(render_t));
// Get OpenGL version
const GLubyte *version = glGetString(GL_VERSION);
const GLubyte *renderer = glGetString(GL_RENDERER);
const GLubyte *vendor = glGetString(GL_VENDOR);
const GLubyte *glslVersion = glGetString(GL_SHADING_LANGUAGE_VERSION);
consolePrint("OpenGL Renderer");
consolePrint("Version: %s", version);
consolePrint("Renderer: %s", renderer);
consolePrint("Vendor: %s", vendor);
consolePrint("GLSL: %s", glslVersion);
}
void renderUpdate() {