GLES2N64 (from mupen64plus-ae) plugin. Compile and run on the OpenPandora
[mupen64plus-pandora.git] / source / gles2n64 / src / Config.h
diff --git a/source/gles2n64/src/Config.h b/source/gles2n64/src/Config.h
new file mode 100644 (file)
index 0000000..57fcf3f
--- /dev/null
@@ -0,0 +1,79 @@
+#ifndef CONFIG_H
+#define CONFIG_H
+
+struct Config
+{
+    int     version;
+
+    struct
+    {
+        int flipVertical;
+    } screen;
+
+    struct
+    {
+        int xpos, ypos, width, height, refwidth, refheight;
+    } window;
+
+    struct
+    {
+        int enable, bilinear;
+        int xpos, ypos, width, height;
+    } framebuffer;
+
+    struct
+    {
+        int force, width, height;
+    } video;
+
+    struct
+    {
+        int maxAnisotropy;
+        int enableMipmap;
+        int forceBilinear;
+        int sai2x;
+        int useIA;
+        int fastCRC;
+        int pow2;
+    } texture;
+
+    int     logFrameRate;
+    int     updateMode;
+    int     forceBufferClear;
+    int     ignoreOffscreenRendering;
+    int     zHack;
+
+    int     autoFrameSkip;
+    int     maxFrameSkip;
+    int     targetFPS;
+    int     frameRenderRate;
+    int     verticalSync;
+
+    int     enableFog;
+    int     enablePrimZ;
+    int     enableLighting;
+    int     enableAlphaTest;
+    int     enableClipping;
+    int     enableFaceCulling;
+    int     enableNoise;
+
+// paulscode: removed from pre-compile to a config option
+//// (part of the Galaxy S Zelda crash-fix
+    int     tribufferOpt;
+//
+
+    int     hackBanjoTooie;
+    int     hackZelda;
+    int     hackAlpha;
+
+    bool    stretchVideo;
+    bool    romPAL;    //is the rom PAL
+    char    romName[21];
+};
+
+extern Config config;
+
+void Config_LoadConfig();
+void Config_LoadRomConfig(unsigned char* header);
+#endif
+