summaryrefslogtreecommitdiff
path: root/src/render/rendererslistsdl.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/render/rendererslistsdl.h')
-rw-r--r--src/render/rendererslistsdl.h36
1 files changed, 35 insertions, 1 deletions
diff --git a/src/render/rendererslistsdl.h b/src/render/rendererslistsdl.h
index 3c09b5dc8..c90315d4d 100644
--- a/src/render/rendererslistsdl.h
+++ b/src/render/rendererslistsdl.h
@@ -62,7 +62,41 @@ const int renderToIndex[] =
1 // RENDER_GLES2_OPENGL
};
-#else // ANDROID
+#elif defined(__native_client__)
+// defined OPENGL nacl
+
+// map for index to RenderType
+const RenderType indexToRender[] =
+{
+ RENDER_SOFTWARE,
+ RENDER_SAFE_OPENGL,
+ RENDER_GLES2_OPENGL
+};
+
+const char *OPENGL_NAME[] =
+{
+ // TRANSLATORS: draw backend
+ N_("Software"),
+ // TRANSLATORS: draw backend
+ N_("Safe OpenGL"),
+ // TRANSLATORS: draw backend
+ N_("Mobile OpenGL ES 2"),
+};
+
+const int renderModesListSize = 3;
+
+const int renderToIndex[] =
+{
+ 0, // RENDER_SOFTWARE
+ 2, // RENDER_NORMAL_OPENGL
+ 1, // RENDER_SAFE_OPENGL
+ 2, // RENDER_GLES_OPENGL
+ 0, // RENDER_SDL2_DEFAULT
+ 2, // RENDER_MODERN_OPENGL
+ 2 // RENDER_GLES2_OPENGL
+};
+
+#else // ANDROID or nacl
// defined OPENGL
// map for index to RenderType