Remove debugutil

master
outfrost 2020-05-26 03:57:11 +02:00
parent 9eb2826dc0
commit 7f996a3a7e
2 changed files with 0 additions and 32 deletions

View File

@ -1,24 +0,0 @@
#include <GL/gl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
char* getGlInfoString() {
const char* glVersion = (const char*) glGetString(GL_VERSION);
const char* glslVersion = (const char*) glGetString(GL_SHADING_LANGUAGE_VERSION);
const char* glRenderer = (const char*) glGetString(GL_RENDERER);
size_t glInfoLength = strlen("OpenGL - GLSL - ")
+ strlen(glVersion)
+ strlen(glslVersion)
+ strlen(glRenderer);
char* glInfoString = malloc(glInfoLength + sizeof(char));
sprintf(glInfoString,
"OpenGL %s - GLSL %s - %s",
glVersion,
glslVersion,
glRenderer);
return glInfoString;
}

View File

@ -1,8 +0,0 @@
#ifndef DEBUGUTIL_H_
#define DEBUGUTIL_H_
#include <stdio.h>
char* getGlInfoString();
#endif