From e8a4c69dd159cf248c2335775a69a1214f0c9bc7 Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Thu, 12 Nov 2015 23:49:45 +0800 Subject: Add comments in headers. Add a separate configuration file. --- smelt/sdl/smelt_config.hpp | 20 ++++++++++++++++++++ smelt/sdl/smelt_internal.hpp | 5 +---- 2 files changed, 21 insertions(+), 4 deletions(-) create mode 100644 smelt/sdl/smelt_config.hpp (limited to 'smelt') diff --git a/smelt/sdl/smelt_config.hpp b/smelt/sdl/smelt_config.hpp new file mode 100644 index 0000000..0e56e8a --- /dev/null +++ b/smelt/sdl/smelt_config.hpp @@ -0,0 +1,20 @@ +// -*- C++ -*- +/* + * Simple MultimEdia LiTerator(SMELT) + * by Chris Xiong 2015 + * Configuration header for SDL version + * + * Modify this header according to your own requirements. + * + */ + +/* + * Maximum audio channels. + * (How many audio can be played simultaneously?) + */ +#define SRC_MAX 128 + +/* + * Client-side vertex buffer size. + */ +#define VERTEX_BUFFER_SIZE 4000 diff --git a/smelt/sdl/smelt_internal.hpp b/smelt/sdl/smelt_internal.hpp index 2d75e9a..2688fdd 100644 --- a/smelt/sdl/smelt_internal.hpp +++ b/smelt/sdl/smelt_internal.hpp @@ -25,6 +25,7 @@ #include #include #include +#include #ifdef WIN32 #include #include @@ -42,8 +43,6 @@ #include "glimports.hpp" #undef GL_PROC -#define SRC_MAX 128 - class TOpenGLDevice { public: @@ -59,8 +58,6 @@ public: bool have_GL_ARB_vertex_buffer_object; }; -#define VERTEX_BUFFER_SIZE 4000 - struct glTexture; class TRenderTargetList { -- cgit v1.2.3