Paweł Kołodziejski
c98fe1c61c
TINYGL: Eliminate unnecessary branches and code in flow
2021-12-15 23:15:55 +01:00
Paweł Kołodziejski
d92c8dd595
TINYGL: Fixed taking depth write mask argument
2021-12-15 20:34:27 +01:00
Paweł Kołodziejski
c66ca22cbb
TINYGL,GRIM: Replace custom shadows to stencil buffer solution
2021-12-10 18:37:24 +01:00
Cameron Cawley
06e79f2adf
TINYGL: Use the existing list of rectangles when copying to the screen
2021-12-09 22:01:46 +01:00
Paweł Kołodziejski
6a591146c8
TINYGL: Added stencil buffer implementation
2021-12-09 21:10:53 +01:00
Paweł Kołodziejski
a395700d1f
TINYGL: Put debug dirty rects code into runtime condition
2021-12-09 12:38:41 +01:00
Paweł Kołodziejski
96248ef6ef
TINYGL: Fixed dirtyrect debug display compilation
2021-12-09 09:24:58 +01:00
Paweł Kołodziejski
81a8da05ff
TINYGL: Replace stdio functions with debugstream
2021-12-08 18:29:25 +01:00
Paweł Kołodziejski
3b9f9804ee
TINYGL: Rearrange access to TinyGL
2021-12-08 14:52:18 +01:00
Paweł Kołodziejski
87594a052f
TINYGL: Cleanup more FrameBuffer class entries
2021-12-07 22:11:55 +01:00
Paweł Kołodziejski
10f6a79ce8
TINYGL: More work on accessing FrameBuffer class
2021-12-07 20:40:32 +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
4e34da3746
TINYGL: Eliminate passing context
2021-12-07 09:54:19 +01:00
D G Turner
b9ef0b49f4
TINYGL: Fix GCC Compiler Pedantic Warning
2021-12-07 00:31:48 +00: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
8ed00821ac
TINYGL: Attempt to fix compilation
2021-12-05 23:00:15 +01:00
Paweł Kołodziejski
9f7a903b10
TINYGL: Mark private/public entries in FrameBuffer class
2021-12-05 22:30:52 +01:00
Paweł Kołodziejski
df0cf4bf44
GFX: Properly save/restore states for viewport, blending, depth, alpha
2021-12-05 10:33:06 +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
dd50e1a6bc
TINYGL: Formatting
2021-12-04 01:06:37 +01:00
Paweł Kołodziejski
6f3b535752
GRIM,STARK,TINYGL: Fixed BE drawing issues.
2021-11-29 22:34:13 +01:00
Paweł Kołodziejski
0c59f5a673
TINYGL: Moved PixelBuffer to TinyGL
2021-11-27 21:29:02 +01:00
Paweł Kołodziejski
af37825be3
ENGINES: Replace PixelBuffer with Surface
2021-11-27 20:14:44 +01:00
Paweł Kołodziejski
d42e8dba6c
TINYGL: Fixed mismatch malloc/new
2021-11-27 18:32:10 +01:00
Paweł Kołodziejski
8422a9720e
TINYGL: Fixed reading outside of buffer
2021-11-27 01:09:40 +01:00
Cameron Cawley
a21961516a
GRAPHICS: Split ScalerPluginObject into two classes
2021-11-23 23:32:58 +01:00
Cameron Cawley
f590352165
GRAPHICS: Fix invalid memory write in the DotMatrix scaler
2021-11-21 23:53:34 +00:00
Paweł Kołodziejski
a63f7abcd5
GRAPHICS: Corrected subdir depth for wintermute shaders
2021-11-21 20:49:09 +01:00
Paweł Kołodziejski
400ba4017f
GRAPHICS: Allow load engine shaders from extra path
2021-11-21 20:28:20 +01:00
Eugene Sandulenko
9a6d04fa01
Revert "GRAPHICS: fix off-by-one errors when drawing a rounded rectangle"
...
This reverts commit 2d8e0579eab1f4d69ccc36bf0f2071002539d5e8.
This leads to artifacts in GUI
2021-11-21 20:23:37 +01:00
Benoit Pierre
2d8e0579ea
GRAPHICS: fix off-by-one errors when drawing a rounded rectangle
...
The code would create a rectangle of width+1 by weight+1, resulting
in buffer overflows when drawing at the bottom limit of a surface.
2021-11-21 20:22:06 +01:00
Cameron Cawley
721c46ec84
GRAPHICS: Add generic functions for converting palettes
2021-11-20 01:06:23 +01:00
Cameron Cawley
4d206e5286
GRAPHICS: Clean up OpenGL defines ( #3551 )
2021-11-18 00:56:21 +01:00
Orgad Shaneh
b531894158
GRAPHICS: JANITORIAL: Remove 'virtual' when override is specified
2021-11-14 14:31:21 +02:00
Torbjörn Andersson
3374811903
GRAPHICS: Fix small SVG memory leaks
2021-11-14 08:40:06 +01:00
Orgad Shaneh
2e68b4ffdc
JANITORIAL: Use override
...
Using clang-tidy modernize-use-override
2021-11-14 02:59:23 +02:00
av-dx
4573f049f2
Revert "GUI: Add horizontal triangle drawing algorithm"
...
This reverts commit 6d2732e598500df36c793896a9a7bc3876fbb4e6.
2021-11-12 14:46:34 +01:00
av-dx
962d481e1b
GUI: Add horizontal triangle drawing algorithm
2021-11-12 14:46:34 +01:00
av-dx
e8bee56f9a
JANITORIAL: Formatting fixes
2021-11-12 14:46:34 +01:00
av-dx
fadb918bbd
GUI: Fix clipping on bitmap images
2021-11-12 14:46:34 +01:00
Orgad Shaneh
7a4e5612de
JANITORIAL: Replace new[]/memset with new[]()
...
Mostly done using the following Ruby script:
(Dir.glob('**/*.cpp') + Dir.glob('**/*.h')).each do |file|
s = File.read(file, encoding: 'iso8859-1')
t = s.gsub(/(([\w_.\[\]]+)\s*=\s*new\s+\S+?\[[^\]]+?\](?!\())([^\{\}]*?)\n\s+memset\(\s*\2\s*,\s*0\s*,[^;]*;/m, '\1()\3')
if t != s
File.open(file, 'w') { |io| io.write(t) }
end
end
2021-11-10 19:53:15 +01:00
Paweł Kołodziejski
ff7f542846
TINYGL: Fixed normal array element
2021-11-09 19:49:42 +01:00
Paweł Kołodziejski
a8dcf7dbbd
TINYGL: Added check if texture is uploaded
2021-11-09 17:09:13 +01:00
Paweł Kołodziejski
41cc63588d
TINYGL: Fixed vertex arrays
2021-11-09 08:04:08 +01:00