70 Commits
Author SHA1 Message Date
Michael 431a61a7d7 JANITORIAL: remove redundant semicolons 2025-09-28 22:26:48 +02:00
Helco ee25b1f3f3 TINYGL: Add TGL_CONSTANT and TGL_BLEND 2025-09-11 17:30:00 +02:00
Helco f6cf576e03 TINYGL: Add fast-path for default texture environment 2025-09-11 17:30:00 +02:00
Helco ebc33b9abb TINYGL: Add support for texture environments 2025-09-11 17:30:00 +02:00
Le Philousophe 303e91272f TINYGL: Implement scissor test 2025-04-28 20:44:07 +02:00
Le Philousophe 71ba2fc12d TINYGL: Unify clipping rectangles and use a proper name
Clipping is not scissor.
2025-04-28 20:44:07 +02: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 d293a659d3 TINYGL: Remove use of Graphics::PixelBuffer from the FrameBuffer class 2023-05-14 23:04:11 +02:00
Paweł Kołodziejski c4686ee84c TINYGL: Rename copyToBuffer to copyFromFrameBuffer 2023-02-09 07:31:09 +01:00
Paweł Kołodziejski bf8aa5c5b8 GRAPHICS: TINYGL: Added missing framebuffer class de-allocation 2022-10-27 01:02:32 +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 20cb0ae228 ALL: Cleanup ResidualVM -> ScummVM 2021-12-26 21:19:38 +01:00
Eugene Sandulenko abea37c9bb ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
Paweł Kołodziejski b673e0adf5 TINYGL: Janitorial 2021-12-15 23:55:36 +01:00
Paweł Kołodziejski 6a591146c8 TINYGL: Added stencil buffer implementation 2021-12-09 21:10:53 +01:00
Paweł Kołodziejski 87594a052f TINYGL: Cleanup more FrameBuffer class entries 2021-12-07 22:11:55 +01:00
Paweł Kołodziejski 2368991ab6 TINYGL: Rearrange access gl context access from/to frame buffer class 2021-12-07 19:58:03 +01:00
Paweł Kołodziejski c1512a5c40 TINYGL: Eliminate passing context where possible 2021-12-07 00:58:14 +01:00
Paweł Kołodziejski d80bd265d2 TINYGL: Rearrange visibility various functions 2021-12-06 13:57:41 +01:00
Paweł Kołodziejski d42e8dba6c TINYGL: Fixed mismatch malloc/new 2021-11-27 18:32:10 +01:00
Paweł Kołodziejski eab1fe4097 TINYGL: Implemented tglPolygonOffset function 2021-10-26 21:59:04 +02:00
Vincent Pelletier f8c72b5967 TINYGL: Move texture resampling from create time to render time
Thanks to pixel repacking using cpu data cache, this has a low runtime
cost even for TGL_LINEAR.
Adds support for TGL_NEAREST.
Adds support for TGL_MIRRORED_REPEAT, TGL_CLAMP_TO_EDGE and TGL_REPEAT.
Also, add support for more texture clamping and resampling options.

Mipmaps are not supported, although their sampling modes will be
applied - but to the full-size texture instead of selected mipmap.

Note: Texture sampler is still chosen at texture creation time.
2020-11-12 08:15:39 +01:00
Pawel Kolodziejski b321938c7b TINYGL: Restored ability to create internal buffer based on pixel format 2020-10-05 08:09:20 +02:00
Bastien Bouclet fc67541742 ALL: Silence some GCC7 fall through warnings 2017-09-02 15:24:01 +02:00
Vincent Pelletier 7988c696d9 TINYGL: Drop unused Framebuffer pixelbits property 2017-05-01 08:34:53 +00:00
Vincent Pelletier 6087492dbd TINYGL: Simplify setting & disabling scissors. 2017-04-23 10:35:04 +00:00
Vincent Pelletier 13ad766b31 Merge pull request #1294 from vpelletier/tinygl_memory
Tinygl memory
2016-08-27 04:58:56 +02:00
Vincent Pelletier 8cd029aac7 TINYGL: Add support for 4-bytes words in FrameBuffer::clear{,Region} 2016-07-28 23:29:17 +00:00
Vincent Pelletier 7e51d78480 TINYGL: Fix FrameBuffer::clearRegion color clearing line length. 2016-07-28 15:26:14 +00:00
Vincent Pelletier f272c85704 TINYGL: Initialise z buffer (valgrind) 2016-07-28 01:55:48 +00:00
Vincent Pelletier 80983c1b69 TINYGL: Unroll FrameBuffer::blitOffscreenBuffer.
This method is used to blit large buffers, so a large unrolling is still
beneficial. As it is the second hottest-spot in grim, the frame rate
increase is most significant there (compared to emi).
2016-07-22 14:58:58 +02:00
Vincent Pelletier 93c6dc6027 TINYGL: Avoid calling memset_{s,l} when possible.
It is possible to convert calls to memset_{s,l} into call to memset when
all bytes of the depth or color value are the same (which is the likely
case), improving buffer clearing speed.
2016-07-22 07:19:48 +02:00
Vincent Pelletier d437892538 TINYGL: Get rid of PSZB as it duplicates pixelbytes. 2016-07-21 16:39:40 +02:00
Stefano Musumeci 2cf70d6d76 Merge branch 'master' into tinygl-dirty-rects-fixed
Conflicts:
	graphics/tinygl/ztriangle.cpp
2014-08-16 16:03:27 +02:00
Pawel Kolodziejski 1b48414d7e TINYGL: cleanup license headers 2014-08-13 18:52:52 +02:00
Stefano Musumeci e3acac6187 TINYGL: Merged conflicts 2014-08-13 14:27:10 +02:00
Stefano Musumeci 8abb5b008c Merge branch 'master' into tinygl-dirty-rects
Conflicts:
	graphics/tinygl/zbuffer.cpp
	graphics/tinygl/zbuffer.h
2014-08-13 14:06:34 +02:00
Joni Vähämäki c420196014 TINYGL: Always pass the depth test if TGL_DEPTH_TEST is disabled. 2014-08-12 17:46:48 +03:00
Stefano Musumeci c34dc7e4a5 TINYGL: Moved variable declaration to its first use. 2014-08-10 19:36:32 +02:00
Stefano Musumeci f107e7cf6b TINYGL: Renamed variables to camelCase. 2014-08-09 12:00:43 +02:00
Stefano Musumeci 2189e97409 TINYGL: Implemented partial screen clearing. 2014-08-01 19:45:55 +02:00
Stefano Musumeci 79ea06e41d TINYGL: Implemented scissor rectangle in frame buffer. 2014-08-01 19:45:32 +02:00
Stefano Musumeci 46ff1767ab TINYGL: Moved a few member function of FrameBuffer from source to header file to favor inlining. 2014-07-24 19:51:07 +02:00
Pawel Kolodziejski d758937cbc TINYGL: fix CID 1224445 2014-07-05 08:00:22 +02:00
Pawel Kolodziejski 1b8dd28bc7 TINYGL: implemented tglDepthFunc 2014-07-04 23:14:44 +02:00
Pawel Kolodziejski b4962f645e TINYGL: added tglAlphaTest stubs 2014-07-04 08:43:19 +02:00
Stefano Musumeci 38aa730b76 TINYGL: Implemented tglDepthMask. 2014-07-03 17:02:01 +02:00
Stefano Musumeci 109767e513 TINYGL: Implemented alpha blending and color transformation in sprite blitting for Grim TinyGL renderer. 2014-07-02 00:09:13 +02:00