summaryrefslogtreecommitdiff
path: root/src/platform_sdl.h
blob: fa66f964c81d08438de046f640a8c7834f805bb1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef PLATFORM_SDL_H

#include "SDL.h"

#define MAX_CONTROLLERS 4
#define DEADZONE_THRESHOLD 1000

struct SDLOffscreenBuffer
{
    // NOTE(amin): pixels are always 32-bits wide. Memory order: BB GG RR XX.
    SDL_Texture *texture;
    void *memory;
    unsigned int width;
    unsigned int height;
    unsigned int pitch;
};

struct SDLWindowDimension
{
    int width;
    int height;
};

#define PLATFORM_SDL_H
#endif