aboutsummaryrefslogtreecommitdiff
path: root/smelt/sdl
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2015-11-12 23:49:45 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2015-11-12 23:49:45 +0800
commite8a4c69dd159cf248c2335775a69a1214f0c9bc7 (patch)
tree6cdb95bad9167841d7ffe3a892880e9eb375e030 /smelt/sdl
parent6655926e01396139f4b81323d8adcc734bc4284e (diff)
downloadSMELT-e8a4c69dd159cf248c2335775a69a1214f0c9bc7.tar.xz
Add comments in headers.
Add a separate configuration file.
Diffstat (limited to 'smelt/sdl')
-rw-r--r--smelt/sdl/smelt_config.hpp20
-rw-r--r--smelt/sdl/smelt_internal.hpp5
2 files changed, 21 insertions, 4 deletions
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 <AL/alext.h>
#include <ogg/ogg.h>
#include <vorbis/vorbisfile.h>
+#include <smelt_config.hpp>
#ifdef WIN32
#include <windows.h>
#include <intrin.h>
@@ -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
{