Testing SDL support
This commit is contained in:
@ -28,7 +28,7 @@
|
||||
|
||||
|
||||
#define INPUT_BIND_COUNT 0xFF
|
||||
#define INPUT_SOURCE_COUNT 4096
|
||||
#define INPUT_SOURCE_COUNT 0xFF
|
||||
|
||||
/**
|
||||
* Input Bind, a specific action bind reference for the game engine to use.
|
||||
@ -41,7 +41,7 @@ typedef uint8_t inputbind_t;
|
||||
* hell this number refers to. For most platforms it will be an input, such as a
|
||||
* keyboard scancode or a (pad number * button count) + button.
|
||||
*/
|
||||
typedef uint32_t inputsource_t;
|
||||
typedef uint8_t inputsource_t;
|
||||
|
||||
/**
|
||||
* Value that represents the state of an input. Defined as 0-1 where 0 is set
|
||||
|
@ -13,6 +13,11 @@
|
||||
|
||||
#if SETTING_PLATFORM == SETTING_PLATFORM_GLFW
|
||||
#include <glad/glad.h>
|
||||
#elif SETTING_PLATFORM == SETTING_PLATFORM_SDL
|
||||
#include <glad/glad.h>
|
||||
#include <SDL.h>
|
||||
#include <SDL_opengl.h>
|
||||
#include <SDL_opengles2.h>
|
||||
#endif
|
||||
|
||||
#include <stb_image.h>
|
||||
|
@ -1,20 +0,0 @@
|
||||
/**
|
||||
* Copyright (c) 2021 Dominic Masters
|
||||
*
|
||||
* This software is released under the MIT License.
|
||||
* https://opensource.org/licenses/MIT
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
// Game Definitions
|
||||
#define SETTING_GAME_POKER 1
|
||||
#define SETTING_GAME_DAWN 2
|
||||
|
||||
// Settings
|
||||
#define SETTING_GAME SETTING_GAME_POKER
|
||||
|
||||
|
||||
// Compiler setting fallbacks
|
||||
#ifndef SETTING_PLATFORM
|
||||
#error Missing platform setting from compiler.
|
||||
#endif
|
Reference in New Issue
Block a user