Commit Graph
35 Commits
Author SHA1 Message Date
Vincent Pelletier 46329cca87 TINYGL: Do not compute dirty region when its result is not used. 2016-07-21 16:42:24 +02:00
Vincent Pelletier a1418732ec TINYGL: Typo in disabled code. 2016-07-21 16:41:24 +02:00
Vincent Pelletier 8ec310468d TINYGL: Replace multiplications by iterative additions.
As an iteration is done already anyway.
2016-07-21 16:41:18 +02:00
Vincent Pelletier a831238a96 TINYGL: Drop some unused locals. 2016-07-21 16:40:36 +02:00
Paweł Kołodziejski 9acb1b9039 Merge pull request #1275 from vpelletier/valgrind
TINYGL, GRIM: Fix various errors (mostly memory leaks) found by valgrind
2016-07-20 14:09:52 +02: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 306fdff963 TINYGL: Dispose of textures beyond the first hash table entry. 2016-07-17 15:06:30 +00:00
Vincent Pelletier 46fa5eb373 TINYGL: Fix off-by-one in TGL_LINE_LOOP/TGL_LINE_STRIP .
Also, draw last line from last point to first instead of first point to
last as the latter leaves an unpainted pixel for some reason.
2016-07-11 14:52:36 +00:00
Vincent Pelletier 98696865df TINYGL: Fix TGL_QUADS with more than one quad.
Fixes checkbox border on Copal's computer.
2016-07-11 00:30:58 +00:00
Stefano Musumeci 23385b3a4a TINYGL: Fixed compiler warnings. 2014-08-16 16:04:20 +02:00
Stefano Musumeci 974f47fa42 TINYGL: Added a way to disable or enable dirty rectangles at runtime. 2014-08-16 16:04:10 +02:00
Stefano Musumeci 41737fcc21 TINYGL: Added/Updated license header in tinyGL files. 2014-08-16 16:03:54 +02:00
Stefano Musumeci 9e807696bc TINYGL: Minor style/formatting fixes. 2014-08-13 21:20:15 +02:00
Stefano Musumeci 92d8ecc34c TINYGL: Added depth test enabled state tracking to dirty rects. 2014-08-13 14:33:54 +02:00
Stefano Musumeci 5cd3cfe548 TINYGL: Fixed a bug with triangle strip rendering. 2014-08-11 17:24:21 +02:00
Stefano Musumeci 4b9c5a7633 TINYGL: Wrong commit fixup. 2014-08-10 21:15:41 +02:00
Stefano Musumeci ff488253e7 TINYGL: Moved variable initialization in the appropriate line. 2014-08-10 19:39:56 +02:00
Stefano Musumeci 986d6a9d8b TINYGL: Minor line break fixup. 2014-08-10 19:39:38 +02:00
Stefano Musumeci ca54fd848a TINYGL: Renamed member functions loadState to captureState. 2014-08-10 19:39:21 +02:00
Stefano Musumeci 28214fe84e TINYGL: Added preprocessor variable to enable/disable dirty rects debug. 2014-08-10 19:38:46 +02:00
Stefano Musumeci 5adba756e3 TINYGL: Renamed tglBlitScissorRect into tglBlitSetScissorRect 2014-08-10 19:38:06 +02:00
Stefano Musumeci daa8394adb TINYGL: Moved DrawCallType enum inside DrawCall. 2014-08-10 19:37:26 +02:00
Stefano Musumeci a59c1de0ff TINYGL: Fixed misspelt function name. 2014-08-10 19:05:32 +02:00
Stefano Musumeci a42d9e2b2d TINYGL: Added comment to the code. 2014-08-09 14:40:18 +02:00
Stefano Musumeci 688a76455a TINYGL: Fixed typo in code. 2014-08-09 14:40:08 +02:00
Stefano Musumeci 2b368d960f TINYGL: Fixed a mistake in while -> loop refactoring. 2014-08-09 14:39:05 +02:00
Stefano Musumeci a274a50a22 TINYGL: Removed magic numbers in computeDirtyRegion 2014-08-09 14:14:25 +02:00
Stefano Musumeci 563a26e998 TINYGL: Refactored tglPresentBuffer to increase code readability. 2014-08-09 13:43:47 +02:00
Stefano Musumeci 91dc7904f3 TINYGL: Refactored while loops into for loops. 2014-08-09 13:07:46 +02:00
Stefano Musumeci 13698796ec TINYGL: Rewrote if conditions for more clarity. 2014-08-09 12:34:40 +02:00
Stefano Musumeci c27be840ea TINYGL: Added not equality operator for GLVertex and DrawCall. 2014-08-09 12:34:26 +02:00
Stefano Musumeci 7b3f0850b8 TINYGL: Moved some functions inside TinyGL namespace 2014-08-09 12:10:26 +02:00
Stefano Musumeci 4518021484 TINYGL: Commented out a debug feature. 2014-08-08 13:09:18 +02:00
Stefano Musumeci 10a3b9b0ce TINYGL: Replaced size_t with int 2014-08-07 21:48:38 +02:00
Stefano Musumeci 6cd062826b TINYGL: Renamed zrect in zdirty rect 2014-08-07 17:56:01 +02:00