jnmartin84
459dd31c52
mirrored repeat param should only alter mirrored repeat state
2025-07-16 17:00:41 -04:00
jnmartin84
d073592943
sorry, I was wrong about the clamp state for MIRRORED_REPEAT
2025-07-16 16:49:30 -04:00
jnmartin84
7ff32cec48
clear clamp when setting mirrored repeat
2025-07-13 01:07:49 -04:00
jnmartin84
0cd447dbcf
don't waste a full byte on mirror/flip setting
...
moved MIRROR bits into bits 2 and 3 of what used to be `uv_clamp` member of TextureObject
renamed `uv_clamp` member to `uv_wrap`
updated and commented code accessing `uv_wrap` for both clamp and mirror settings
2025-07-13 00:16:43 -04:00
jnmartin84
708566af72
initial support for GL_MIRRORED_REPEAT
2025-07-12 12:07:04 -04:00
Luke Benstead
f09760dda3
Merge branch 'tnl_effects' into 'master'
...
Add support for texture and colour matrices
See merge request simulant/GLdc!157
2025-05-24 20:19:01 +00:00
UnknownShadow200
b4f2a80a0b
Optimise twiddle index calculation
2025-04-12 10:46:09 +10:00
T_chan
ca8ebf7fc0
Change all ifdefs to support both DC & Naomi
2025-02-22 14:42:00 +01:00
UnknownShadow200
0e112ffb3c
Merge branch 'master' into tnl_effects
2025-02-22 22:35:41 +11:00
UnknownShadow200
2669a9266f
When texture validation fails, log reason why using INFO_MSG
2025-02-22 10:08:55 +11:00
GPF
af460af119
Recreated glCompressedTexSubImage2D implementation
2025-02-04 14:27:18 -07:00
GPF
f7830df480
removed the commented out debug printing
2024-12-07 16:24:05 -07:00
GPF
553f6016f3
Only initialize the texture buffer with zeros if it's a partial update
2024-10-15 12:11:17 -07:00
GPF
b44dddbaff
removed some unneeded code
2024-10-15 12:04:17 -07:00
GPF
4adf11543b
fixed the case where xoffset and yoffset !=0 in glTexSubImage2D
2024-10-15 11:25:56 -07:00
GPF
a11847e513
update for glTexSubImage2D, now checks the active texture size and not the subimage size to draw the glTexSubImage2D pixelas into drawing with the xoffset and yoffset into the existing POT2 texture, so subimage size doesn't need to be a POT2.
2024-10-14 13:26:17 -07:00
GPF
72136bb7f5
quick implementation of glTexSubImage2D/_glTexSubImage2DValidate, update to nehe06 example to show usage of glTexSubImage2D, and a compile issue to primitive_modes fixed.
2024-10-13 12:58:09 -07:00
UnknownShadow200
6f0acd5218
Only check whether twiddle table needs updating once instead of every pixel
...
Based on checking disassembly output in Release mode
2024-10-04 22:11:42 +10:00
UnknownShadow200
5f28cae804
Tidy up textures table and add some missing formats
2024-09-04 21:26:46 +10:00
Bkacjios
f06c72ff14
Should be GL_BGRA
2024-04-27 11:05:40 -04:00
Bkacjios
0facbd16b2
Add conversion from argb1555 to argb4444
2024-04-27 09:53:03 -04:00
Luke Benstead
9f3f638a46
Add missing conversion, fixes #77
2024-01-16 22:05:43 +00:00
darc
c314a0ec3a
Fix GLdc failing to build on GCC 9.x
2023-12-18 18:53:37 -06:00
Luke Benstead
2b3c083de3
Fix issue with texture twiddling and RGB565 untwiddled textures
2023-11-29 11:25:32 +00:00
Luke Benstead
d054dde785
Fix paletted texture glitch
2023-09-12 21:11:05 +01:00
Luke Benstead
00b4468928
Remove unused function
2023-09-11 20:42:09 +01:00
Luke Benstead
43d64a4957
Fix twiddling issues
2023-09-11 17:27:04 +01:00
Luke Benstead
61e5a7a2a6
More twiddling work
2023-09-10 19:41:25 +01:00
Luke Benstead
3308a57e59
Implement defragmenting the memory
2023-09-08 17:49:46 +01:00
Luke Benstead
6eb079228e
Fix infinite loop
2023-09-06 21:01:37 +01:00
Luke Benstead
7ce01ad93f
Fix up paletted textures
2023-09-06 08:01:01 +01:00
Luke Benstead
e5a4f4f716
Continue fixing up paletted texture issues
2023-09-03 21:12:11 +01:00
Luke Benstead
4d39e19ed5
Start repairing paletted textures
2023-09-02 21:10:42 +01:00
Luke Benstead
5e7b33797d
Perf improvements and fixes
2023-09-01 20:25:27 +01:00
Luke Benstead
4b47f6878f
Remove yalloc
2023-09-01 08:34:48 +01:00
Luke Benstead
3248499d5a
Switch to the new allocator
2023-08-31 21:21:14 +01:00
Luke Benstead
77531ca347
Drastically refactor glTexImage2D
2023-08-26 20:34:11 +01:00
Luke Benstead
026bdeff09
Fix infuriating memory corruption bug
2023-05-20 07:47:39 +01:00
Luke Benstead
d81472ef57
Liberally assert stuff
2023-05-17 20:39:58 +01:00
Luke Benstead
462eb40d7a
Fix bugs in texture deletion
2023-05-17 20:39:49 +01:00
Luke Benstead
c4c0bf4239
Fix an off-by-one error
2023-05-17 20:39:27 +01:00
Luke Benstead
9037d157d5
Clean up
2023-05-17 20:38:21 +01:00
Luke Benstead
52a0215ed8
Make sure we initialize texture 0. We don't actually use it yet
...
(binding zero disables texturing) but I believe the spec says that
texture 0 is the "default texture" and is an actual texture object.
2023-05-17 20:36:59 +01:00
Luke Benstead
a5891056db
Many bug fixes and optimisations
2023-05-16 13:31:44 +01:00
Luke Benstead
300f2a611e
Optimise state management
2023-03-17 20:40:45 +00:00
Luke Benstead
b08bbebf12
Mipmap fix
2023-03-05 20:26:15 +00:00
Luke Benstead
8fff6ee1aa
Treat GL_CLAMP_TO_EDGE the same as GL_CLAMP
2022-12-09 20:17:46 +00:00
Luke Benstead
6be3e6185d
Faster inversion
2022-09-14 19:20:24 +01:00
Luke Benstead
0b62ac8673
Clean ups and optimisations
2022-08-25 21:24:08 +01:00
Luke Benstead
9a50917062
Fix rgba vs argb inversion
2022-05-21 20:16:34 +01:00