Falco Girgis
49f2f0917b
Nehe20 Build Fix + Warnings cleanup for GCC14.1.0.
...
Newest toolchain is bitchier, so I wanted to go ahead and clear up all
of the warnings from building GLdc and the various examples...
1) Set CMake CXX standard to 14 instead of 11, since CXXFLAGS were
enforcing that language standard anyway.
2) Fixed a bunch of strict aliasing violations in immediate.c: glVertex3f.
3) Removed or commented out lots of unused variables.
4) Fixed some "suggested inner braces on initializer" crap.
5) Fixed a bunch of signed vs unsigned pointer assignments.
6) Fixed several printf() warnings from using %d with int32_t (needs to
be %ld for long int).
7) Fixed build issue with Nehe20 from not including kos.h for the
KOS_ROMDISK macro.
8) Fixed some signed vs unsigned comparison mismatches in C++ template
instantiations within clipping tests.
9)
2024-07-31 20:35:34 -05:00
Falco Girgis
a68c4bf6ac
Merge branch GLdc:master into master
2024-07-31 19:10:27 +00:00
Luke Benstead
60773e9db8
Fix alpha values
2024-07-21 10:28:13 +00:00
Luke Benstead
0a9be0b42a
Merge branch 'FasterRGBAInterpolation' into 'master'
...
Simplify RGBA interpolation by avoiding a multiply and division by 255
See merge request simulant/GLdc!118
2024-06-07 11:59:35 +00:00
UnknownShadow200
6722e14b93
Simplify RGBA interpolation by avoiding a multiply and division by 255
2024-06-07 21:36:59 +10:00
Luke Benstead
ab0ea41876
Merge branch 'master' into 'master'
...
Add conversion from argb1555 to argb4444
Closes #80
See merge request simulant/GLdc!117
2024-04-28 11:23:18 +00: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
c4e219199a
Merge branch 'fix-up-cubes-sample' into 'master'
...
Iterate over cubes sample
See merge request simulant/GLdc!116
2024-04-24 19:39:19 +00:00
Dave
4aa7459193
Iterate over cubes sample
2024-04-24 21:18:18 +02:00
Falco Girgis
5fd6e51028
Readded prefetching.
2024-04-10 01:09:29 -05:00
Falco Girgis
54e46822bd
Merge remote-tracking branch 'origin/master' into HEAD
2024-04-10 00:40:37 -05:00
Luke Benstead
572fa01b03
Fix edge case
2024-04-06 21:13:17 +01:00
Luke Benstead
08ba3671ec
Merge branch 'zclip-simplify' into 'master'
...
Zclip simplify
See merge request simulant/GLdc!115
2024-04-04 05:35:52 +00:00
Luke Benstead
6a6d229e4c
Fix bug with multiple strips
2024-04-04 06:30:37 +01:00
Luke Benstead
77f4b59aea
Fix off-by-one
2024-04-03 22:30:41 +01:00
Luke Benstead
5299badf58
Only submit trailing vertices if the previous triangle was visible
2024-04-03 22:09:35 +01:00
Luke Benstead
f8d1fa3439
Fix some issues with clipping
2024-04-03 21:19:36 +01:00
Luke Benstead
a8f3d86705
Start cleaning up the zclip code
2024-04-02 22:28:36 +01:00
Luke Benstead
d4f6a9636b
Fix more freezes and clipping issues
2024-03-19 20:14:01 +00:00
Luke Benstead
d6ac295d18
Fix more potential freezes
2024-03-19 08:14:38 +00:00
Luke Benstead
b353151dca
Fix freeze due to bad clipping
2024-03-18 20:56:15 +00:00
Luke Benstead
cf4a557489
Fix CLIP_DEBUG
2024-03-18 20:18:58 +00:00
Luke Benstead
c85aed2d28
Set the opb counter
2024-03-11 19:11:35 +00:00
Luke Benstead
1b2ab9fe4e
Merge branch 'master' into 'master'
...
Fix GL/matrix.c to work properly on -m4-single
See merge request simulant/GLdc!114
2024-02-19 07:12:29 +00:00
darcagn
eef1548914
Update matrix.c
2024-02-18 23:34:59 +00:00
darc
d92a5b1b07
Fix GL/matrix.c to work properly on -m4-single
2024-02-17 02:45:37 -06:00
Luke Benstead
b1223cfd1c
Merge branch 'No_Flashrom_Read_if_Naomi' into 'master'
...
Naomi: don't call flashrom_get_region, as KOS Naomi does not include flashrom functions
See merge request simulant/GLdc!113
2024-02-03 11:47:51 +00:00
T_chan
bd17c995ea
Naomi: don't call flashrom_get_region, as KOS Naomi does not include flashrom functions
2024-02-03 11:42:39 +00:00
Luke Benstead
33ddcb1330
Merge branch 'No_Flashrom_Read_if_VGA' into 'master'
...
avoid reading the flashrom if we know we are in VGA mode
See merge request simulant/GLdc!112
2024-02-02 21:31:21 +00:00
T_chan
58f5f52eac
avoid reading the flashrom if we know we are in VGA mode
2024-02-02 20:08:04 +00:00
Falco Girgis
04c2fcceae
Getting rid of prefetching.
2024-01-31 14:59:58 -06:00
Falco Girgis
d4a83ff235
Fixed a double promotion, put back prefetching.
2024-01-31 14:46:49 -06:00
Falco Girgis
8d1ce547f5
Screwed up prefetch macro.
2024-01-31 02:51:51 -06:00
Falco Girgis
313341f93d
Trying without prefetching.
2024-01-31 02:50:01 -06:00
Falco Girgis
4033e9c23a
Submitted wrong size to sq_fast_cpy()
2024-01-31 01:59:46 -06:00
Falco Girgis
3420f0d0c6
Adjusting vertex buffers.
2024-01-31 01:56:01 -06:00
Falco Girgis
e8a60bc94a
Fixing build issues
2024-01-30 20:43:30 -06:00
Falco Girgis
0be2911e0b
Trying to batch shit better.
2024-01-30 20:41:34 -06:00
Falco Girgis
9586eefee9
Next attempt.
2024-01-30 19:55:05 -06:00
Falco Girgis
c25a5cddcb
Next attempt.
2024-01-30 19:52:56 -06:00
Falco Girgis
b9cdfb2e35
next try
2024-01-30 19:45:17 -06:00
Falco Girgis
32ecb843a2
next try.
2024-01-30 19:44:40 -06:00
Falco Girgis
709942e69d
test.
2024-01-30 19:40:40 -06:00
Luke Benstead
9f3f638a46
Add missing conversion, fixes #77
2024-01-16 22:05:43 +00:00
Luke Benstead
0ad329e48b
Merge branch 'master' into 'master'
...
Fix GLdc failing to build on GCC 9.x
Closes #74
See merge request simulant/GLdc!110
2023-12-19 06:54:58 +00:00
darc
c314a0ec3a
Fix GLdc failing to build on GCC 9.x
2023-12-18 18:53:37 -06:00
Luke Benstead
5c762b969e
Build out to libGL.a instead of libGLdc.a
2023-11-29 11:25:52 +00:00
Luke Benstead
2b3c083de3
Fix issue with texture twiddling and RGB565 untwiddled textures
2023-11-29 11:25:32 +00:00
Luke Benstead
0efe4c6cef
Add missing defines
2023-10-19 22:26:13 +01:00