Commit graph

154 commits

Author SHA1 Message Date
strmnnrmn
d099a4cb1b [~] Pass an enum to RenderUsingCurrentBlendMode to specify 2d/3d rendering. This lets us remove a bunch more dummy enum values on OSX
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1187 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-06 21:06:37 +00:00
strmnnrmn
094d561623 [~] Move TexRect/TexRectFlip/FillRect to the platform renderer implementations - stuff like GU_SPRITES makes the OSX implementation a bit bodgy.
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1175 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-05 20:27:43 +00:00
strmnnrmn
255207596d [!] Compile fix for last fix :)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1162 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-03 23:06:17 +00:00
strmnnrmn
c8e7fef486 [!] sceGuTexWrap needs to be called in the OverrideFunction path
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1161 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-03 23:06:09 +00:00
strmnnrmn
9eac53d855 [~] Ooops fix Blender.cpp includes
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1154 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-03 22:14:04 +00:00
strmnnrmn
2ac0f2c10b [~] Implement InitBlenderMode separately for OSX, which means we can move Blender.cpp to SysPSP, and remove a bunch more sceGu dummy functions.
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1153 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-03 22:13:56 +00:00
strmnnrmn
07c7b5b974 [~] Make RestoreRenderStates platform specific.
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1144 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-03 22:12:31 +00:00
strmnnrmn
7bbc5a7a39 [~] Rename mN64ToPSP* to mN64ToNative* and wrap the duplicated transform in an inline function.
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1137 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-03 22:11:35 +00:00
strmnnrmn
d72b33d127 [~] Move DebugBlendSettings to RendererPSP.h
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1136 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-03 22:11:26 +00:00
strmnnrmn
2ae5974061 [~] Move mUnhandledCombinerStates to the PSP renderer.
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1135 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-03 22:11:18 +00:00
strmnnrmn
b32b50b2e5 [~] Move placeholder texture stuff to the PSP renderer.
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1134 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-03 22:11:08 +00:00
strmnnrmn
c2bb21ef5a [~] ColourAdjuster is only needed for the PSP build.
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1133 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-03 12:32:24 +00:00
strmnnrmn
1f52aaa0bc [~] Move BlendConstant.{h,cpp} and RenderSettings.{h,cpp} to SysPSP
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1132 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-03 12:32:10 +00:00
strmnnrmn
311f69151d [~] mCopyBlendStates/mFillBlendStates are only used by the PSP renderer
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1131 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-03 12:31:56 +00:00
strmnnrmn
20bc886504 [~] Move some more displaylist debugging code from BaseRenderer to RendererPSP
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1130 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-03 12:08:08 +00:00
strmnnrmn
53a69a2c1f [*] Move BlendModes.{h,cpp}, CombinerExpression.{h,cpp} CombinerTree.{h,cpp} and CombinerInput.h to SysPSP. These aren't needed to compile the OSX build any more.
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1129 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-03 12:08:00 +00:00
strmnnrmn
5f4df61c5a [~] Move LookupBlendState to the PSP Renderer implementation
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1128 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-03 12:07:43 +00:00
strmnnrmn
9230c125e6 [~] Move some PSP specific debugging code to RendererPSP
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1127 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-03 12:07:35 +00:00
strmnnrmn
aebd8b9a33 [~] Ooops - need to prefix paths with HLEGraphics now DisplayListDebugger lives in SysPSP
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1125 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-03 12:07:18 +00:00
strmnnrmn
cd1aef1952 [~] Add headers for the PSP/OSX Renderer implementations, and add another pointer to the derived class. This will make it possible to call platform-specific bits of functionality easily.
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1124 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-03 12:07:11 +00:00
strmnnrmn
ca5e2ce912 [~] Move the existing DisplayListDebugger.cpp to SysPSP - it's far too PSP specific to be useful on OSX.
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1122 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-03 12:06:52 +00:00
strmnnrmn
462d064f99 [~] OSX - change sceGu calls in DrawTexture* calls to gl calls
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1117 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-03 12:06:09 +00:00
strmnnrmn
29155d7e01 [~] Move DrawTexture functions from BaseRenderer to the platform-specific impls
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1116 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-03 12:06:01 +00:00
strmnnrmn
a4b6d43dcd [~] Move all the virtual functions in BlendConstant.h to a separate .cpp file. As these are virtual functions, there's no benefit from declaring them inline, and all it does is bloat the header and slow the build time.
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1112 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-03 12:05:28 +00:00
strmnnrmn
cc4fa6e600 [~] Make RenderUsingCurrentBlendMode pure virtual and define in the PSP/OSX implementations. Move RenderUsingRenderSettings too. The OSX build can pretty much rewrite all of this code, which I'll do next.
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1111 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-03 12:05:18 +00:00
strmnnrmn
b7f981544c [~] Add separate OSX/PSP renderers, and instantiate these instead of BaseRenderer
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1110 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-02 16:14:09 +00:00
Corn
017a3a2056 [!] Fixed small bug in VFPU TnL code for PD
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@602 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-01-31 18:30:53 +00:00
Corn
0412824b43 [!] small optimizations in TnL for CBFD and PD
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@579 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-01-11 21:58:59 +00:00
Corn
003bafc95a [!] Ambient light change is now compatible with VFPU TnL code (standard and Perfect dark)
[-] removed old Ambient light from struct

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@568 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-01-02 15:52:24 +00:00
Corn
db0c96124e [!] Refinements in VFPU TnL code for small speed up
[!] Fixed matrix stack limits to proper values
[!] Save some memory with smaller indices buffers

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@565 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-12-29 12:51:50 +00:00
Corn
3e30752f1e [!] avoid concatenation/multiplication of world and projection matrices for CBFD and PD (small speed up)
[!] use aligned loads and saves for matrix multiplication in psprenderer (small speed up)

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@562 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-12-28 16:47:26 +00:00
Corn
81ee7e2c24 [+] Added VFPU TnL code for DKR billboards (small speed up)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@528 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-12-11 17:31:54 +00:00
Corn
2c5fa43b83 [-] Removed old VFPU TnL code
[!] Small optimization in DKR TnL

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@526 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-12-09 22:33:13 +00:00
Corn
50cf2ef91b [!] use texture hash check in cache for now (fixes OOT and MM text and other issues in other games)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@516 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-12-04 09:43:08 +00:00
Corn
d37483496c [+] Conker TnL is now done on the VFPU (including ENV map)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@512 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-12-03 20:52:52 +00:00
Corn
415a8cd389 [+] DKR TnL is now done on the VFPU (speed up)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@511 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-12-03 17:35:04 +00:00
Corn
ce7ba0a211 [+] Added VFPU code for perfect dark TnL path (speed up)
[!] Fixed copy n paste bug in lighting 

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@510 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-12-02 22:49:18 +00:00
Corn
91d33ecd33 [!] avoid downsizing texel buffer
[!] some optimizations in copying data with vectors
[!] TnLVFPU Passing more data through a struct rather than function parameters


git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@507 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-12-01 20:57:29 +00:00
Corn
28b84523de [!] VFPU TnL recoded into one function (with optimizations)
[!] Integrate TnL flags into TnL parameters
[!] small fix to texture UpdateIfNecessary
[!] small optimization to convert vertices 

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@504 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-11-30 22:06:40 +00:00
Corn
1030ddb025 [!] small speed up making use of VFPU for converting vertices's to PSP hardware format when clipping tris
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@500 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-11-26 19:28:39 +00:00
Corn
640ad83bea [!] Use another(faster) way to front/back face cull to avoid using 1/w for the cross product.
[!] small update/boost to reference CPU clip.
[!] optimized both VFPU and CPU clip flag generation
[+] added hack to make memory opt work in PD


git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@418 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-09-28 21:26:57 +00:00
Corn
43da3845c6 [!] Optimized CPU and VFPU VectorClip
[!] Reduced max number of clipped verts to 192 from 1024 (saving some memory)

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@417 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-09-26 21:11:39 +00:00
Corn
fa099b1cdf [!] Fixed texture scaling glitch (and simplified transform pipeline) in Conker.
[!] Small change in Vector clipping ASM (scale whole matrix rather than just one vector at the time).
[!] Some clean up in gspmacros and PSPRenderer.
[+] Alternative transform pipeline (using CPU/FPU) for Conker (WIP)

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@394 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-09-11 14:11:53 +00:00
Corn
b648e527a4 [!] reverted IRQ optimization that made Animal crossing fail(salvy)
[+] Some minor optimizations to the VFPU TnL
[+] Ucode names for Conker BFD to debug Dlist 

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@231 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-04-15 21:05:11 +00:00
Corn
a3bc5aeb56 [!] Alpha channel gets passed along even when doing lighting on a tris
[+] Added rendered Rects as screen debug info

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@230 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-04-14 22:06:47 +00:00
Corn
d4a3d9082d [+] Speed up using early FRONT/BACK tris culling in software.
[!] Some minor optimizations in VFPU rendering

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@221 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-04-09 15:26:53 +00:00
Corn
9ba3ca3d57 [!] Re-adjusted envmap so OOT stones looks nice
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@201 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-03-24 21:15:02 +00:00
Corn
b857cfe707 [-] Revert env map changes from last commit
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@200 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-03-23 19:06:41 +00:00
Corn
dfc76294f7 [!] Env mapping trimming
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@198 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-03-23 18:19:28 +00:00
Corn
f60df4e34e [!] Corrected a lightning bug (I introduced earlier)
[!] Env mapping is now done (very fast) in the VFPU
[~] Move some defines

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@194 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-03-20 19:34:18 +00:00