Commit graph

62 commits

Author SHA1 Message Date
Paweł Kołodziejski
e1118a6882
TINYGL: Few functions are not allowed to be on call lists 2023-02-20 23:39:10 +01:00
Cameron Cawley
ad6dab7bfd TINYGL: Fix memory leak 2023-02-03 22:18:45 +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
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
a4ec998a51 TINYGL: Small corrections for params type 2022-01-02 09:20:34 +01:00
Paweł Kołodziejski
fef0e04cb7 TINYGL: No need to check for current_texture 2022-01-01 14:06:45 +01:00
Paweł Kołodziejski
04b13dc61a TINYGL: Split/move functions to API and internal implementation. 2022-01-01 14:06:10 +01:00
Paweł Kołodziejski
25c4e89b7a TINYGL: Janitorial 2022-01-01 12:00:38 +01:00
Paweł Kołodziejski
6e6696271e
TINYGL: Cleanup function arguments 2021-12-27 13:22:38 +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
4e34da3746
TINYGL: Eliminate passing context 2021-12-07 09:54:19 +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
31421a4504
TINYGL: Drop BGRA pixel format 2021-12-04 22:16:22 +01:00
Paweł Kołodziejski
dff981f90b
TINYGL: Implement internal format argument handling for tglTexImage2D 2021-12-04 14:39:07 +01:00
Paweł Kołodziejski
44b4b2f740
TINYGL: Fixed multi texture generation calls 2021-12-04 14:29:25 +01:00
Paweł Kołodziejski
86dc65250e
TINYGL: Cleanup code 2021-12-04 14:27:35 +01:00
Paweł Kołodziejski
bb340c3b2b
TINYGL: Moved static global array to dynamic array 2021-12-04 11:47:03 +01:00
Paweł Kołodziejski
e5b055d064
TINYGL: Cleanup texture pixel formats 2021-12-04 01:09:12 +01:00
Paweł Kołodziejski
6f3b535752
GRIM,STARK,TINYGL: Fixed BE drawing issues. 2021-11-29 22:34:13 +01:00
Paweł Kołodziejski
318c40b0f7
TINYGL: Added check for tglTexImage2D if texture is selected before 2021-11-07 15:42:32 +01: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
Vincent Pelletier
bd37cd3012 TINYGL: Make gl_resizeImage* pixel-format-independent 2020-11-12 08:13:49 +01:00
Vincent Pelletier
0108c11d98 TINYGL: Add support for more texture color formats 2020-11-12 08:03:48 +01:00
Vincent Pelletier
b7b797d74d TINYGL: Use PixelBuffer for texture pixel format conversion
Instead of duplicating pixel-unpacking logic.
2020-11-12 07:49:15 +01:00
Vincent Pelletier
97dc3881e0 TINYGL: Add free_texture variant taking a GLTexture * argument.
To avoid looking texture up in the hash table when caller has a pointer to
it already. Aka, O(0) is better than O(1).
2016-07-18 04:34:09 +02:00
Vincent Pelletier
95cc5127e0 TINYGL: Consistently consider Texture::handle as unsigned.
Texture handles are unsigned integers everywhere else.
2016-07-17 15:06:30 +00:00
Pawel Kolodziejski
c2a9a394c3 MYST3, TINYGL: fixed endian issue 2014-12-23 20:40:59 +01:00
Pawel Kolodziejski
6fc28fe37d TINYGL: gl -> tgl rename 2014-09-21 15:05:17 +02:00
Paweł Kołodziejski
30c5e793f2 Merge pull request #1010 from subr3v/myst3-subtitles-fix
TINYGL: Fixed support to RGB textures.
2014-08-16 17:35:11 +02:00
Stefano Musumeci
3beb5ff233 TINYGL: Reordered expression to make it more readable. 2014-08-16 17:31:54 +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
d0579291bd TINYGL: Fixed support to RGB textures. 2014-08-13 15:20:17 +02:00
Pawel Kolodziejski
aca58d5f00 Revert "TINYGL: allow use TGL_RGB as texture"
This reverts commit 4a2bbd7fee.
2014-08-11 19:43:49 +02:00
Pawel Kolodziejski
4a2bbd7fee TINYGL: allow use TGL_RGB as texture 2014-08-11 18:55:22 +02:00
Stefano Musumeci
da01fb30b6 TINYGL: removed commented out 2014-08-07 21:49:36 +02:00
Stefano Musumeci
94a41de865 TINYGL: Added texture data versioning.
This is introduced to detect changes when a texture is updated.
2014-08-02 21:42:25 +02:00
Stefano Musumeci
2b3fd8501a TINYGL: Changed the way tinyGL textures are disposed. 2014-07-25 12:59:51 +02:00
Pawel Kolodziejski
97b03aed01 TINYGL: changed code to allow initialize TinyGL with specific internal texture dimension.
Grim: 256x256, Myst3: 1024x1024
2014-07-05 13:08:34 +02:00
Pawel Kolodziejski
f477946646 TINYGL: allow change internal texture size at compilation time. Now it's 1024x1024 pixels. 2014-07-05 12:13:03 +02:00
Pawel Kolodziejski
7d65d5727f TINYGL: cleanup comment 2014-07-05 09:02:04 +02:00
Stefano Musumeci
79ddb89ffe MYST3: Implemented 2D rendering correctly. 2014-07-03 12:33:05 +02:00
Stefano Musumeci
bceb1a7516 TINYGL: Added a few utility functions in TinyGL 2014-07-03 12:33:03 +02:00
Pawel Kolodziejski
f33e1384f1 TINYGL: fixed formatting and minor cleanup 2014-06-30 02:40:46 +02:00
Einar Johan Trøan Sømåen
b21271bd82 TINYGL: Put declaration of counting variable inside for-construct. 2014-02-20 18:06:04 +01:00
Christian Krause
344d86bf45 TINYGL: Fix coverity and compile warning
- change void* to byte*, otherwise delete[] is undefined
2014-02-15 18:40:30 +01:00