Commit Graph
524 Commits
Author SHA1 Message Date
Cameron Cawley 89c57d29ef COMMON: Move more maths functions into the Math namespace 2024-07-27 14:00:48 +03:00
Matthew Duggan a5067e783c GRAPHICS: Remove erroneously added temp file 2024-07-16 13:52:49 +10:00
Matthew Duggan 4c78530c72 GRAPHICS: Constify object references in primitives API
This makes usage of the API a bit clearer - they are inputs only, not outputs.
2024-07-16 13:48:44 +10:00
Cameron Cawley 1357bfe672 COMMON: Avoid including engine headers in common code for DebugChannelDef 2024-06-20 20:15:57 +01:00
neuromancer e49387f0c8 TINYGL: revert previous commit and correct number of elements for polygon offset ADD_OP 2024-06-01 15:33:50 +02:00
neuromancer d22cffbcba TINYGL: correct number of elements for polygon offset ADD_OP 2024-06-01 15:33:50 +02:00
neuromancer 7ac37265f9 TINYGL: correct initialization of the stipple pattern buffer 2024-06-01 15:33:50 +02:00
neuromancer 00a0346983 TINYGL: make sure stipple pattern is copied into the internal states instead of using pointers 2024-06-01 15:33:50 +02:00
neuromancer 4cd57d59a8 TINYGL: removed the usage of stipple pattern from textured triangles 2024-06-01 15:33:50 +02:00
neuromancer e232c9d797 TINYGL: make sure the polygon stipple pattern is copied 2024-06-01 15:33:50 +02:00
neuromancer fdd84fd08a TINYGL: initial implementation of tglPolygonStipple 2024-06-01 15:33:50 +02:00
Hubert Maier 39ad7cc41e JANITORIAL: Fix referece typo in zblit_public.h 2024-05-18 13:52:31 +02:00
Torbjörn Andersson a1c8db3201 JANITORIAL: Clean up some whitespace and double semicolons 2024-01-29 19:32:00 +01:00
Cameron Cawley 5b1b14ad80 COMMON: Mark more symbols as const 2023-12-26 20:23:59 +01:00
Cameron Cawley 953772ba99 COMMON: Rename memset2/4/8 to memset16/32/64 2023-11-06 13:40:38 +02:00
Cameron Cawley ae8c6242bf GRAPHICS: Use memset2 and memset4 when clearing the framebuffer 2023-11-06 13:40:38 +02:00
Cameron Cawley bbe8010cd1 TINYGL: Remove use of Graphics::PixelBuffer from the Line class 2023-05-14 23:04:11 +02:00
Cameron Cawley d293a659d3 TINYGL: Remove use of Graphics::PixelBuffer from the FrameBuffer class 2023-05-14 23:04:11 +02:00
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