summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2018-06-09 16:19:01 -0700
committerVito Caputo <vcaputo@pengaru.com>2018-06-09 16:20:37 -0700
commit00ac7e921426edc7e27e4ba679edc1aba6c15250 (patch)
tree290c0103690b94c311e866adf45cc84f1e52b184
parent21c0f72b53a594f41c464c17afbc5f500fc91f25 (diff)
libstage: forward declare SDL types in stage.h
Callers of libstage may be middle abstractions which don't actually have any SDL dependency, don't unnecessarily introduce one by forcing them to include SDL headers.
-rw-r--r--src/stage.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/stage.h b/src/stage.h
index edb35dd..a51656d 100644
--- a/src/stage.h
+++ b/src/stage.h
@@ -17,7 +17,8 @@
#ifndef _STAGE_H
#define _STAGE_H
-#include <SDL.h>
+typedef struct SDL_Renderer SDL_Renderer;
+typedef struct SDL_Texture SDL_Texture;
#define STAGE_NODE_NAME_MAX 16
#define STAGE_LAYERS_MAX 10
© All Rights Reserved