managed to get the projects compiling, jpg has been disabled for now and I wasn't able to test the runtime until I can get my hands on the files required by libgldemo

This commit is contained in:
Jip 2024-05-02 20:32:10 +02:00
parent a380de3a44
commit b99359078e
601 changed files with 334759 additions and 69 deletions

View file

@ -48,8 +48,8 @@
*/
#include <math.h>
#include <FileHandler.hpp>
#include <libgldemo.h>
#include <FileHandler.h>
#include "../libgldemo/libgldemo.h"
#include "libvitaboy.hpp"
static float zoom = -10;
@ -122,7 +122,7 @@ static int LoadTextures()
}
glBindTexture(GL_TEXTURE_2D, texture[i]);
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB8, Image->Width, Image->Height, 0, GL_BGR, GL_UNSIGNED_BYTE, Image->Data);
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB8, Image->Width, Image->Height, 0, GL_BGR_EXT, GL_UNSIGNED_BYTE, Image->Data);
free(Image->Data);
free(Image);
@ -144,7 +144,7 @@ static int InitGL()
glClearDepth(1.0f);
glEnable(GL_DEPTH_TEST);
glEnable(GL_CULL_FACE);
glEnable(GL_RESCALE_NORMAL);
glEnable(GL_NORMALIZE);
glDisable(GL_BLEND);
glDepthFunc(GL_LEQUAL);
glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_NICEST);