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
Paweł Kołodziejski
82e405a4ac
TINYGL: Fixed tglViewport transformation
2021-11-08 08:57:19 +01:00
Paweł Kołodziejski
760699ab0f
TINYGL: Added check if texture is selected to avoid textured triangle path
2021-11-07 15:44:45 +01:00
Paweł Kołodziejski
318c40b0f7
TINYGL: Added check for tglTexImage2D if texture is selected before
2021-11-07 15:42:32 +01:00
Alexandre Detiste
6044504762
JANITORIAL: typos
...
some in the variable names, some in the comments;
no change for the strings that interract with original games assets
2021-10-31 20:46:31 +01:00
Paweł Kołodziejski
862bd7d05f
GRAPHICS: Move FrameLimiter from engines to common graphics code
2021-10-27 23:11:20 +02:00
Paweł Kołodziejski
06b5c259d6
TINYGL: Fixed index in arrays and expanded to other data types.
2021-10-27 22:11:59 +02:00
Paweł Kołodziejski
eab1fe4097
TINYGL: Implemented tglPolygonOffset function
2021-10-26 21:59:04 +02:00
Paweł Kołodziejski
2776f7cb79
PLAYGROUND3D: Introduce testing and playground environment for 3d renderers
2021-10-26 13:43:16 +02:00
Marcus Comstedt
20eb91cb31
GRAPHICS: Add Latin Extended-A to GUI font
...
This fixes incorrectly rendered characters in the about crawler.
The following BDF file was used as source:
https://opensource.apple.com/source/X11fonts/X11fonts-10.2/font-adobe-75dpi/font-adobe-75dpi-X11R7.0-1.0.0/helvB12.bdf
2021-10-23 09:45:15 +02:00
Eugene Sandulenko
2dfc3ae120
JANITORIAL: Fix line endings
2021-10-21 19:18:03 +03:00
Orgad Shaneh
cd1200bf7b
GRAPHICS: Fix indentation in VectorRendererSpec
...
Reported by GCC11.
2021-10-21 11:54:19 +02:00
Paweł Kołodziejski
d5c1d52198
TINYGL: Added tglDrawElements
2021-10-20 22:20:28 +02:00
Thierry Crozat
566ca4ef54
GRAPHICS: Remove outdated builtin font names
2021-10-02 23:50:21 +01:00
Thierry Crozat
f3829243a1
GRAPHICS: Remove obsolete genLocalizedFontFilename FontManager
...
This function supported loading alternative bdf fonts when we were
using 8 bits encodings for the translations. Now that we are using
unicode for all language, this is no longer needed.
2021-10-02 23:50:21 +01:00
Paweł Kołodziejski
51edb55851
GRAPHICS: Do not clear frame buffer. Let engine only do that. Fixes #12936
2021-10-01 22:31:13 +02:00
Thierry Crozat
3e1c61cdb8
GRAPHICS: Support loading a Windows font from an existing stream
2021-09-24 23:42:18 +01:00
Martin Gerhardy
37de1b3146
MACGUI: const for some methods
2021-09-19 15:21:56 +02:00
Martin Gerhardy
1287dce313
MACGUI: whitespace issues
2021-09-19 15:21:56 +02:00
DivyamAhuja
04a2a1f87c
MACGUI: Fix code formatting according to coding conventions
2021-09-19 15:21:56 +02:00
DivyamAhuja
bf46669cf8
MACGUI: Add methods to find top window at at a given point
2021-09-19 15:21:56 +02:00
Paweł Kołodziejski
de35138f3e
GRAPHICS: Use OpenGL with shaders as default
2021-09-06 22:12:19 +02:00
ysj1173886760
83615f0d86
GRAPHICS: MACGUI: fix text display issue in mactextwindow.
2021-09-06 20:58:53 +08:00
Eugene Sandulenko
797ca3568d
JANITORIAL: Fix code formatting
2021-08-20 21:17:19 +02:00
Christian Kündig
a7196e347e
OPENGL EMSCRIPTEN: Add ifndef go WebGL constants not defined by emscripten
2021-08-20 21:13:49 +02:00
Christian Kündig
8af8ac2e08
OPENGL EMSCRIPTEN: clean up ifdefs, fix opengl in main menu, remove 10ms delay in GRIM main loop
2021-08-20 21:13:49 +02:00
Christian Kündig
501c7ba7aa
DISTS EMSCRIPTEN: set correct datadir (fixed issue with shader loading)
2021-08-20 21:13:49 +02:00
Christian Kündig
3a323d6899
OPENGL: Replace ifdef for runtime check of GL_VERSION
2021-08-20 21:13:49 +02:00
Christian Kündig
b7a2e22b0a
DISTS: New Emscripten/WebAssembly dists target
...
This is an initial version of the emscripten build/dist target.
Many things are still missing, see dists/emscripten/README.md for
a detailed summary of what this provides and still misses
2021-08-20 21:13:49 +02:00
ysj1173886760
69cb4dd7a9
GRAPHICS: MACGUI: fix rendering text.
2021-08-18 21:06:41 +08:00
ysj1173886760
4133592992
GRAPHICS: MACGUI: add cache for inverted color.
2021-08-16 16:58:48 +08:00
ysj1173886760
50bfc4e521
GRAPHICS: MACGUI: implement global color inverter.
2021-08-16 16:54:00 +08:00
ysj1173886760
d00c5d1c36
DIRECTOR: fix _interLinear in mactext.
...
looks like it's the max text height, instead of the height of intervals of line.
2021-08-13 20:27:18 +08:00
ysj1173886760
e5af48a2ac
GRAPHICS: MACGUI: fix getRowCol.
...
deal with out of bound error.
2021-08-12 17:03:09 +08:00
ysj1173886760
c4f7848084
GRAPHICS: MACGUI: fix createSubMenuFromString.
2021-08-09 16:51:25 +08:00
Max Horn
c9c13f49d8
GRAPHICS: fix global constructor warnings
...
Arguably it's better to use a hard code constant anyway, as the result
of sqrt(2) can vary between platforms (not that it is likely to matter
in practice ;-) ).
2021-08-07 10:46:14 +02:00
Max Horn
b7e6d61669
JANITORIAL: Fix compiler warnings about unused code
2021-08-07 10:46:14 +02:00
djsrv
40c8ab4724
GRAPHICS: MACGUI: Fix registering font to preferred ID
2021-08-06 08:56:32 -04:00
djsrv
1e61684570
GRAPHICS: MACGUI: Add replaceCustomCursor
2021-08-06 01:11:39 -04:00
djsrv
93f585c524
GRAPHICS: MACGUI: Clean up cursor management
...
Cursor types are now stored in a stack. Pushes and pops to the cursor
stack, cursor palette stack, and cursor type stack are now fully
synchronized.
2021-08-06 01:11:30 -04:00