Testing SDL support
This commit is contained in:
24
platform/sdl/sdl.h
Normal file
24
platform/sdl/sdl.h
Normal 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[]);
|
Reference in New Issue
Block a user