Commit Graph

387 Commits

Author SHA1 Message Date
Luke Benstead
7512c1e767 Fix GL_ALPHA_TEST sample 2019-03-10 19:59:34 +00:00
Luke Benstead
e4186a05bf Start working on a test for GL_ALPHA_TEST 2019-03-10 19:38:47 +00:00
Luke Benstead
04dab8da9a Implement glAlphaFunc and glEnable(GL_ALPHA_TEST) 2019-03-10 17:53:58 +00:00
Luke Benstead
25bd3aedc8 Increase the max polygon size to 32 2019-03-10 16:10:59 +00:00
Luke Benstead
3e54b0298e Add thanks to Hayden Kowalchuk in the readme 2019-03-10 12:32:22 +00:00
Luke Benstead
91c3b66d73 Add GL_MODELVIEW_MATRIX as an option to glGetFloatv 2019-03-10 12:30:39 +00:00
Luke Benstead
b00b65af54 Fix issues with triangle fans / polygons 2019-03-10 12:24:27 +00:00
Luke Benstead
1807a0119c Add some missing function stubs 2019-03-10 12:19:45 +00:00
Luke Benstead
3fbb655758 Merge branch 'palette-slots' into 'master'
Palette slots

Closes #28

See merge request simulant/GLdc!35
2019-03-10 11:31:51 +00:00
Luke Benstead
259a82e69f Add support for multiple shared palettes 2019-03-10 11:18:56 +00:00
Luke Benstead
864dc45d10 Allocate palette slots on a FIFO basis 2019-03-09 14:32:50 +00:00
Luke Benstead
4d6cea59b7 Increase the max texture count 2019-03-08 21:38:39 +00:00
Luke Benstead
516cae7893 Store palettes in RAM not VRAM 2019-03-08 21:36:53 +00:00
Luke Benstead
ac3ffb9ce0 Make the binary symbols more compatible 2019-03-08 21:36:53 +00:00
Hayden K
5eea65c31f Fixes for rendering and new samples to test 2019-03-08 15:32:29 -05:00
Hayden K
4e29678866 Updates and Fixes for comparable execution on pc 2019-03-07 19:49:24 -05:00
Luke Benstead
dc6b067e58 Merge branch '35-fix-polygons' into 'master'
Fix drawing polygons. Fixes #35

Closes #35

See merge request simulant/GLdc!33
2019-03-07 21:45:46 +00:00
Luke Benstead
df3cdf0ebb Fix drawing polygons. Fixes #35 2019-03-07 21:41:25 +00:00
Luke Benstead
d7342fa0c0 Automatically twiddle non-twiddled palette data 2019-03-07 21:21:30 +00:00
Hayden K
a124fa7ab2 remove junk, fix warnings 2019-03-06 14:20:11 -05:00
Hayden K
ec602f2d70 fixes 2019-03-06 13:58:16 -05:00
Hayden K
375073416a Merge branch 'master' of gitlab.com:simulant/GLdc 2019-03-06 13:57:46 -05:00
Luke Benstead
3e1ed8a5f7 Don't reserve more space than we need 2019-03-06 08:31:06 +00:00
Hayden K
c7526ea5b7 Merge branch 'master' of gitlab.com:simulant/GLdc 2019-03-04 20:13:58 -05:00
Hayden K
aa966504d2 change texture count 2019-03-04 20:13:55 -05:00
Luke Benstead
2ac9cac22d Use the shared palette in the sample 2019-03-04 20:56:17 +00:00
Luke Benstead
d89997a277 Simplify the element drawing 2019-03-04 20:41:33 +00:00
Hayden K
d79b044b73 Merge branch 'master' of gitlab.com:simulant/GLdc 2019-03-04 10:11:12 -05:00
Luke Benstead
7c0a123aac Correctly initialize the shared palette. Fixes #34 2019-03-04 08:44:19 +00:00
Luke Benstead
efa63ebff2 Don't apply the shared palette if it hasn't been specified yet. Fixes #34 2019-03-04 08:42:24 +00:00
Hayden K
58f3c2633c Merge branch 'master' of gitlab.com:simulant/GLdc 2019-03-03 15:48:47 -05:00
Luke Benstead
11bb588279 Make sure we reupload the palette if it's changed by glColorTableEXT 2019-03-03 20:21:42 +00:00
Hayden K
daef7f4e01 Merge branch 'master' of gitlab.com:simulant/GLdc 2019-03-03 15:03:16 -05:00
Hayden K
c610d7c15a a 2019-03-03 15:03:12 -05:00
Luke Benstead
526b1f0d16 Add some assertions 2019-03-03 19:49:28 +00:00
Luke Benstead
ba4fde3975 Fix depth funcs 2019-03-03 19:41:19 +00:00
Luke Benstead
44ca14bcbd Add assertions 2019-03-03 19:11:53 +00:00
Hayden K
19ab4ee47b merge changes 2019-03-03 14:10:37 -05:00
Hayden K
3553fdf19d changes 2019-03-03 14:08:16 -05:00
Luke Benstead
5f7fef2cf9 Prefix non-static private functions with '_gl' 2019-03-03 19:06:01 +00:00
Luke Benstead
926214bd82 Prefix some non-static private functions with '_gl' 2019-03-03 19:02:25 +00:00
Luke Benstead
2382126603 Make palette binding lazy 2019-03-03 18:56:18 +00:00
Luke Benstead
ef06af793a Don't apply the color table unless a texture is bound 2019-03-03 18:54:25 +00:00
Luke Benstead
3c3018450f Support twiddled and non-twiddled paletted textures 2019-03-03 18:49:33 +00:00
Luke Benstead
d12032c961 Store palette data in PVR ram 2019-03-03 18:49:06 +00:00
Luke Benstead
f349cd1b49 Fix packing order issue (thanks @mrneo240!) 2019-03-03 18:48:50 +00:00
Luke Benstead
cf273eab42 Add glTexParameterf (thanks @mrneo240) 2019-02-28 19:21:16 +00:00
Luke Benstead
b0c9ac7207 Remove zero special casing from named array 2019-02-28 18:33:37 +00:00
Luke Benstead
31ed419dfa Don't allow zero as a valid texture ID 2019-02-28 18:28:55 +00:00
Hayden Kowalchuk
4dadbcb20d Merge branch 'master' of gitlab.com:simulant/GLdc 2019-02-28 10:30:57 -05:00