Commit Graph

75 Commits

Author SHA1 Message Date
Hayden Kowalchuk
c741d4d622 feat: add fast path for sq_cpy-able verts 2019-08-14 11:57:00 -04:00
Hayden Kowalchuk
2965df485b fix: minor texture changes for GluBuildMipmaps 2019-08-13 18:17:11 -04:00
Hayden K
11a8736198 feat: add gl EXT handing for mipmap
- comes from gl1.4
- new defines
- expand glTexEnvi
2019-04-17 14:29:50 -04:00
Hayden K
a812fd572e Change to single file 2019-04-15 14:11:17 -04:00
Hayden K
4a9336f584 fix all the previous crap.
holy hell
2019-04-08 09:36:33 -04:00
Hayden K
944f911d41 merge latest to latest gldc 2019-04-08 09:12:45 -04:00
Hayden K
275a2aad30 merge 2019-04-08 09:03:05 -04:00
Hayden K
9aee9fe970 feat: add correct mipmapping
* fixes memory layout and handling
* allows paletted mipmapped textures
2019-04-05 22:15:57 -04:00
Luke Benstead
93311ff12c Fix twiddling code. Fixes #37 2019-03-29 07:54:50 +00:00
Hayden K
ef5b033b3a fix texture twiddle 2019-03-27 19:19:30 -04:00
Hayden K
61f9ff5122 merge upstream 2019-03-13 12:17:43 -04:00
Luke Benstead
724ff628aa Fix some signedness issues 2019-03-13 15:14:09 +00:00
Luke Benstead
8b206f012e Make sure we correctly initalize the used banks 2019-03-13 12:05:06 +00:00
Hayden K
21ccc32bc0 merge latest kazade changes 2019-03-13 07:21:57 -04:00
Hayden K
20ac4e5480 remove junk 2019-03-13 07:11:32 -04:00
Hayden K
b301f51bd9 final finishing touches. DEPRECRATE Reserve*List funcs 2019-03-13 07:01:58 -04:00
Hayden K
edbff32340 - changes to allocation and mem mgmt
- Replace some mem* functions with store queues
- fix capacity of AlignedVector to 32 intervals
- turn profiler fully compile only
2019-03-12 23:47:54 -04:00
Hayden K
bfc9c838f9 replace call with define, only 1 code path to manage 2019-03-12 18:43:40 -04:00
Hayden K
e7d3364ffc Change int to enum to avoid signed issues 2019-03-12 18:38:40 -04:00
Hayden K
e472ddf8d1 merge master 2019-03-11 15:35:06 -04:00
Luke Benstead
957ebfa662 Fix texture twiddling 2019-03-11 19:14:30 +00:00
Luke Benstead
588c082ec8 Allow specifying palette, autosort, memory options via glKosInitEx 2019-03-11 19:07:59 +00:00
Luke Benstead
8f26e9c364 Fix a bug in the morton_index function 2019-03-11 09:12:48 +00:00
Hayden K
ba211c3a50 General merge and repair
- Fix defines
- Fix POLYGON logic
- change static func names to macro
- Fix checkEnum
2019-03-10 21:02:24 -04:00
Luke Benstead
e4186a05bf Start working on a test for GL_ALPHA_TEST 2019-03-10 19:38:47 +00:00
Luke Benstead
1807a0119c Add some missing function stubs 2019-03-10 12:19:45 +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
516cae7893 Store palettes in RAM not VRAM 2019-03-08 21:36:53 +00:00
Luke Benstead
d7342fa0c0 Automatically twiddle non-twiddled palette data 2019-03-07 21:21:30 +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
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
111d4ca83e Handle calling glBindTexture on an unknown name 2019-02-27 20:45:53 +00:00
Luke Benstead
f6af3ab3fb Implement new conversion 2019-02-27 20:11:14 +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
6d2c47bda1 Implement GL_EXT_shared_texture_palette 2019-02-21 21:58:31 +00:00