2e47daaa31
(rebased) experimental support for parsing from a float16 mesh (or a float32-quantized-as-ushort mesh)
2025-08-03 21:49:46 -05:00
Luke Benstead
a4fb80c279
Merge branch 'mirrored_repeat' into 'master'
...
Mirrored repeat should not touch clamp state.
See merge request simulant/GLdc!164
2025-07-16 21:12:10 +00:00
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
Luke Benstead
58bfdd1fb2
Merge branch 'falco_sketchy_double_clipping' into 'master'
...
Changed fabs() to fabsf() within glClipEdge().
See merge request simulant/GLdc!163
2025-07-15 16:08:06 +00:00
Falco Girgis
7f2fb41122
Changed fabs() to fabfs() within glClipEdge().
2025-07-15 10:01:47 +00:00
Luke Benstead
6619c3d397
Merge branch 'mirrored_repeat' into 'master'
...
Implement GL_MIRRORED_REPEAT support
See merge request simulant/GLdc!162
2025-07-13 06:01:49 +00: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
Luke Benstead
130ccc4f5d
Merge branch 'master' into 'master'
...
Fix compiler ICE with double-to-float macro conversion
See merge request simulant/GLdc!160
2025-05-24 20:18:23 +00:00
bruceleeto
dccc26d532
Fix compiler ICE with double-to-float macro conversion
2025-05-24 05:32:04 +01:00
Luke Benstead
0057076958
Merge branch 'twiddle_optim' into 'master'
...
Optimise twiddle index calculation
See merge request simulant/GLdc!159
2025-04-12 05:59:35 +00:00
UnknownShadow200
b4f2a80a0b
Optimise twiddle index calculation
2025-04-12 10:46:09 +10:00
Luke Benstead
dfeb32c609
Merge branch 'misc_fixes' into 'master'
...
Some small fixes
See merge request simulant/GLdc!158
2025-03-31 10:53:41 +00:00
UnknownShadow200
cf3a29e097
Fix clipped triangle in THIRD_VISIBLE case producing vertices in wrong direction, which would result in them being culled when face culling was enabled
2025-03-31 21:12:05 +11:00
UnknownShadow200
135f4c58c5
Fix gluBuild2DMipmaps not returning a value
2025-03-31 21:08:53 +11:00
Luke Benstead
8d6435d9dc
Merge branch 'full_naomi_compat' into 'master'
...
Change all ifdefs to support both DC & Naomi
See merge request simulant/GLdc!154
2025-03-01 19:27:12 +00:00
T_chan
ca8ebf7fc0
Change all ifdefs to support both DC & Naomi
2025-02-22 14:42:00 +01:00
UnknownShadow200
6ce38521c9
Fix tnl_effects sample not working at all on native desktop OpenGL
2025-02-22 22:41:49 +11:00
UnknownShadow200
0e112ffb3c
Merge branch 'master' into tnl_effects
2025-02-22 22:35:41 +11:00
Luke Benstead
0285e2027d
Merge branch 'sketchy_vertex_formats' into 'master'
...
Implemented support for all vertex attribute fmts.
See merge request simulant/GLdc!156
2025-02-22 08:23:38 +00:00
Luke Benstead
6bd42b87b9
Merge branch 'fog_fix' into 'master'
...
Fixed OpenGL Fog implementation + Added New Sample
See merge request simulant/GLdc!155
2025-02-22 08:23:16 +00:00
Luke Benstead
d630041cc8
Merge branch 'glCompressedTexSubImage2D-recreated' into 'master'
...
creates new GLext function glCompressedTexSubImage2D, updated nehe_06_vq.elf sample to use the new function.
See merge request simulant/GLdc!147
2025-02-22 08:21:10 +00:00
Luke Benstead
5af0d5831d
Merge branch 'fix_glRotatef' into 'master'
...
Call fsincos with angle degrees instead of passing in radians
See merge request simulant/GLdc!153
2025-02-22 08:20:21 +00:00
David Reichelt
32e3f4374e
Call fsincos with angle degrees instead of passing in radians
2025-02-22 08:20:21 +00:00
UnknownShadow200
ff942e804e
Add texture/color matrix sample
2025-02-22 10:52:09 +11:00
UnknownShadow200
2669a9266f
When texture validation fails, log reason why using INFO_MSG
2025-02-22 10:08:55 +11:00
UnknownShadow200
e3f61f3c78
Initial work on texture and colour matrix support
2025-02-22 09:33:08 +11:00
UnknownShadow200
ebdb454a75
Simplify T&L effect code
2025-02-22 08:46:58 +11:00
UnknownShadow200
9ca7c002be
Slightly optimise matrix code to a single pointer lookup
2025-02-22 08:17:56 +11:00
UnknownShadow200
5e2ea81593
Avoid lighting unless needed
2025-02-22 07:40:12 +11:00
UnknownShadow200
93c81739ba
WIP on a separate T&L effects file
2025-02-22 06:43:44 +11:00
Falco Girgis
70e0d503a9
Fixed incorrect alpha vertex color value.
...
- _readColorXXXARGB() macros were being passed the incorrect input index
for the alpha channel from the outer macros, fixed.
- Thanks for finding it, UnknownShadow200!
2025-02-19 13:03:05 -06:00
Falco Girgis
b09e630304
Implemented support for all vertex attribute fmts.
...
1) GLdouble was incorrectly being treated as GLfloat which is now broken
with -m4-single as default. Fixed.
2) Implemented all missing double-precision vertex attribute reader
functions.
3) Implemented all missing vertex reader/extracter functions for
unsigned/signed ints and unsigned/signed shorts.
4) Added (void) argument lists to every function missing them.
- Not the same as accepting no arguments in C, as with C++.
5) Added KOS's __restrict to software.h so it can be used in common code.
2025-02-19 08:54:21 -06:00
Falco Girgis
5466dc227f
Tenth time is a charm!
2025-02-18 22:09:48 -06:00
Falco Girgis
643685a7b7
ifdef-ing more DC-specifics from Nehe16
...
- Attempting to fix build.
2025-02-18 22:04:49 -06:00
Falco Girgis
d2eb58d7e8
Moved DC include into #ifdef to fix x86 build.
2025-02-18 22:00:46 -06:00
Falco Girgis
56f5b24d85
Fixed OpenGL Fog implementation + Added New Sample
...
- Redid fog.c OpenGL fog back-end implementation
* only reconfigure fog values when changed
* properly clamp between 0.0f and 1.0f colors
* error out on negative densities
* separate fog statics became single struct
- Added Nehe16 example (adapted from KGL)
* Made spinning much faster (so you can see it better)
* fixed a few issues with KGL code (invalid GL enums, lol)
* swapped to new controller API
* added #ifdef for non-DC file paths
2025-02-18 21:52:19 -06:00
Luke Benstead
e71560f31b
Merge branch 'platform_h_support_Naomi' into 'master'
...
platform.h: support Naomi again
See merge request simulant/GLdc!150
2025-02-09 20:21:51 +00:00
Luke Benstead
388df1d1d5
Merge branch 'cherry-pick-52011fe9' into 'master'
...
Add support for glGetIntegerv(GL_MATRIX_MODE, ...)
See merge request simulant/GLdc!152
2025-02-09 19:21:53 +00:00
David Reichelt
08b2d58b4e
Add support for glGetIntegerv(GL_MATRIX_MODE,...)
...
(cherry-picked from commit 52011fe9efeb2e997637876be8a3f600bf91df25)
Co-authored-by: David Reichelt <freakdave@hotmail.com>
2025-02-09 19:13:38 +00:00
David Reichelt
810d0fdc19
Merge branch GLdc:master into master
2025-02-09 19:00:07 +00:00
Luke Benstead
787b873674
Merge branch 'lighting_fix' into 'master'
...
Fix lighting using some values calculated for last vertex, instead of the current vertex
See merge request simulant/GLdc!151
2025-02-08 07:07:59 +00:00
UnknownShadow200
b7ac22ec34
Fix lighting using some values calculated for last vertex, instead of the current vertex
2025-02-08 12:23:43 +11:00
T_chan
72f11428d3
platform.h: support Naomi again
2025-02-05 20:29:21 +00:00
Troy Davis
9d2c1fb3e8
Merge branch GLdc:master into glCompressedTexSubImage2D-recreated
2025-02-05 18:00:14 +00:00
Luke Benstead
84281ca329
Merge branch 'depthsample_fix' into 'master'
...
Depthsample fix
See merge request simulant/GLdc!148
2025-02-05 17:47:57 +00:00
Luke Benstead
d3b8b89d47
Merge branch 'gluPerspective' into 'master'
...
fixed gluPerspective to use GLdouble instead of GLfloat for m4-single compilation.
See merge request simulant/GLdc!149
2025-02-05 17:47:29 +00:00