Commit graph

84 commits

Author SHA1 Message Date
strmnnrmn
33670e4324 [~] Implement mpData/mpPalette on OSX NativeTexture, so that we can use the png code to dump textures
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1390 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-24 12:52:59 +00:00
strmnnrmn
fb537ad57f [~] kFoo for constants, FOO_UPPER_CAPS for preprocessor
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1386 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-24 12:52:31 +00:00
strmnnrmn
f959a9c940 [~] OSX doesn't use mScale in CNativeTexture
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1347 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-20 00:42:16 +00:00
strmnnrmn
65928a7b4f [~] Fix Draw2DTextureBlit on OSX. It's only needed on PSP and Draw2DTexture works fine for OSX. So move the logic for calling (w>=512) to RendererPSP::Draw2DTexture, and remove Draw2DTextureBlit from the BaseRenderer abstract interface.
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1346 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-20 00:42:08 +00:00
strmnnrmn
088cfd061b [~] Move Clamp/Recolour/Mirror functions out of CachedTexture.cpp and into a separate TextureTransform.cpp
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1269 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-12 20:52:11 +00:00
strmnnrmn
9b55ada0a7 [~] GetSystemMemoryUsage and GetVideoMemoryUsage are unused.
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1266 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-12 20:51:50 +00:00
strmnnrmn
b1f7834620 [~] Simplify UpdateTileSnapshot a little. Move the T1 hack out into a separate function.
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1253 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-12 20:50:04 +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
7422eb6f6c [*] Move PixelFormatPSP from SysPSP to common Graphics, rename to NativePixelFormat.h. Remove some of the namespaces to make use of native/n64 pixelformats more obvious when reading the code.
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1106 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-02 14:34:51 +00:00
strmnnrmn
cf57a2b8d7 [~] Rename ClearWithColour to ClearColBufferAndDepth. Pass a c32 for consistency with ClearColBuffer, and remove the depth arg (always 0)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1092 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-02-24 11:09:49 +00:00
strmnnrmn
9ec164f1bb [~] Implement ViewportType on OSX. Make const.
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1091 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-02-24 11:09:39 +00:00
strmnnrmn
de11411cbc [~] Tidy up GraphicsContext Clear functions - the overloading was a bit confusing so I renamed them. Clear(bool,bool) only ever took (true,true) as arguments, so just call it ClearToBlack and simplify the code a bit
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1089 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-02-24 11:09:22 +00:00
strmnnrmn
2cd54e7536 [~] GraphicsContext UpdateFrame return was unused. Rename GetBufferSize to GetScreenSize, and use to avoid exposing SCR_WIDTH/SCR_HEIGHT
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1077 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-02-23 15:52:29 +00:00
strmnnrmn
6b321bdc67 [~] Remove NativeTexture fields that are only used by the PSP build.
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1065 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-02-23 15:51:00 +00:00
strmnnrmn
4c0b1401b6 [~] Define CGraphicsContext::ViewportType for all platforms - not no-op on Windows
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1042 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-02-20 22:07:04 +00:00
salvy
d2de763192 [!] Used a temporal buffer for storing screenshots for savestates
[!] Take savestate screenshot after the next frame rather than storing it in a buffer
[!] Optimized Patch_osCreateThread


git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@872 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-12-21 21:02:39 +00:00
Corn
e3a7eb552b [+] Added storing and displaying previews to Save States (Uses a 128kByte buffer)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@871 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-12-21 17:38:31 +00:00
strmnnrmn
0e698c385d Fix all the remaining mixed newlines
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@852 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-12-08 14:21:04 +00:00
salvy
4536c5c170 By StrmnNrmn : …
Multi-platform:

* Reintroduced a bunch of DAEDALUS_PSP ifdefs.
* Reintroduced a load of Win32/OSX code.
* R4300: To reduce some of the DAEDALUS_PSP ifdefs in R4300.cpp, added some
  defines for R4300_IsNan etc.
* R4300: f32_to_s32_trunc etc. I think we should keep these as they provide some
  abstraction between PSP/OSX/W32 etc and remove tons of ifdefs elsewhere.
  I think I updated all of these correctly. Please check!
* Math/Math.h: we should provide a consistent interface here. e.g. rather than
  exposing pspFpuSqrt(), we should have Sqrt() that's #defined (or a wrapper
  function) to the most appropriate implementation for the platform.

Small improvements:

* Added a few DBGConsole_Msg lines to track down boot errors.
* CPU: gLastPC/gLastAddress were defined as static in CPU.h - that means they'd
  be introduced into all compilation units that pulled in that header. Redefined
  as extern.
* NativeTexture.h - GetScaleX/Y can just return an f32 (no need for reference)
* ROMFileCache: Just declare AddressToChunkMapIndex/GetChunkStartAddress as
  inline functions in the .cpp file.

Tidying:

* Path: Moved IO::Path::Tidy to String.h (it's not really a Path function).
* Lots of whitespace fixes (git doesn't like whitespace at the end of lines)
* Started nuking lots of 'tractor lines' (//*********************)

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@840 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-12-05 20:07:03 +00:00
strmnnrmn
d7d116642a Fix more trailing whitespace (files with CRLF line endings?)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@825 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-11-28 23:23:11 +00:00
salvy
4f68cee2d2 [!] Optimized Dlist loop (Now it only checks the Dlist counter when needed, also counter resets in go)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@780 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-10-15 10:00:54 +00:00
salvy
2b3cfdf371 [+] Implemented blit (code taken from The TriEngine)
[!] Use blitting to support large textures (since the PSP hardware can only handle up to 512x512)

Worms - Armageddon is now playable

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@694 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-06-06 17:30:53 +00:00
salvy
ea3e838fbb [!] Some small optimizations
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@638 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-04-02 02:16:42 +00:00
Corn
ac9c584e6e [+] improved T1_HACK it now merges T0 with T1 so PSP can render textures properly(Rayman2, Donald Duck, Earth worm jim, Tom & Jerry)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@626 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-03-15 21:16:25 +00:00
Salvy
d93c3c2030 [!] Forgot this
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@506 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-11-30 22:19:48 +00:00
Salvy
b1cbbba3b7 [+] Add back compile option to disable VFPU (Note : Not all VFPU code is suppressed yet)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@419 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-09-29 03:52:33 +00:00
Salvy
083eefae8e [!] Reworked Viewport codebase (WIP)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@202 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-03-25 01:16:13 +00:00
Corn
0a546dcb0d [!] Improved hack for Wonder project J2 with a speed up (require setting texture check to 4 or so)
[!] Moved clean scene to BeginFrame()
[-] Removed residual fraction calculation in Insert matrix
[!] Corrected a few warnings

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@179 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-03-08 21:39:51 +00:00
bdacanay
e358fd33a1 [+] Added several new menu colors including turquoise, orange, purple, and grey.
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@151 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-02-24 05:02:39 +00:00
Corn
6a0971c195 [-] Reverted UpdateFrame() change
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@136 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-02-13 20:18:47 +00:00
Salvy
98cefac7dc [~] Do not force saving when entering pause menu (Note : more testings is needed to make sure savings didn't get broken!!)
[~] Simplify our dialogs abit
[~] Separate UpdateFrame for GUI (more clean ups are needed though)
[!] Use ClearZbuffer for clean scene
[~] Made exception handler release only (breaks gdb in debug builds)

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@130 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-02-13 07:00:52 +00:00
Corn
5205f89355 [!] Possible fix/hack for SM64 stars blend
[!] Calling proper function for clearing Zbuffer(also adding proper cast for passed variable)


git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@129 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-02-12 23:12:34 +00:00
Corn
cc1d01156d [+] SetPrimDepth -> Glover, Rayman2, Donald duck got the annoying (sprite)depth error sorted out (still need more work?)
[!] Mario star has better gold color
[!] Fixed texture.installed selection error

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@61 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-01-09 19:44:09 +00:00
Salvy
bdbd952c60 [+] Initial repo (based from r630 dx64 branch)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@3 42e9bfbe-799a-4a2d-bad1-236e862a387a
2010-12-24 04:37:41 +00:00