In process of migrating to ANSI C.
This commit is contained in:
+14
-9
@@ -1,16 +1,10 @@
|
||||
#ifndef SDL_HANDMADE_H
|
||||
#define SDL_HANDMADE_H
|
||||
|
||||
#include "core.h"
|
||||
#include <SDL.h>
|
||||
|
||||
#if !defined(BUILD_DEBUG)
|
||||
# define BUILD_DEBUG 1
|
||||
#endif
|
||||
|
||||
#if !defined(BUILD_INTERNAL) // NOTE: Added in by igor.
|
||||
# define BUILD_INTERNAL 1
|
||||
#endif
|
||||
#include "core.h"
|
||||
#include "handmade.h"
|
||||
|
||||
typedef struct sdl_window_dimension {
|
||||
S32 Width;
|
||||
@@ -18,7 +12,7 @@ typedef struct sdl_window_dimension {
|
||||
} sdl_window_dimension;
|
||||
|
||||
typedef struct offscreen_buffer {
|
||||
// Pixels are always 32-bit and have the bytes in BGRX (little-endian).
|
||||
/* Pixels are always 32-bit and have the bytes in BGRX (little-endian). */
|
||||
SDL_Texture *Texture;
|
||||
void *Memory;
|
||||
S32 Width;
|
||||
@@ -35,4 +29,15 @@ typedef struct sdl_sound_output {
|
||||
void *Samples;
|
||||
} sdl_sound_output;
|
||||
|
||||
typedef struct sdl_state {
|
||||
U64 TotalSize;
|
||||
void *GameMmemoryBlock;
|
||||
|
||||
S32 RecordingHandle;
|
||||
S32 InputRecordingIndex;
|
||||
|
||||
S32 PlaybackHandle;
|
||||
S32 InputPlayingIndex;
|
||||
} sdl_state;
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user