Commit Graph
34 Commits
Author SHA1 Message Date
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
Joel Teichroeb edce904439 TINYGL: Do not check the same conditions twice 2013-12-08 11:37:24 -08:00
Joel Teichroeb 7331ccf4da TINYGL: Use the right delete 2013-12-08 11:37:14 -08:00
Joel Teichroeb f10c953d28 TINYGL: Remove dead assignments 2013-12-06 14:56:13 -08:00
Paweł Kołodziejski 8f418e2247 tinygl: fix: endian issue
(cherry picked from commit 3c0a12d30d4032957f21902d3ccd87eb09d949e8)
2013-01-07 19:09:27 +01:00
Giulio Camuffo 1e9c530ccd GRAPHICS/TinyGL: Fix the color format on big endian. 2012-12-19 20:45:55 +01:00
Andrea Corna bd14146a78 TINYGL: Fix some memory leaks 2012-04-21 12:18:42 +02:00
Giulio Camuffo 158a19df31 TinyGL: Support for different color modes, first part. 2012-01-24 21:36:46 +01:00
Einar Johan T. Sømåen 97a3fec971 TINYGL: Add conversion RGB/BGR -> RGBA
Thus allowing for such textures to be loaded without
needing external conversion before creating them.
2012-01-10 08:44:18 +01:00
Pawel Kolodziejski 49b578ec6a put tinygl internals into namespace, left only api 2009-05-25 13:19:29 +00:00
Pawel Kolodziejski 41b92f44c7 formating 2009-05-17 08:57:38 +00:00
Pawel Kolodziejski 110527019b make compilable after latest change 2009-05-08 07:32:33 +00:00
Pawel Kolodziejski f85c21fa4c moved tinygl 2009-05-08 07:17:43 +00:00