Commit Graph

263 Commits

Author SHA1 Message Date
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
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
Luke Benstead
3e1ed8a5f7 Don't reserve more space than we need 2019-03-06 08:31:06 +00: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
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
Luke Benstead
11bb588279 Make sure we reupload the palette if it's changed by glColorTableEXT 2019-03-03 20:21:42 +00: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
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
Luke Benstead
6189f8d671 Merge branch 'implement-glGetFloatv' into 'master'
Add stub with just GL_PROJECTION_MATRIX supported

See merge request simulant/GLdc!32
2019-02-28 08:49:42 +00:00
Luke Benstead
02937ccd2c Add stub with just GL_PROJECTION_MATRIX supported 2019-02-28 08:46:13 +00:00
Luke Benstead
3345e17e3c Fix marker indexing 2019-02-28 08:34:32 +00:00
Luke Benstead
11b26c78d5 Fix an off-by-one error 2019-02-28 06:37:18 +00:00
Luke Benstead
0d460afa82 Merge branch '30-fix-bind-texture' into 'master'
Handle calling glBindTexture on an unknown name

Closes #30

See merge request simulant/GLdc!31
2019-02-27 20:48:19 +00:00
Luke Benstead
111d4ca83e Handle calling glBindTexture on an unknown name 2019-02-27 20:45:53 +00:00
Luke Benstead
e34f7e6368 Merge branch '32-narrow-to-rgb' into 'master'
Implement new conversion

Closes #32

See merge request simulant/GLdc!30
2019-02-27 20:35:01 +00:00
Luke Benstead
f6af3ab3fb Implement new conversion 2019-02-27 20:11:14 +00:00
Luke Benstead
b76dd102f7 Merge branch 'enable-ci' into 'master'
Add GitLab CI file

Closes #31

See merge request simulant/GLdc!29
2019-02-27 20:02:50 +00:00
Luke Benstead
86a921da25 Add GitLab CI file 2019-02-27 19:33:25 +00:00
Luke Benstead
920fc2b782 Increase the max number of textures to 512. Add config.h for settings like this. Fixes #29 2019-02-25 08:30:02 +00:00
Luke Benstead
7368f5c290 Add GL_SHARED_TEXTURE_PALETTE_EXT as a valid target to glColorTableEXT. Fixes #27 2019-02-25 08:26:04 +00:00
Luke Benstead
c3cd3b936c Add definition of GL_INTENSITY 2019-02-23 21:29:45 +00:00
Luke Benstead
cdd2447e07 Merge branch 'GL_EXT_shared_texture_palette' into 'master'
Implement GL_EXT_shared_texture_palette

See merge request simulant/GLdc!28
2019-02-21 21:59:58 +00:00
Luke Benstead
6d2c47bda1 Implement GL_EXT_shared_texture_palette 2019-02-21 21:58:31 +00:00
Luke Benstead
3d5b257e1b Merge branch 'ext-paletted-texture' into 'master'
Initial implementation of GL_EXT_paletted_texture

See merge request simulant/GLdc!26
2019-02-21 21:29:42 +00:00
Luke Benstead
50f1e277d8 Merge branch 'master' into ext-paletted-texture 2019-02-21 21:26:23 +00:00
Luke Benstead
464c12cfc5 Disable mipmap filtering on the paletted texture sample 2019-02-21 21:22:39 +00:00
Luke Benstead
571438ef4e Implement glColorTableEXT 2019-02-21 20:35:18 +00:00
Luke Benstead
8efd678da0 Update README 2018-10-21 10:11:45 +01:00
Luke Benstead
b9f8fe4a4d Clean up the memalign switching a bit 2018-10-18 09:54:34 +01:00
Luke Benstead
78f5fc698a
Merge pull request #27 from mrneo240/master
Minor Changes to allow windows to cleanly compile
2018-10-18 09:45:44 +01:00