wally4000
d52ce85ce8
replace Clamp with std::clamp
2021-10-23 23:08:27 +11:00
Wally4000
15e3e2a1d0
Update to the Bazel Directory Structure..
2020-08-22 18:42:41 +10:00
=
1511baa25e
Fix up paths in headers
2020-05-27 19:20:52 +10:00
=
1c342d8c8f
Revert all initialiser list variables.
2020-05-04 12:24:21 +10:00
z2442
275aacd212
more nullptr updates
2019-05-03 21:09:20 -04:00
Ben Slater
6a725bf99e
Removed a bunch of asserts / debug options from release build, stabs a bunch of compiler warnings
2019-05-03 17:43:44 +10:00
Wally
f58fc56107
More work on Assert / moving to C11
...
Audio had a lot of unitialized variables..
2019-03-24 00:05:39 +09:00
Ben Slater
c562b76641
*Clean build from StrmnNrmns repo
2019-02-27 17:04:51 +11:00
Wally
e17fdddadf
[~] Fix Conker Regression
...
[+] Remove a hell of a lot more missed asserts.
2019-01-23 17:05:36 +11:00
Wally
795cb677f1
Move more debug stuff out of the main code
2019-01-21 16:12:37 +11:00
Paul Holden
49a06ed319
[~] Make header guards consistently use FULL_PATH_TO_FILE_H_, with script
2013-06-04 22:02:30 +01:00
Paul Holden
734944d829
[~] Drop the _MSC_VER check around #pragme once - all the compilers we use understand #pragma once (or happily ignore it)
2013-06-04 22:02:30 +01:00
strmnnrmn
ffcbe649b1
[~] stdafx cleanup: Include stdio.h and stdlib.h where needed
...
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1703 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-05-19 08:53:29 +00:00
strmnnrmn
4e78d7d970
[~] stdafx cleanup: Include stdlib.h where needed
...
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1702 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-05-19 08:52:59 +00:00
strmnnrmn
16cb89183a
[~] stdafx cleanup: Include string.h where needed
...
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1701 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-05-19 08:52:47 +00:00
strmnnrmn
3757a27a46
[~] stdafx cleanup: PSP should compile without DaedalusTypes.h in stdafx.h now
...
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1699 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-05-19 08:52:22 +00:00
strmnnrmn
5366827789
[~] stdafx cleanup: Start adding DaedalusTypes.h where needed.
...
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1696 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-05-18 16:06:16 +00:00
strmnnrmn
5eec4748c9
[~] stdafx cleanup: Move DAEDALUS_USE to Utility/Macros.h
...
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1693 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-05-18 16:05:49 +00:00
strmnnrmn
9821e04675
[~] Update DAEDALUS_ASSERT and other macros that are compiled out of release builds so that they 'consume' their arguments without generating any code. This removed the need for use() in a lot of places.
...
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1655 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-04-27 16:37:17 +00:00
strmnnrmn
eccb55f70d
[~] Tidy ColourValue.cpp
...
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1646 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-04-27 16:36:23 +00:00
strmnnrmn
f9d90fc7c9
[-] Vector2ColourUnclamped wasn't called
...
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1645 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-04-27 16:36:19 +00:00
Corn
c329fbd011
[!] reverted some unneeded conversions/bloat
...
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1600 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-04-19 20:25:01 +00:00
salvy
581072f5e2
[!] Fixed MSVC warnings
...
[!] Optimization for Sprite2D, only update the counter individually when next command doesn't match
[!] Fixed and optimized guNormalize_Rugrats (Still can't find any game that uses this errg)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1599 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-04-18 22:05:31 +00:00
strmnnrmn
260cd55a7f
[+] Add a FlattenTexture utility function
...
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1551 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-04-12 08:34:06 +00:00
strmnnrmn
68e2f02f40
[~] Add a SysGL/GL.h - use this to ensure glew/glfw headers are included in a consistent order
...
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1541 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-04-07 12:01:59 +00:00
salvy
7692e8e07c
[!] Forgot to define DAEDALUS_GL for OSX
...
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1444 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-26 22:01:33 +00:00
salvy
0f60eae933
[!] Started WIP to get rendering working from GL renderer (some textures show up now, ex texrect!)
...
[!] Compiled project as console app (needed for glfw) [WIP, ALOT things got broken! and huge clean up is needed, will fix them eventually)
Note: glew and glfw are now needed to build W32.
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1443 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-26 21:58:22 +00:00
salvy
c8ac6af830
[!] Fixes to to get OSX (GL rendering) to work under W32
...
Note: libpng15 is now needed to compile W32 build
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1442 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-26 16:18:21 +00:00
strmnnrmn
e3ae6014af
[~] Pass the fopen mode through FileSink::Open
...
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1427 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-25 22:39:09 +00:00
strmnnrmn
eb6bd59f55
[~] Allow a negative pitch to be specified, which writes the png from bottom to top (useful for screenshots)
...
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1421 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-24 22:09:14 +00:00
strmnnrmn
fdff3e47f2
[*] Implement PngSaveImage as a DataSink, and make the filename version create a FileSink
...
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1391 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-24 12:53:06 +00:00
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