Commit Graph

144 Commits

Author SHA1 Message Date
Spencer Elliott
79172452f2 Convert GL_SHORT to proper float on conversion 2023-09-26 18:51:29 +00:00
Luke Benstead
43d64a4957 Fix twiddling issues 2023-09-11 17:27:04 +01:00
Luke Benstead
951ece6d19 Add test job to CI 2023-09-11 17:25:47 +01:00
Luke Benstead
61e5a7a2a6 More twiddling work 2023-09-10 19:41:25 +01:00
Luke Benstead
7ce01ad93f Fix up paletted textures 2023-09-06 08:01:01 +01:00
Luke Benstead
0e31aa3d27 Tweak 2023-09-01 20:25:27 +01:00
Luke Benstead
246cb997da Add optional dcprof to prof_texture_upload 2023-09-01 20:23:55 +01:00
Luke Benstead
77531ca347 Drastically refactor glTexImage2D 2023-08-26 20:34:11 +01:00
Luke Benstead
a5891056db Many bug fixes and optimisations 2023-05-16 13:31:44 +01:00
Luke Benstead
9cffe14ad6 Clean up aligned vector 2023-05-12 20:51:36 +01:00
Luke Benstead
9e1b1bc40a Merge branch 'clipping-rewrite-for-the-last-time-ffs' into 'master'
Restructure clipping to be much MUCH faster in the visible case

See merge request simulant/GLdc!105
2023-04-26 20:00:17 +00:00
Luke Benstead
0f65eab86a Much faster clipping 2023-04-26 20:50:43 +01:00
Luke Benstead
9cc52a01fe Better clipping 2023-04-22 20:47:45 +01:00
Luke Benstead
c5ce81a38d WIP: Restructure clipping to be much MUCH faster in the visible case
This currently only works with triangles, anything more and it crashes
due to me not queuing subsequent vertices in the strip correctly
2023-04-19 20:57:44 +01:00
Dave
3b53691e4b Change float colors to GLubyte in cubes sample 2023-04-17 19:33:59 +02:00
David Reichelt
190b4ecfb7 Add include for printf 2023-04-08 20:07:21 +00:00
Dave Reichelt
df9a12bbd6 Added new cubes sample
- A button toggles between glDrawElements and glDrawArrays
- B button toggles glBlend
- Start quits the sample
- Every 10 seconds a log with stats will be sent to the terminal
2023-04-08 21:42:03 +02:00
falco
e27c276daa Fixed poly/tri/quadmarks to build with GCC12
"start" is a reserved symbol within KOS, per crt1.s. Not sure why the old toolchains let us use this symbol name elsewhere, but the new GCC12 toolchain rightfully complains about duplicate symbols.

- Renamed "start" timestamp to "begin."
2023-03-04 17:35:17 -06:00
Luke Benstead
7db15a0e03 Fix PC build 2022-11-04 19:25:50 +00:00
Luke Benstead
6be3e6185d Faster inversion 2022-09-14 19:20:24 +01:00
Luke Benstead
b17104afea Add a missing header 2022-06-13 20:05:39 +01:00
Luke Benstead
53c54997c3 Fix a number of issues! 2022-06-10 20:27:21 +01:00
Luke Benstead
68c6936b25 Add nehe10 sample 2022-06-10 20:26:51 +01:00
Luke Benstead
0060f48202 Fix compilation issues on PC vs DC 2022-05-21 20:16:12 +01:00
Luke Benstead
dd7bb47ffb Merge remote-tracking branch 'ozzyouzo/master' into paletted-textures 2022-05-04 20:39:39 +01:00
Luke Benstead
774a956012 Merge branch 'refactor_nehe08' into 'master'
refactor nehe08 slightly

See merge request simulant/GLdc!94
2022-02-01 09:00:46 +00:00
T_chan
bd507f38bd refactor nehe08 slightly 2022-02-01 08:48:31 +00:00
T_chan
53eb2e2a51 Add gluBuild2DMipmaps() 2022-02-01 07:25:54 +00:00
T_chan
fdac490e34 samples: correct image paths & include <math.h> 2022-01-31 16:59:05 +00:00
T_chan
ae3ebe2e5c regroup the BMP file loading into 1 file, and correct some types that give... 2022-01-31 10:30:26 +00:00
Luke Benstead
d7d8f4c4f1 Merge branch 'Samples_Make_Romdisk_Conditional' into 'master'
Include romdisk only if target is dreamcast

See merge request simulant/GLdc!86
2022-01-31 10:06:02 +00:00
Luke Benstead
12080967c2 Merge branch 'Fix_depth_funcs_ortho' into 'master'
fix depth_funcs_ortho - show blue and green quads

See merge request simulant/GLdc!88
2022-01-31 10:05:03 +00:00
Luke Benstead
80ca380a22 Merge branch 'Correct_Blend_Test' into 'master'
merge of blend_test and lerabot_blend_test, addition of 1 case, and...

See merge request simulant/GLdc!89
2022-01-31 10:04:50 +00:00
T_chan
ab627b5ef5 merge of blend_test and lerabot_blend_test, addition of 1 case, and... 2022-01-31 10:04:50 +00:00
T_chan
23419bf57c dont put objects on the far plane 2022-01-26 19:46:31 +00:00
T_chan
7abd878e93 AS-IS, depth_funcs_ortho only displays 1 red quad. With the fix, the 2 other quads (blue, green) become visible again 2022-01-25 20:47:40 +00:00
T_chan
0c8e11c02a Include romdisk only if target is dreamcast 2022-01-25 14:41:55 +00:00
Luke Benstead
9506237c47 Merge branch 'Solve_Warnings' into 'master'
Solve some warnings from the compilation

See merge request simulant/GLdc!83
2022-01-25 13:44:09 +00:00
Luke Benstead
e2da03ac74 Merge branch 'Remove_mipmapping_from_Nehe06' into 'master'
Remove mipmapping from Nehe06

See merge request simulant/GLdc!84
2022-01-25 13:43:49 +00:00
T_chan
37e407d032 solve 4 warnings about printf & long unsigned values vs %d 2022-01-25 13:35:24 +00:00
T_chan
f5b63bfc97 Remove mipmapping from Nehe06 2022-01-23 13:07:58 +00:00
T_chan
b1508be822 Solve some warnings from the compilation 2022-01-20 22:42:08 +00:00
OzzyOuzo
148962254a 4bpp texture palette support, modified paletted_pcx sampled (USE_16C_PALETTE) 2021-11-18 12:04:46 +02:00
OzzyOuzo
37110ba47f 4bpp texture palette support (GL_RGBA8 pal components), modified paletted_pcx sample (USE_16C_PALETTE) 2021-11-18 11:59:37 +02:00
Luke Benstead
5df2190536 Fix various bugs with non-fastpath rendering 2021-10-02 14:43:23 +01:00
Luke Benstead
cef1e852f4 Fix ci 2021-10-01 20:20:29 +00:00
T_chan
830a985606 Avoid the need to hard-reset the Dreamcast to exit the samples - use the start button in all samples 2021-10-01 19:57:32 +00:00
Colton Pawielski
3d6c756ab7 Fix memory leaks in samples
Add free to end of LoadGLTextures() to release image1 after use.
2021-05-14 08:57:10 -04:00
Luke Benstead
cfefce44a6 Add nehe20 sample 2021-05-08 14:17:57 +01:00
Luke Benstead
a98f22e3c9 Remove old Makefiles 2021-05-08 13:15:18 +01:00