Sergey Lipskiy
6377b036d0
Add blend modes for Zelda MM LoT.
2015-05-13 10:11:10 +06:00
Sergey Lipskiy
380486ad51
Don't clear gSP.geometryMode on sprite microcodes initialization.
...
Zeldas use S2DEX2 microcode to render backgrounds and copy buffers.
Setting gSP.geometryMode to 0 may break current render state.
In particular, LoT in Zelda MM does not work because of it.
2015-05-13 10:11:09 +06:00
Sergey Lipskiy
cc3446c4d6
BindImageTexture fixes
2015-05-13 10:11:09 +06:00
Sergey Lipskiy
b0f17ef953
Add g_bN64DepthCompare parameter
...
If it is true, N64 depth compare algorithm is used instead of OpenGL depth buffer.
2015-05-13 10:11:08 +06:00
Sergey Lipskiy
344df93374
Rewrite depth texture clear.
2015-05-13 10:11:07 +06:00
Sergey Lipskiy
314b9098f4
Implement N64 depth compare.
...
Removed integer-based variant of depth texture.
2015-05-13 10:11:06 +06:00
Sergey Lipskiy
bf99ef2079
Fix colorImage.height calculation in FillRect
2015-05-13 10:11:06 +06:00
Sergey Lipskiy
0da20b5062
Fix screenshot read.
2015-05-13 10:11:05 +06:00
Sergey Lipskiy
8e2707c419
(R): remove stipplePattern related code, since it is not used anymore.
2015-05-13 10:11:04 +06:00
Sergey Lipskiy
9d253ba69f
Add MUPENPLUSAPI define for Android
2015-05-13 10:11:03 +06:00
Sergey Lipskiy
7f49dd39c2
Replace frameBuffer.drawBuffer from GL_DRAW_FRAMEBUFFER
...
to gles compatible GL_FRAMEBUFFER
2015-05-13 10:11:03 +06:00
Sergey Lipskiy
c167aa970c
Fix #include <GL/gl.h>
2015-05-13 10:11:02 +06:00
Sergey Lipskiy
5856ec606e
Guard SDL calls by USE_SDL define.
2015-05-13 10:11:01 +06:00
Sergey Lipskiy
222accdd8d
Fix #include <SDL.h>
2015-05-13 10:11:00 +06:00
Sergey Lipskiy
c4897db8ac
Add Android build files.
2015-05-13 10:11:00 +06:00
Sergey Lipskiy
9de2dea9e0
Add few interface functions for Anroid port.
2015-05-13 10:10:59 +06:00
Sergey Lipskiy
a3c59d643c
(R): Remove unused asm code from 3DMath.h
2015-05-13 10:10:58 +06:00
Sergey Lipskiy
829e5ad4ff
Fix int-long types usage in convert.h.
...
Taken from gles2N64.
2015-05-13 10:10:58 +06:00
Sergey Lipskiy
7a4cc12aec
(R): Remove unused asm code from convert.h
2015-05-13 10:10:57 +06:00
Sergey Lipskiy
a5cdb4480c
(R): Remove use of __LINUX__ in OpenGL.h and OpenGL.cpp
2015-05-13 10:10:56 +06:00
Sergey Lipskiy
d7e775959e
(R): Fixed use of __LINUX__ and _WINDOWS defines in GLideN64.cpp
2015-05-13 10:10:56 +06:00
Sergey Lipskiy
7413bd7bc1
(R): Replace __LINUX__ define by _WINDOWS in GBI.cpp
2015-05-13 10:10:55 +06:00
Sergey Lipskiy
73890d4354
(R): Remove unused includes from FrameBuffer.cpp
2015-05-13 10:10:54 +06:00
Sergey Lipskiy
772bff3cec
(R): Remove unused includes from GLSLCombiner.cpp
2015-05-13 10:10:54 +06:00
Sergey Lipskiy
3b06773f43
(R): Rewrite OGL_SwapBuffers() and use it for all platforms.
2015-05-13 10:10:53 +06:00
Sergey Lipskiy
67b9a3dd1f
(R): Remove use of __LINUX__ in RSP.cpp
2015-05-13 10:10:52 +06:00
Sergey Lipskiy
0b187a3958
(R): Remove unused includes from RSP.cpp
2015-05-13 10:10:52 +06:00
Sergey Lipskiy
792099de6a
(R): Remove unused includes from N64.cpp
2015-05-13 10:10:51 +06:00
Sergey Lipskiy
6f8095358f
(R): Remove # include "Resource.h" from gSP.cpp
2015-05-13 10:10:50 +06:00
Sergey Lipskiy
b25ac3dfc5
(R): Remove include "winlnxdefs.h" from GLideN64.h.
...
Fix includes in .cpp files.
2015-05-13 10:10:50 +06:00
Sergey Lipskiy
ec169e48a2
(R): Replace !defined(__LINUX__) by defined(_WINDOWS) in Debug.cpp
2015-05-13 10:10:49 +06:00
Sergey Lipskiy
eb30130f12
(R): remove #include <windows.h> from Textures.cpp and Combiner.cpp
2015-05-13 10:10:48 +06:00
Sergey Lipskiy
d1b871f57a
(R): Remove wglext.h dependency.
2015-05-13 10:10:48 +06:00
Sergey Lipskiy
32892a2236
Fix #include dependences.
2015-05-13 10:10:47 +06:00
Sergey Lipskiy
cbaece1021
(R): Remove RSPTHREAD code.
2015-05-13 10:10:46 +06:00
Sergey Lipskiy
ef50ef71d2
Refactor: use Types instead of Windows types in CRC
2015-05-13 10:10:45 +06:00
Sergey Lipskiy
c38bd35251
Fix config save-load.
2015-05-13 10:10:45 +06:00
Sergey Lipskiy
306f02911b
Rename config file.
2015-05-13 10:10:44 +06:00
Sergey Lipskiy
0a1499caed
Fix compilation errors when MUPENPLUSAPI enabled
2015-05-13 10:10:43 +06:00
Sergey Lipskiy
5d81e4f2f3
Implement MupenPlus2.0 API functions
2015-05-13 10:10:43 +06:00
Sergey Lipskiy
85a743adaf
Add necessary include files
2015-05-13 10:10:42 +06:00
Sergey Lipskiy
fd3fe0b7b7
Fix DepthBufferToRDRAM::CopyToRDRAM :
...
return if depth buffer is null
2015-05-13 10:10:41 +06:00
Sergey Lipskiy
c7c36ce54a
Correct frame buffer valideness check.
2015-05-13 10:10:41 +06:00
Sergey Lipskiy
4635e24d62
Add g_bIgnoreCFB option.
...
It is necessary for Zelda Pause Screen, otherwise it will be
replaced by blank data from RDRAM.
2015-05-13 10:10:40 +06:00
Sergey Lipskiy
15e5947503
Correct condition for depth buffer rendering.
2015-05-13 10:10:39 +06:00
Sergey Lipskiy
da3d18d7d8
Fix frame buffer textures delete.
2015-05-13 10:10:38 +06:00
Sergey Lipskiy
bc8eced7bd
Move FrameBuffer_CopyToRDRAM to RSP_ProcessDList().
2015-05-13 10:10:38 +06:00
Sergey Lipskiy
d4953abb91
Fix depth beffer rendering.
...
Corrected bug with Z calculation in depth_compare_shader.
2015-05-13 10:10:37 +06:00
Sergey Lipskiy
9b8b667fab
Implement CopyDepthBuffer to RDRAM.
2015-05-13 10:10:36 +06:00
Sergey Lipskiy
00c12e2d1d
Add FBO for depth buffer.
2015-05-13 10:10:36 +06:00