Testing SDL support

This commit is contained in:
2021-08-14 12:02:34 -07:00
parent e7f6e356e0
commit 2d977e041c
11 changed files with 234 additions and 53 deletions

24
platform/sdl/sdl.h Normal file
View File

@ -0,0 +1,24 @@
/**
* Copyright (c) 2021 Dominic Masters
*
* This software is released under the MIT License.
* https://opensource.org/licenses/MIT
*/
#pragma once
#include <dawn/dawn.h>
#include <glad/glad.h>
#include <SDL.h>
#include <SDL_opengl.h>
#include <SDL_opengles2.h>
#include "../../src/display/render.h"
#include "../../src/game/game.h"
#include "../../src/input/input.h"
#define SCREEN_WIDTH 480
#define SCREEN_HEIGHT 320
#define OPENGL_MAJOR_VERSION 2
#define OPENGL_MINOR_VERSION 1
int main(int argc, char *argv[]);