]> Chaos Git - corbenik/ctrulib.git/commitdiff
SHDR : updated DVLE_SendOutmap
authorsmea <smealum@gmail.com>
Sat, 15 Mar 2014 20:00:37 +0000 (21:00 +0100)
committersmea <smealum@gmail.com>
Sat, 15 Mar 2014 20:00:37 +0000 (21:00 +0100)
libctru/include/ctr/GPU.h
libctru/source/GPU.c
libctru/source/SHDR.c

index d1eac52d025f793e9f51252abb7a6e51261b474d..14ce15d2520ca78e0e307b40ec8f1c3b02426678 100644 (file)
@@ -28,20 +28,20 @@ typedef enum{
 
 typedef enum
 {
-       GL_NEVER = 0,
-       GL_ALWAYS = 1,
-       GL_EQUAL = 2,
-       GL_NOTEQUAL = 3,
-       GL_LESS = 4,
-       GL_LEQUAL = 5,
-       GL_GREATER = 6,
-       GL_GEQUAL = 7
-}GPU_TestFunction;
+       GPU_NEVER = 0,
+       GPU_ALWAYS = 1,
+       GPU_EQUAL = 2,
+       GPU_NOTEQUAL = 3,
+       GPU_LESS = 4,
+       GPU_LEQUAL = 5,
+       GPU_GREATER = 6,
+       GPU_GEQUAL = 7
+}GPU_TESTFUNC;
 
 void GPU_SetUniform(u32 startreg, u32* data, u32 numreg);
 void GPU_SetViewport(u32* depthBuffer, u32* colorBuffer, u32 x, u32 y, u32 w, u32 h);
 void GPU_DepthRange(float nearVal, float farVal);
-void GPU_SetDepthTest(bool enable, GPU_TestFunction function, u8 ref);
+void GPU_SetDepthTest(bool enable, GPU_TESTFUNC function, u8 ref);
 void GPU_SetTexture(u32* data, u16 width, u16 height, u32 param, GPU_TEXCOLOR colorType);
 
 #endif
index 558a4c7eee10528ef1d599a091b9624c65330fbe..6c8ca5dde0468281a230db7b55b5d8750a8249ce 100644 (file)
@@ -276,7 +276,7 @@ void GPU_DepthRange(float nearVal, float farVal)
        GPUCMD_AddSingleParam(0x000F004E, f32tof24(farVal));
 }
 
-void GPU_SetDepthTest(bool enable, GPU_TestFunction function, u8 ref)
+void GPU_SetDepthTest(bool enable, GPU_TESTFUNC function, u8 ref)
 {
        GPUCMD_AddSingleParam(0x000F0107, (enable&1)|((function&7)<<4)|(ref<<8));
 }
index 3c808dd98b8d582e4c1cd4bc5f7e8c65993f219d..672e8ed1ce7750ce7419d0d42a490260d70a6045 100644 (file)
@@ -131,6 +131,9 @@ void DVLE_SendOutmap(DVLE_s* dvle)
                {
                        case RESULT_POSITION: *out=0x03020100; break;
                        case RESULT_COLOR: *out=0x0B0A0908; break;
+                       case RESULT_TEXCOORD0: *out=0x1F1F0D0C; break;
+                       case RESULT_TEXCOORD1: *out=0x1F1F0F0E; break;
+                       case RESULT_TEXCOORD2: *out=0x1F1F1716; break;
                }
        }