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

399 Commits

Author SHA1 Message Date
Sergey Lipskiy
268278a6b0 Implement load texture by dma offset.
Fixed menu in JFG.
2015-05-13 10:13:48 +06:00
Sergey Lipskiy
a22483bc2f Implement non-standard fog modes. 2015-05-13 10:13:47 +06:00
Sergey Lipskiy
17479ccbe4 Rewrite FrameBufferList::renderBuffer
Use new method for destination coordinates calculation.
2015-05-13 10:13:47 +06:00
Sergey Lipskiy
0d35f461df Fix integer-float mismatch in FrameBuffer.cpp 2015-05-13 10:13:46 +06:00
Sergey Lipskiy
a95b7166e9 Include updateFBInfo into ShaderCombiner::update().
Fixed monochrome textures in JFG.
2015-05-13 10:13:45 +06:00
Sergey Lipskiy
070f914583 Separate JFG microcode from DKR one because Vertex commands differ a bit. 2015-05-13 10:13:45 +06:00
Sergey Lipskiy
254f315803 Fix DKR microcode.
gSPDMATriangles worked incorrect because vertex's s and t can change between triangles.
Need to copy original vertex to an array and modify s and t for copied vertex.
2015-05-13 10:13:44 +06:00
Sergey Lipskiy
e4fa0b5717 Mip-mapping! 2015-05-13 10:13:43 +06:00
Sergey Lipskiy
a8021084f2 Implement LLE triangles. 2015-05-13 10:13:43 +06:00
Sergey Lipskiy
2058770099 Code cleanup: fix "texturePersp enabled" check. 2015-05-13 10:13:42 +06:00
Sergey Lipskiy
ab243e215f Code cleanup: fix idents in RDP.cpp 2015-05-13 10:13:41 +06:00
Sergey Lipskiy
77c90c502a Code cleanup: fix idents in F3DEX2.cpp 2015-05-13 10:13:40 +06:00
Sergey Lipskiy
d92ba1403f Code cleanup: fix idents in F3D.cpp 2015-05-13 10:13:40 +06:00
Sergey Lipskiy
a9404816ed Implement gSPDlistCount() and RSP_CheckDLCounter(). 2015-05-13 10:13:39 +06:00
Sergey Lipskiy
92c3283ff7 Fix min and max usage. 2015-05-13 10:13:38 +06:00
Sergey Lipskiy
d433c4565e Add dummy DebugMsg() and DebugRSPState() functions. 2015-05-13 10:13:38 +06:00
Sergey Lipskiy
5f0cbecb5e Increase default texture cache size for Zilmar build. 2015-05-13 10:13:37 +06:00
Sergey Lipskiy
cc22e79f51 Fixed renderCallback call for MupenPlus.
Reset combiner to default state before renderCallback call.
2015-05-13 10:13:36 +06:00
Sergey Lipskiy
f89811b0f7 Changed output path for MupenPlus Release build. 2015-05-13 10:13:36 +06:00
Sergey Lipskiy
7a578b6d93 Return old method of depth image based fog detection,
because the new and good one causes problem with pause screen background
in Zelda OOT.
2015-05-13 10:13:35 +06:00
Sergey Lipskiy
b31b4cc3f6 Correct renderBuffer usage in FrameBuffer_ActivateBufferTexture. 2015-05-13 10:13:34 +06:00
Sergey Lipskiy
fbd4cb759a Don't exit from function after _copyDepthBuffer() execution.
Fixed pause screen in Zelda MM.
2015-05-13 10:13:33 +06:00
Sergey Lipskiy
f637e91f22 Replace _SHIFTR( *REG.VI_H_START, 0, 10 ) == 0 check by VI.width == 0 one
Fixed glError in Knockout Kings 2000. The game sets h_start==h_end at start,
thus VI.width is zero but *REG.VI_H_START is not.
2015-05-13 10:13:32 +06:00
Sergey Lipskiy
75bf4004cb Correct VI width calculation.
Fixed VI width in Cyber Tiger.
2015-05-13 10:13:32 +06:00
Sergey Lipskiy
9d72e182cf Correct update scissor:
glScissor( generates GL_INVALID_VALUE if either width or height is negative.
Clamp width and height to positive value.

glError in Clay Fighter 63 1/3 is fixed.
2015-05-13 10:13:31 +06:00
Sergey Lipskiy
873324e3c1 Correct OGLRender::_updateViewport():
glViewport generates GL_INVALID_VALUE if either width or height is negative.
Clamp width and height to positive value.

glError in CyberTiger fixed.
2015-05-13 10:13:30 +06:00
Sergey Lipskiy
ebedf49240 Correct VI height calculation. 2015-05-13 10:13:30 +06:00
Sergey Lipskiy
d8a93a3aa3 Correct frame buffer height calculation.
Fixed Mario Tennis (E).
The RDP frame buffer height is 256, VI buffer height is 221.
The actual height of the picture is 221, so with frame buffer height 256
viewport settings becomes wrong and the picture moves atop.
2015-05-13 10:13:29 +06:00
Sergey Lipskiy
3b97ca2d7c Fix float/int mismatch in VI_UpdateSize(). 2015-05-13 10:13:28 +06:00
Sergey Lipskiy
e21f455686 Don't call glBindImageTexture if it is not supported. 2015-05-13 10:13:28 +06:00
Sergey Lipskiy
aa694d4314 Implement screenshot capture for MupenPlus. 2015-05-13 10:13:27 +06:00
Sergey Lipskiy
d74e39b948 Fix POSIX compilation issues 2015-05-13 10:13:26 +06:00
Sergey Lipskiy
768430a234 Implement screen aspect ratio support. 2015-05-13 10:13:26 +06:00
Sergey Lipskiy
2ca283cf0f Call CRC_BuildTable() in TextureCache ctor. 2015-05-13 10:13:25 +06:00
Sergey Lipskiy
c96b62adaf Implement window resize for MupenPlus. 2015-05-13 10:13:24 +06:00
Sergey Lipskiy
60dd897a39 Change pluginName[] to "GLideN64", remove alpha from name. 2015-05-13 10:13:24 +06:00
Sergey Lipskiy
65d84128da Add script to add current revision to Revision.h
Use Revision in GetDllInfo and in MupenPlus window's caption.
2015-05-13 10:13:23 +06:00
Sergey Lipskiy
9c36b7623b Remove call of video().resizeWindow() from PluginAPI::RomOpen().
It is required for Windows only, thus it is now called from OGLVideoWindows::_start().
2015-05-13 10:13:22 +06:00
Sergey Lipskiy
1e4d8cd551 Move calls to GBI.init() and video().start() from RSP_Init() to PluginAPI::RomOpen(). 2015-05-13 10:13:22 +06:00
Sergey Lipskiy
42838fffe7 Remove obsolete MupenPlus API functions. 2015-05-13 10:13:21 +06:00
Sergey Lipskiy
279e2c9e65 Use renderCallback function in MupenPlus build. 2015-05-13 10:13:20 +06:00
Sergey Lipskiy
79bf9d9910 Rewrite config load for MupenPlus. Store parameters in main config file.
Add new video config parameters: fullscreen, verticalSync, multisampling.
2015-05-13 10:13:20 +06:00
Sergey Lipskiy
6bf0302f19 Fix errors found by code analizer. 2015-05-13 10:13:19 +06:00
Sergey Lipskiy
7548922cfd Add CombinerInfo::update().
Call it in FrameBufferList::attachDepthBuffer() before currentCombiner()->updateDepthInfo
to avoid glError caused by wrong shader program set.

Fixed glError with MarioTennis character selection.
2015-05-13 10:13:18 +06:00
Sergey Lipskiy
b6771dcf0a Correct gDP.colorImage.height calculation for gDPFillRectangle.
Fixed SCARS.
2015-05-13 10:13:18 +06:00
Sergey Lipskiy
5ac66b83fe Clear frame and depth buffers lists when VI width, height or interlaced mode is changed. 2015-05-13 10:13:17 +06:00
Sergey Lipskiy
4aa7528915 Correct buffer's height calculation in gDPSetColorImage. 2015-05-13 10:13:16 +06:00
Sergey Lipskiy
9305d46c94 Roundup calculated VI.width and VI.height.
Fixed Charlie Blast.
2015-05-13 10:13:16 +06:00
Sergey Lipskiy
2cfee3bc51 Revert "Fix gDP.colorImage.height in gDPTextureRectangle."
This reverts commit bb8800cbb163e7498b6558d8c6e059a6985edafd.
2015-05-13 10:13:15 +06:00
Sergey Lipskiy
bda27e0ed1 Update VS project file for MupenPlus build. 2015-05-13 10:13:14 +06:00