Commit Graph

30344 Commits

Author SHA1 Message Date
espes 3d895a7879 s/pgraph_upload_gl_texture/upload_gl_texture/ 2015-08-11 12:12:11 -07:00
espes c3ef6d815b factor pgraph_update_surface 2015-08-11 12:10:36 -07:00
Jannik Vogel 0260b29578 Split GLSL compilation into function 2015-08-11 03:20:44 +02:00
Jannik Vogel 848eaf2b74 Move debug routines and macros to nv2a_debug 2015-08-11 03:20:37 +02:00
Jannik Vogel 725a8e14b6 Move back NV2A_VERTEX_ATTR_* to nv2a.c 2015-08-11 03:17:37 +02:00
Jannik Vogel 4f441ad6e0 Use v0 to v15 instead of custom attribs 2015-08-11 03:17:37 +02:00
Jannik Vogel c9c2ab44ca use ARRAYSIZE 2015-08-11 03:17:37 +02:00
espes 0ad73ef17e Merge pull request #28 from JayFoxRox/compile-fix
Also compile/link nv2a_shaders.c
2015-08-10 15:06:57 -07:00
espes d0cbf2f7e0 Merge pull request #29 from JayFoxRox/copyright
Copyright: JayFoxRox is Jannik Vogel
2015-08-10 15:05:43 -07:00
espes 051a340218 disable debug flags by default 2015-08-10 15:05:13 -07:00
Jannik Vogel ff70038637 Copyright: JayFoxRox is Jannik Vogel 2015-08-11 00:01:08 +02:00
Jannik Vogel 10cc38de7f Also compile/link nv2a_shaders.c 2015-08-10 23:45:01 +02:00
espes 1a7a9534ab pass vertex data between shader stages in a struct 2015-08-10 10:42:46 -07:00
espes 27cf9cd4da split out shader generation from nv2a.c 2015-08-10 09:21:45 -07:00
espes 87060feaac Merge pull request #27 from JayFoxRox/cubemap-and-volume-textures
Cubemap and volume textures
2015-08-09 07:37:50 -07:00
espes f5c27b53cc Merge pull request #19 from JayFoxRox/missing-draw
Improve GL Draw calls and fix DRAW_ARRAYS (+Vertex3f)
2015-08-09 07:31:38 -07:00
Jannik Vogel d80645afa4 Vertex3f support 2015-08-09 04:20:26 +02:00
Jannik Vogel 0e5b4f1eff hacky DRAW_ARRAY merging + faster GL draw calls and more asserts 2015-08-09 04:20:26 +02:00
espes 6ba631b0bc Merge pull request #24 from JayFoxRox/visibility-test
Handle REPORT for visibility-tests
2015-08-08 07:15:50 -07:00
espes 9c69879288 Merge pull request #25 from JayFoxRox/fix-warning
pgraph_apply_anti_aliasing_factor shouldn't return anything
2015-08-08 07:06:18 -07:00
espes 0b2af00e4d Merge pull request #26 from JayFoxRox/framebuffer
Clear framebuffers so we don't have different sizes per attachment
2015-08-08 07:06:02 -07:00
Jannik Vogel 0d4ee8ec2e Volume texture support 2015-08-08 02:14:08 +02:00
Jannik Vogel c96d32e553 New swizzle functions 2015-08-08 02:14:08 +02:00
Jannik Vogel 7b32112df4 Make cubemaps work 2015-08-08 02:14:08 +02:00
Jannik Vogel 49597ca04f pgraph_apply_anti_aliasing_factor shouldn't return anything 2015-08-07 19:49:44 +02:00
Jannik Vogel 609a4cf423 Add FIXME about possible bug with CLEAR 2015-08-07 19:44:16 +02:00
Jannik Vogel 68d0bcde6f Clear framebuffers so we don't have different sizes per attachment 2015-08-07 19:36:23 +02:00
Jannik Vogel 7d9f182fe0 Handle REPORT for visibility-tests 2015-08-07 06:35:46 +02:00
espes 440d0a4ed4 Merge pull request #22 from JayFoxRox/quads
Quads using 4 vertices
2015-07-30 05:53:41 +10:00
espes 1dcaf6b3c4 :/ 2015-07-30 03:32:36 +10:00
espes b13b2d362a Merge pull request #21 from JayFoxRox/renderstates
Add face-culling, frontface and polygon-mode
2015-07-29 08:36:04 +10:00
espes 80ac3f252f Merge pull request #23 from JayFoxRox/anti-aliasing
Very basic anti-aliasing handling
2015-07-29 08:34:56 +10:00
Jannik Vogel 4fc7b1bb7f Very basic anti-aliasing handling 2015-07-28 18:22:59 +02:00
Jannik Vogel 202ede0501 Quads using 4 vertices 2015-07-28 11:25:28 +02:00
Jannik Vogel a440bb322f Add face-culling, frontface and polygon-mode 2015-07-28 02:19:34 +02:00
espes ce947a5458 Merge pull request #20 from JayFoxRox/clamp-vsh-out
Clamp D0,D1,B0,B1 (in VP)
2015-07-27 18:38:42 +10:00
Jannik Vogel 7fc1fdb8fe Clamp D0,D1,B0,B1 2015-07-27 00:06:39 +02:00
espes 24d6d2bdff Merge pull request #17 from JayFoxRox/fix-texture-0x19
Fix texture format SZ_A8 (0x19)
2015-07-24 23:04:18 +10:00
Jannik Vogel ff55f1fe3e Fix texture format SZ_A8 (0x19) 2015-07-24 14:58:00 +02:00
espes 6dbe0d6777 Merge pull request #16 from JayFoxRox/inline-buffer
Working inline buffer
2015-07-21 21:08:48 +10:00
Jannik Vogel d93ef1a731 Better short mapping code 2015-07-21 12:01:37 +02:00
Jannik Vogel e3dfc2e713 Rename inline_buffer_buffer to inline_buffer 2015-07-21 11:55:37 +02:00
Jannik Vogel 3bce85c694 Prefix functions with pgraph_ 2015-07-21 11:55:23 +02:00
espes 522ef6f798 update README 2015-07-19 22:08:50 +10:00
Jannik Vogel e5cf290041 Added short inline-buffers (Untested but asserted) 2015-07-17 15:41:06 +02:00
Jannik Vogel 34ba061b60 Better and complete buffering for the inline-buffers 2015-07-17 13:47:07 +02:00
Jannik Vogel 7802178db7 Finish vertex with generic attributes too 2015-07-17 13:14:29 +02:00
espes d78ba60014 fix uniform name buffer overflows... 2015-07-17 13:49:31 +10:00
espes fe28f90556 GL_CLAMP was removed in gl3 2015-07-17 13:45:58 +10:00
espes 90a37819b8 fix pointer cast warnings 2015-07-17 13:44:17 +10:00