Henrik Rydgård
e2cc226d0d
Just some cleanup of GPU code
2012-12-28 20:54:00 +01:00
Henrik Rydgård
c1041cfff2
Apparently RECTANGLES shouldn't flip that way.
2012-12-26 09:23:15 +01:00
Henrik Rydgård
1b35964445
Add support for rotated UVs of flipped RECTANGLES. Avoid using indexed
...
draws when unnecessary.
2012-12-26 08:54:33 +01:00
Henrik Rydgård
d95dbca9be
Cleanup GPU init/shutdown a bit
2012-12-25 22:42:19 +01:00
Henrik Rydgård
7c64f9c61e
Tiny optimization - only init the vertex decoder on vertex type change
2012-12-25 22:39:37 +01:00
Henrik Rydgård
9dce8b09a4
Move vertex arrays from globals to heap.
2012-12-25 22:39:37 +01:00
Henrik Rydgård
d21647bbb9
Split code from GLES_GPU to TransformDrawEngine, cleanup
2012-12-25 22:39:37 +01:00
raven02
fb3649ea97
Remove flush()
2012-12-24 21:34:02 +08:00
raven02
9af2325be5
Fix massive corrupted graphic in FF Type-0
2012-12-23 22:52:00 +08:00
Henrik Rydgard
6b3ac02dae
Now not flushing at every drawcall by mistake...
2012-12-21 22:52:09 +01:00
Henrik Rydgard
d663e28bde
More work and optimization. Still not quite there.
2012-12-21 21:49:09 +01:00
Henrik Rydgard
3b114eb24a
More work on indexed draws. Not combining yet.
2012-12-21 19:16:17 +01:00
Henrik Rydgard
2e9daa5f89
All drawing is now indexed lists, through IndexGenerator.
2012-12-21 18:46:15 +01:00
Henrik Rydgard
4c23d668e1
Cleanup and reorganize gpu code a little
2012-12-21 16:50:14 +01:00
Henrik Rydgard
19391541fb
HW transform: Fix too-harsh lighting
2012-12-20 23:47:19 +01:00
Henrik Rydgard
79bd4e3d41
Lighting fixes (sw + hw)
2012-12-20 23:28:58 +01:00
Henrik Rydgard
c3b778daab
More work on hw transform.
2012-12-20 18:31:21 +01:00
Henrik Rydgard
4f376a2c34
Hardware vertex transform, preliminary and optional. No lighting yet. Disabled until it works right...
2012-12-20 15:07:58 +01:00
Henrik Rydgard
13460b7aa6
Use flexible vertex formats pre-transform. Saves memory b/w.
2012-12-19 20:21:59 +01:00
Henrik Rydgard
b8d596cbec
Add some infrastructure for flexible vertex formats
2012-12-19 18:35:37 +01:00
Henrik Rydgard
4046146164
Add experimental wireframe mode for debugging. Fix texenv color. Code cleanup.
2012-12-19 15:14:41 +01:00
Henrik Rydgard
ba476264db
Fix GL_ZERO transparencies
2012-12-18 00:02:04 +01:00
Henrik Rydgård
700921deb3
Fix rendering on MacOSX (shader compiler very fussy...). Minor prep for hw transform.
2012-12-05 10:55:06 +07:00
Henrik Rydgard
980d13fe50
Assorted GPU fixes: Advance vertex pointer, fixes missing triangles in SPT. More logging. Separate proj matrices for through and normal mode (through matrix don't need to get updated as often). Some cleanup.
2012-11-28 13:45:22 +01:00
Henrik Rydgard
a74af8f372
Some new NIDs, log fix, very minor bugfix.
2012-11-27 11:40:30 +01:00
Henrik Rydgard
2822ce2737
Temporarily disable most of the viewport code as it broke some games. Kept the flip detection.
2012-11-26 20:38:26 +01:00
Henrik Rydgard
870ea6628b
Reasonably correct viewport handling. Optional debug stats overlay (not always 100% working).
2012-11-26 17:35:08 +01:00
Henrik Rydgard
ec55fac3cd
Float TC coordinates apparently work in through mode. Add one more special case for blending.
2012-11-26 11:34:23 +01:00
Sacha
3c903dda24
Improve portability to future platforms. Make use of new USING_GLES2 define throughout PPSSPP. Also use ARM definition where suitable. Remove some redundancy with includes.
2012-11-26 13:25:14 +10:00
Henrik Rydgard
c0075d8322
Special case for GL_ZERO blend factor too. Don't log on "sync".
2012-11-25 17:48:05 +01:00
Florent Castelli
2f39496ec5
Use ambient material color when no color in the vertex
...
Fixes color in celshading demo
2012-11-25 17:45:50 +01:00
Henrik Rydgard
d0f829353d
Support FIXA and FIXB blend factors as well as possible.
2012-11-25 15:49:37 +01:00
Florent Castelli
4143801891
Handle depth range (zmin, zmax) in a hackish way
2012-11-25 00:15:21 +01:00
Florent Castelli
56175bc505
Defer blend, cull and depth test changes to draw command
...
Avoid unnecessary state changes and reduces the amount of OpenGL calls.
It also puts all the interesting logic at the same place, reducing the
complexity a little.
2012-11-24 15:19:29 +01:00
Henrik Rydgard
d141d205f8
Delete old textures, to prevent memory usage from growing indefinitely.
2012-11-22 23:07:15 +01:00
Henrik Rydgard
e37a1fb1d3
Add internal 2D drawing library that goes through the Ge emulation for portability.
...
To be used for things like sceUtility* and other overlays like FPS and stats.
2012-11-18 13:04:49 +01:00
Henrik Rydgard
423bba5d8d
Some optimization and minor fixes
2012-11-17 15:06:10 +01:00
Henrik Rydgard
ba171c8360
Fix scaling for 16-bit UVs
2012-11-16 17:19:28 +01:00
Henrik Rydgard
4c1ae9e81c
Do indexed draws properly with glDrawElements where possible. Fix sprite culling issue (winding order).
2012-11-16 16:43:16 +01:00
Henrik Rydgard
7c9107030d
Speed up T&L by only transforming/lighting each vertex once, for indexed draws
2012-11-16 16:19:37 +01:00
Henrik Rydgard
e5c6cf965b
Fixes and optimizations to vertex decoding and lighting.
...
Motorcycles are now visible in MotoGP.
2012-11-16 15:16:14 +01:00
Henrik Rydgard
2603c44e46
Actually, double-oops.
2012-11-11 19:07:07 +01:00
Henrik Rydgard
6a350a4704
Umm, oops.
2012-11-11 19:03:48 +01:00
Henrik Rydgard
07e753da9f
Fix skinning bugs, optimize, re-enable a lighting optimization
2012-11-11 19:00:44 +01:00
Florent Castelli
d06b1ae347
Apply the world transform to the skinned vertices
...
Improves rendering of skinning demo.
The end of the tube is wrong and collapses on the origin.
2012-11-11 17:55:16 +01:00
Henrik Rydgard
387552f564
Misc fixes (accept .prx, work on power callbacks, bugs)
2012-11-10 10:15:11 +01:00
Henrik Rydgard
b43dfebb10
Fixes to lighting, display list base pointer, misc
2012-11-09 17:51:45 +01:00
Sacha
41f5abab31
PPSSPP ported to Blackberry10
...
Now builds on Playbook and Dev Alpha
Make emulator more compatible with other OS (case sensitivity, defines, includes)
Uses Android's code paths and backend
2012-11-05 23:09:49 +10:00
Henrik Rydgard
b214a1a1da
Revert "Better wrapper system, and fixed warnings"
...
This reverts commit a00b1855cb
.
Conflicts:
Core/HLE/FunctionWrappers.h
Core/HLE/sceCtrl.cpp
Core/HLE/sceKernelModule.cpp
2012-11-05 10:05:09 +01:00
Henrik Rydgard
6bed1afb72
Merge branch 'master' of https://github.com/artart78/ppsspp into artart78-master
2012-11-04 23:59:26 +01:00