Commit Graph

506 Commits

Author SHA1 Message Date
Donovan Watteau
18ab6803d6 JANITORIAL: Fix various "an" typos in comments 2023-03-16 14:47:28 +01:00
Donovan Watteau
2d0d32e214 TINYGL: Fix MSVC C4309 enum sign warning 2023-03-07 13:52:18 +01:00
Cameron Cawley
366e0c5f67 TINYGL: Replace tglFrustum, tglOrtho and tglClearDepth with float versions 2023-03-05 22:36:31 +01:00
Cameron Cawley
5432e4ad40 TINYGL: Fix the incorrect use of tglBlitOpaque for additive blends 2023-03-03 09:59:41 +00:00
Cameron Cawley
f40c2ccfbd TINYGL: Remove unused tglBlitNoBlend function 2023-03-03 09:59:41 +00:00
Cameron Cawley
9f13b979d6 TINYGL: Ensure that Z-buffer images are never converted 2023-03-03 09:59:41 +00:00
Cameron Cawley
5cc4607ff4 TINYGL: Add a fast path for rendering opaque BlitImages 2023-03-03 09:59:41 +00:00
Paweł Kołodziejski
e1118a6882
TINYGL: Few functions are not allowed to be on call lists 2023-02-20 23:39:10 +01:00
Paweł Kołodziejski
f8dfa204ad
TINYGL: Fix for front face getter and tuned naming of macro 2023-02-20 21:30:25 +01:00
Paweł Kołodziejski
f3c78c18a0
TINYGL: Implement more code for tglGet* functions 2023-02-20 20:49:48 +01:00
Paweł Kołodziejski
3258545086
TINYGL: Update GL header to version 1.2 2023-02-19 12:24:39 +01:00
Paweł Kołodziejski
adb6d340a3
TINYGL: Cleanup variable types for context states 2023-02-14 20:08:51 +01:00
Paweł Kołodziejski
82fc499b74
TINYGL: Added multi context support 2023-02-14 19:29:55 +01:00
Paweł Kołodziejski
27ea47efa8
TINYGL: Decrease to 5MB drawCallMemory usage as it was before 2023-02-12 17:12:48 +01:00
Paweł Kołodziejski
bbd955faee
TINYGL: Allow parametrize DrawCallMemory size while creating context 2023-02-12 17:08:32 +01:00
Paweł Kołodziejski
c4686ee84c
TINYGL: Rename copyToBuffer to copyFromFrameBuffer 2023-02-09 07:31:09 +01:00
Paweł Kołodziejski
b98a8d4383
TINYGL: Normalize decimal values for color and normal array arguments. 2023-02-08 06:49:34 +01:00
Cameron Cawley
ad6dab7bfd TINYGL: Fix memory leak 2023-02-03 22:18:45 +00:00
Cameron Cawley
4b2e3e6726 TINYGL: Use realloc to increase the size of the vertex array 2023-02-03 22:06:53 +00:00
Cameron Cawley
320492d442 TINYGL: Use gl_malloc() and gl_free() for the TexelBuffer classes 2023-02-03 18:06:51 +00:00
Cameron Cawley
2773eea09d TINYGL: Move more TexelBuffer code into texelbuffer.cpp 2023-02-03 18:06:51 +00:00
Cameron Cawley
4c1fdb81d5 TINYGL: Make use of ColorMask templates for NearestTexelBuffer 2023-02-03 18:06:51 +00:00
Matthew Duggan
eb3aa0077a TINYGL: Fix potential buffer overflow in glMaterialfv
When setting GL_SHININESS via glMaterialfv, the pointer only points to a single
value. Don't read past that.

Reported in github.com/C-Chads/tinygl/pull/20
2023-02-03 21:41:53 +09:00
Cameron Cawley
e7c405f933 TINYGL: Remove unused code 2023-02-02 18:54:14 +00:00
grisenti
2db6ed40b4
TINYGL: reduce memory allocation 2022-12-23 14:04:18 +01:00
grisenti
304a2df165
HPL1: add basic tinygl impl classes 2022-12-23 14:04:03 +01:00
Hubert Maier
535f93cba4
GRAPHICS: Correct spelling mistake
lightening -> lightning
2022-10-27 15:56:06 +02:00
Hubert Maier
ffb9342275
GRAPHICS: Correct spelling mistake
lightening -> lightning
2022-10-27 15:56:06 +02:00
Paweł Kołodziejski
bf8aa5c5b8
GRAPHICS: TINYGL: Added missing framebuffer class de-allocation 2022-10-27 01:02:32 +02:00
Paweł Kołodziejski
4cea5706d0
GRAPHICS, OPENGL: Fixed static analysis issue report 2022-09-18 17:30:57 +02:00
Paweł Kołodziejski
0ca414daa0
TINYGL: Removed few more forced inlines 2022-07-17 01:35:19 +02:00
Paweł Kołodziejski
31e3132896
TINYGL: Reduced some forced inlines 2022-07-17 01:10:54 +02:00
Paweł Kołodziejski
f045abc031
TINYGL: Removed some not needed inlines 2022-07-16 23:54:41 +02:00
Paweł Kołodziejski
d832c015ad
TINYGL: Fixed missing semicolon 2022-06-27 22:45:59 +02:00
neuromancer
ca89768161
TINYGL: avoid zero division when drawing lines (#4064)
TINYGL: avoid zero division when drawing lines
2022-06-27 22:21:54 +02:00
Paweł Kołodziejski
4a05ea9eda
TINYGL: Remove left over macro use 2022-06-05 23:58:05 +02:00
Paweł Kołodziejski
ffe7bee81e
TINYGL: Switch profiling to runtime condition 2022-06-05 23:40:35 +02:00
Paweł Kołodziejski
00086d34ab
TINYGL: No need to have changelog file anymore. 2022-06-05 23:20:34 +02:00
Paweł Kołodziejski
cdaec9de8d
TINYGL: Added fog support. 2022-06-05 20:59:38 +02:00
Paweł Kołodziejski
ce97902769
TINYGL: Initialise _enableScissor for case when dirty rects are off. 2022-05-02 10:01:08 +02:00
Paweł Kołodziejski
de67c1ae54
TINYGL: Latest TinyGL 0.4.1 is relicensed under MIT license. 2022-03-08 15:47:20 +01:00
Paweł Kołodziejski
a37fdcf2f1 TINYGL: Move gl_vertex_transform to GLContext 2022-01-02 10:43:29 +01:00
Paweł Kołodziejski
8ae516bd52 TINYGL: Janitorial 2022-01-02 09:22:49 +01:00
Paweł Kołodziejski
a4ec998a51 TINYGL: Small corrections for params type 2022-01-02 09:20:34 +01:00
Paweł Kołodziejski
cf8b3cc1f9 TINYGL: Move function to GLContext 2022-01-01 17:42:32 +01:00
Paweł Kołodziejski
c3a73efa8d TINYGL: No need to check for current_texture 2022-01-01 17:38:48 +01:00
Paweł Kołodziejski
a70168e416 TINYGL: Split/move functions to API and internal implementation. 2022-01-01 17:21:42 +01:00
Paweł Kołodziejski
af399f0a50 TINYGL: Janitorial 2022-01-01 17:16:10 +01:00
Paweł Kołodziejski
69198d5d30 TINYGL: Corrected variable type 2022-01-01 14:07:07 +01:00
Paweł Kołodziejski
fef0e04cb7 TINYGL: No need to check for current_texture 2022-01-01 14:06:45 +01:00