Add console.
This commit is contained in:
@ -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() {
|
||||
|
Reference in New Issue
Block a user