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