]> git.lizzy.rs Git - shadowclad.git/commitdiff
But we shouldn't yet, because we're using extensions without asking for them crossbuild
authoroutfrost <kotlet.bahn@gmail.com>
Thu, 6 Aug 2020 02:30:30 +0000 (04:30 +0200)
committeroutfrost <kotlet.bahn@gmail.com>
Thu, 6 Aug 2020 02:30:30 +0000 (04:30 +0200)
src/engine/engine.c
src/engine/render.c
src/engine/render.h
src/engine/tga.c

index 035174deab32fe75e90df5563337297a10f5dafa..44bb884f30de1cbd9530084e29a3feeedfd29ab5 100644 (file)
@@ -57,7 +57,7 @@ void init(EngineConfig config) {
        glfwMakeContextCurrent(window);
 
        logInfo("OpenGL %s", (const char*) glGetString(GL_VERSION));
-       logInfo("GLSL %s", (const char*) glGetString(GL_SHADING_LANGUAGE_VERSION));
+//     logInfo("GLSL %s", (const char*) glGetString(GL_SHADING_LANGUAGE_VERSION));
        logInfo("Renderer: %s", (const char*) glGetString(GL_RENDERER));
 /*
        GLenum glewInitStatus = glewInit();
index 5d43e16c189a1c95573dc27671d735ce9ef1b857..5ada075e6a96f498f779ff1927ce59876574d2ef 100644 (file)
@@ -65,6 +65,7 @@ static void renderScene(const Scene* scene, const Transform baseTransform) {
        Transform transform = multiply(scene->transform, baseTransform);
 
        glMatrixMode(GL_MODELVIEW);
+       // TODO glLoadTransposeMatrixf? (missing in mingw)
        glLoadMatrixf((const GLfloat*) &transform);
 
        glDisable(GL_LIGHTING);
index e916360eb6ece4300c19d49e324ec48ab8045152..f1b40a1061c45b5690d8d6731540991950e6f9da 100644 (file)
@@ -3,9 +3,6 @@
 
 #include <stdbool.h>
 #include <GLFW/glfw3.h>
-#define  GL_GLEXT_PROTOTYPES
-#include <GL/glext.h>
-#undef GL_GLEXT_PROTOTYPES
 
 #include "scene.h"
 
index 8f465f3ff81bbd7efbebe58af30605f7dbfa7917..bf239ac0901173279f3a9a4477997fdfc56f1728 100644 (file)
@@ -3,6 +3,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 
+// TODO Ask for extensions through GLEW
 #include <GL/glext.h>
 
 TgaImage* readTga(const char* path) {