1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-07 03:13:49 +00:00
Commit Graph

315 Commits

Author SHA1 Message Date
Sergey Lipskiy
f6ebb311a1 Massive refactoring: move API or OS dependent code to separate files.
Include/enable necessary source files in project files.
2015-05-13 10:12:51 +06:00
Sergey Lipskiy
8afec13cb9 Code cleanup in GBI.h:
fix idents and remove unused field "text"
2015-05-13 10:12:50 +06:00
Sergey Lipskiy
557874f896 Add HWND parameter to Config_DoConfig(). 2015-05-13 10:12:49 +06:00
Sergey Lipskiy
3352193632 Depth buffer refactor 2015-05-13 10:12:48 +06:00
Sergey Lipskiy
fbf660d4ec Refactor: Make DepthBufferList singleton. 2015-05-13 10:12:48 +06:00
Sergey Lipskiy
4f8c3f691d Switch to Visual Studio 2013 2015-05-13 10:12:47 +06:00
Sergey Lipskiy
d7f4e44674 Frame buffer refactor.
Use std::list as container for frame buffers.
2015-05-13 10:12:46 +06:00
Sergey Lipskiy
bd8b73d5b5 Refactor: Make frame buffer singleton 2015-05-13 10:12:45 +06:00
Sergey Lipskiy
954d5c3552 Correct combiners init/destroy. 2015-05-13 10:12:44 +06:00
Sergey Lipskiy
7f6d7e2772 Refactor: rewrite TextureCache.
Store normal textures and frame buffer textures in separate maps.
Replace TextureCache_* functions by methods of TextureCache.
2015-05-13 10:12:44 +06:00
Sergey Lipskiy
9e5cab6852 Remove Noise textures. 2015-05-13 10:12:43 +06:00
Sergey Lipskiy
c33b6056cb Code cleanup: fix idents in CMakeList.txt 2015-05-13 10:12:42 +06:00
Sergey Lipskiy
21b40c7a6c Remove 2xSAI support. 2015-05-13 10:12:42 +06:00
Sergey Lipskiy
f7e0aa6e10 Refactor: correct texture CRC calculation.
Texture parameters are added to calculated crc, and thus the crc must
define the texture completely.
Assertion added to check that found texture is exactly the one we are looking for.
2015-05-13 10:12:41 +06:00
Sergey Lipskiy
1a43c89db3 Code cleanup: cleanup CRC.h and CRC.cpp 2015-05-13 10:12:40 +06:00
Sergey Lipskiy
23f7f24d35 Refactor: replace CombinerInfo::get().getCurrent() by inline function currentCombiner() 2015-05-13 10:12:39 +06:00
Sergey Lipskiy
4b4a328795 Refactor: use std::string instead of allocated buffer of chars for fragment shader code. 2015-05-13 10:12:39 +06:00
Sergey Lipskiy
b537b985ab Refactor: rename InitGLSLCombiner and DestroyGLSLCombiner
to InitShaderCombiner and DestroyShaderCombiner().
2015-05-13 10:12:38 +06:00
Sergey Lipskiy
0f176dcc4c Refactor: rename ShaderCombiner methods - name starts from lower case letter. 2015-05-13 10:12:37 +06:00
Sergey Lipskiy
4843c0ffdd Code cleanup: remove unused function Combiner_EncodeCombineMode(). 2015-05-13 10:12:36 +06:00
Sergey Lipskiy
3de0809322 Refactor: remove usesT0 usesT1 usesShadeColor from CombinerInfo class and make them
methods of ShaderCombiner.
2015-05-13 10:12:36 +06:00
Sergey Lipskiy
7b3423d7de Code cleanup: fix idents for FrameBuffer.cpp 2015-05-13 10:12:35 +06:00
Sergey Lipskiy
2e5ad21ddd Refactor: remove combiner update methods from CombinerInfo and call them
directly for ShaderCombiner object.
2015-05-13 10:12:34 +06:00
Sergey Lipskiy
9d692cc7ae Refactor: replace custom binary tree implementation by std::map in Combiner.cpp
Removed many auxilary structs. Code is simplified.
2015-05-13 10:12:34 +06:00
Sergey Lipskiy
bfc3d6c758 Code cleanup: fix idents in Config.cpp and Combiner.cpp 2015-05-13 10:12:33 +06:00
Sergey Lipskiy
65e9f33f5e Fix compilation warning. 2015-05-13 10:12:32 +06:00
Sergey Lipskiy
709f631cbf Refactor: Make Combiner_* functions as members of CombinerInfo. 2015-05-13 10:12:32 +06:00
Sergey Lipskiy
389a46c394 Code cleaup: fix idents, replace spaces by tabs. 2015-05-13 10:12:31 +06:00
Sergey Lipskiy
4d93ddac4f Use std min and max 2015-05-13 10:12:30 +06:00
Sergey Lipskiy
ab33c41f08 Explicitly specify that constants are unsigned int in OpenGL.h 2015-05-13 10:12:29 +06:00
Sergey Lipskiy
74ff919934 Replace MS __try by standard try. 2015-05-13 10:12:29 +06:00
Sergey Lipskiy
69d580b40a Use time() instead of Windows timeGetTime(). 2015-05-13 10:12:28 +06:00
Sergey Lipskiy
bdb221b6ac Refactor: replace define WIN32 by WIN32_ASM
since it is used for MSVS style asm code only.
2015-05-13 10:12:27 +06:00
Sergey Lipskiy
b73cf262f1 Code cleanup: Remove unused noise texture from Textures.h 2015-05-13 10:12:27 +06:00
Sergey Lipskiy
5b48a5db49 Make CombinerInfo sigleton. 2015-05-13 10:12:26 +06:00
Sergey Lipskiy
fd63ee2b64 Code cleanup: remove unused define SetConstant form Combiner.h 2015-05-13 10:12:25 +06:00
Sergey Lipskiy
a432f32e08 Code cleanup: Remove unused structure "vertex" from struct CombinerInfo 2015-05-13 10:12:25 +06:00
Sergey Lipskiy
ca836526df Code cleanup: Remove unused declarations from GLSLCombiner.h 2015-05-13 10:12:24 +06:00
Sergey Lipskiy
f6955e8673 Fix depth buffer based fog detection. 2015-05-13 10:12:23 +06:00
Sergey Lipskiy
9fda06ffa4 Fix CheckForFrameBufferTexture: don't test frame buffer content if
copyToRDRAM is on
or copyDepthToRDRAM is on and frame buffer was cleared by depth buffer clear value.
2015-05-13 10:12:23 +06:00
Sergey Lipskiy
4d3df31a56 Fix CheckForFrameBufferTexture(...) for depth buffer:
don't test frame buffer content if frame buffer is depth buffer,
because of DepthCopyToRDRAM
2015-05-13 10:12:22 +06:00
Sergey Lipskiy
8d84af1257 Disable HW light calculation for RECTs. 2015-05-13 10:12:21 +06:00
Sergey Lipskiy
36707d79e2 Fix NOISE input in combiners. 2015-05-13 10:12:21 +06:00
Sergey Lipskiy
92eb61572e Fix scissor related problems:
- scissor dissable/enable in FrameBuffer_RenderBuffer()
- scissor height in OGL_UpdateStates()
2015-05-13 10:12:20 +06:00
Sergey Lipskiy
8f9584440e Fix stupid typo in _setFV2Uniform and _setIV2Uniform.
The typo caused write out of array bounds, which lead to wrong work of shaders.
2015-05-13 10:12:19 +06:00
Sergey Lipskiy
4ab3c1e1ed Fix adress correction condition in gDPSetTile. 2015-05-13 10:12:19 +06:00
Sergey Lipskiy
7d30e80d78 Fix gSPCullVertices. 2015-05-13 10:12:18 +06:00
Sergey Lipskiy
deed5ecd01 Restore wrongly removed triangle clipping. 2015-05-13 10:12:17 +06:00
Sergey Lipskiy
1b084dfd7b Support enableLOD config option. 2015-05-13 10:12:16 +06:00
Sergey Lipskiy
fefe01d88d Add "enable noise" and "enable HW lighting" to MupenPlus config. 2015-05-13 10:12:16 +06:00