Working on improving the cross compiler

This commit is contained in:
2021-08-19 16:38:27 -07:00
parent 7f80cb0fa0
commit bf3f942e24
7 changed files with 500 additions and 260 deletions

View File

@ -4,7 +4,6 @@
* This software is released under the MIT License.
* https://opensource.org/licenses/MIT
*/
#include "sdl.h"
game_t *GAME_STATE;
@ -22,7 +21,7 @@ int32_t main(int32_t argc, char *argv[]) {
float timeDelta;
// Init SEDL
if(SDL_Init( SDL_INIT_VIDEO) < 0) {
if(SDL_Init(SDL_INIT_VIDEO) < 0) {
printf("No init SDL\n");
return 1;
}
@ -57,7 +56,7 @@ int32_t main(int32_t argc, char *argv[]) {
return 1;
}
#if SETTING_USE_GLAD == 1
#if SETTING_PLATFORM_USE_GLAD == 1
// Load glad
if (!gladLoadGLLoader((GLADloadproc) SDL_GL_GetProcAddress)) {
printf("Failed to initialize the OpenGL context.\n");