Commit graph

962 commits

Author SHA1 Message Date
strmnnrmn
2124d090e0 [~] Fix OSX warnings
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1649 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-04-27 16:36:41 +00:00
strmnnrmn
17eaff6696 [~] FillChecker is unused
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1648 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-04-27 16:36:31 +00:00
salvy
593e7115f5 [~] Fixed assert, also removed misleading comment since issue was index buffer was too small which been fixed
[!] Use integers for TexRect_Last_Legion

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1614 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-04-26 07:44:52 +00:00
salvy
bfda2d99b0 [!] Fixed sky in glover and tearing in flying dragon (Note: Sky needs work, while is displayed correctly now, in unscaled mode goes offscreen)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1601 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-04-22 07:49:14 +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
salvy
8db83457a6 [!] Fixed Glover crashing in W32 build
[!] Fixed speed sync in Glover
[~] Removed DLParser_SetTImg_SOTE/DL, they are no longer needed

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1583 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-04-15 03:53:36 +00:00
strmnnrmn
6dee6e84c0 [-] Strip out a load of unused debug console cruft
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1566 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-04-12 09:24:36 +00:00
strmnnrmn
19114ebe39 [!] GetTextureDimension should look at clamp_s/clamp_t too
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1552 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-04-12 08:35:06 +00:00
Corn
292ef28e08 [!] Make TexRectFlip also use integers in DLparser
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1544 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-04-08 19:05:05 +00:00
salvy
0801ac4ed2 [!] Moved W32 audio thread back to main thread (was causing various issues, it would be nice to get it working though)
[!] Fixed issue in pixel shader that was affecting my video card (Thx StrmnNrmn)
[!] Copy n64.psh to build dir (W32)

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1543 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-04-08 01:43:40 +00:00
Corn
69a757ffdb [!] do TexRect calculations in integer mode
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1542 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-04-07 18:43:22 +00:00
strmnnrmn
7d15afb0bf [~] Add some comments for othermode flags
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1534 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-04-07 11:29:26 +00:00
strmnnrmn
fcc2a59778 [+] Lots of pixel shader iteration. Mostly 'perfect' now, still some problems with bilinear filtering on Mario Kart, California Speed
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1533 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-04-07 11:29:20 +00:00
strmnnrmn
40370e86ee [~] Runtime toggle for emulating mirroring via the texture.
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1532 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-04-07 11:29:12 +00:00
strmnnrmn
6a10ac65f5 [*] Pass integer texture coords through to TexRect and TexRectFlip. For OpenGL, the shader now also passes the texture offset/scale as integer args
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1531 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-04-07 11:29:02 +00:00
strmnnrmn
f93a375049 [~] Pass integer texture coords to the OpenGL renderer.
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1530 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-04-07 11:28:51 +00:00
strmnnrmn
b359dc1c1f [~] Remove mAlphaThreshold - this is just the blend colour alpha
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1527 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-04-07 11:28:31 +00:00
strmnnrmn
c8fca866b2 [~] Add a couple of comments to highlight fall-through in switch statements
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1526 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-04-07 11:28:23 +00:00
strmnnrmn
df8cb86d4d [~] Use stdint.h for all types.
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1520 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-04-05 09:23:02 +00:00
strmnnrmn
76c721ebf8 [~] Increment current_instruction_count after checking instruction_limit - now what's displaying in the dldebugger is actually applied.
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1517 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-04-05 09:17:26 +00:00
strmnnrmn
ae6a33fb87 [~] Don't bother storing mTexShift - just look it up using mActiveTile index as needed
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1515 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-04-05 09:17:13 +00:00
strmnnrmn
8b1e304f22 [!] Fix texrect on Super Smash Bros
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1510 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-04-04 10:49:58 +00:00
strmnnrmn
9c83d36e2e [~] Keep track of which tile is bound to slot 0/1
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1509 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-04-04 10:49:51 +00:00
strmnnrmn
82486a7f25 [!] Fix Zelda spinny N intro - T1 textures were being loaded with dimensions of 32x0, 1x32 etc
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1507 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-04-04 10:49:37 +00:00
strmnnrmn
9918fd3b5b [~] Move the 'even left' assert to LoadTile - this is the point it would be significant (tile SL/TL can be changed between load and render to translate tiles
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1506 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-04-04 10:49:30 +00:00
salvy
38da6cd456 [~] Opps gGeometryMode has to be global (sorry!)
[!] Added blender for Donald Duck (W32/OSX)
[~] Some small changes

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1502 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-04-01 05:32:31 +00:00
salvy
58216d067f [~] gGeometryMode can be local (saves quiet bit of ops)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1501 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-04-01 04:00:16 +00:00
strmnnrmn
78dbaece5e [~] Pass the displaylist depth through to DL_BEGIN_INSTR - use it to indent the output nicely
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1492 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-31 09:45:29 +00:00
salvy
f808f72cee [~} More clean ups
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1491 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-31 04:52:43 +00:00
strmnnrmn
be4b36f0b4 [~] Move FillColour and BlendColour to BaseRenderer. Going to use these in the dLDebugger
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1488 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-30 15:11:34 +00:00
strmnnrmn
f81780b098 [~] Tidy up DLParser_ProcessDList a little - the DL_ macros are no-ops when DAEDALUS_DEBUG_DISPLAYLIST is not set, so move a block of logic outside the ifdefs.
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1487 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-30 15:11:26 +00:00
strmnnrmn
efc7427cd0 [~] Seems a bit lame to only check that the DList PC is in bounds when the Display list debugger is running. Just assert in the fetch function
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1486 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-30 15:11:20 +00:00
strmnnrmn
9d69fdce4c [~] DLDebug - add separate functions to DLDebugOutput to track the beginning/end of each instruction. On the webdebug version we wrap each instruction in a named span so we can identify it easily. Also, I removed the PC arg from the regular DL dump because it was always given the same value (I think it should have been gDlistStack.address[gDlistStackPointer], but it's not particularly useful and clutters the dump output)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1485 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-30 15:11:13 +00:00
strmnnrmn
ea528cdbba [~] Add a DLDebugOutput class. I'm going to override this so that the webdebug version can wrap individual instructions in HTML tags.
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1484 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-30 15:11:03 +00:00
strmnnrmn
dec9abfd9d [~] current_instruction_count was being incremented too early
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1483 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-30 15:10:52 +00:00
strmnnrmn
c8c9581251 [+] Add another DL_PF macro which doesn't automatically append newlines
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1482 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-30 15:10:45 +00:00
strmnnrmn
ca48a42999 [+] Rewrite DLDebug_DumpRDPOtherMode so that we can see the settings that were actually applied. Without this the code just dumps the entire othermode state every time a single setting is changed, which makes the debug output hard to follow
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1479 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-30 10:21:03 +00:00
strmnnrmn
8154cf34e9 [~] Add accessors for prim/env/fog colours
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1478 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-30 10:20:56 +00:00
strmnnrmn
53891779bf [~] Rename MAX_VERTICES to kMaxIndices. Rename m_swIndexBuffer to mIndexBuffer.
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1477 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-30 10:20:49 +00:00
strmnnrmn
6776cc0d9e [!] Fix a broken assert in AddTris
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1476 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-30 10:20:42 +00:00
strmnnrmn
ed1fdd8f5e [~] Change some construction init to assignment init (functionally equivalent, but allows for a bit more whitespace around the variable name, which improves readability)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1475 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-30 10:20:36 +00:00
strmnnrmn
654f79cad9 [~] Rename MAX_VERTS to kMaxN64Vertices
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1474 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-30 10:20:29 +00:00
strmnnrmn
2b84834976 [~] Rename NUM_N64_TEXTURES to kNumBoundTextures
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1473 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-30 10:20:23 +00:00
strmnnrmn
7679300590 [+] dldebugger iteration. Serve a regular html file for most of the content - it's far to fiddly to build dynamically. Remove an unnecessary mutex - webby request handling is single threaded. Serve the mux
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1471 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-30 10:20:08 +00:00
salvy
e8839f51c1 [!] Fixed primdepth for W32/OSX (Thnx Corn)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1460 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-28 07:18:51 +00:00
strmnnrmn
ab9603ebcc [*] Refactor DisplayListDebugger code so that it doesn't rely on quite so much global state being maintained in DLParser. Keep the global state closer to there it's used. Tested the PSP build and the debugger seemed to still work ok to me - let me know if I broke anything
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1453 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-27 22:07:28 +00:00
salvy
1fbd688b34 [~] Fixed PSP build
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1447 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-27 20:50:58 +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