Tamás Bálint Misius
eee42b2ea3
Fix RNG usage
...
Mostly boils down to having graphics functions use Renderer's RNG, update and similar functions Simulation's.
2023-04-15 18:22:03 +02:00
mniip
aa2fa9ed8c
Remove Graphics::SetClipRect
2023-04-12 19:24:54 +02:00
mniip
9b9b0b794a
Remove Graphics::vid, Graphics::textwidthx, Graphics::textsize
2023-04-12 19:21:37 +02:00
mniip
e1d230f814
New text width ops
2023-04-10 23:54:46 +02:00
mniip
f443eeff2f
Refactor Engine, Window, and Panel drawing
2023-04-10 23:05:44 +02:00
mniip
4b70eeab55
Refactor PNG and working with alpha
2023-04-05 21:30:24 +02:00
mniip
b26a1b4a88
VideoBuffer pointer correctness
2023-04-05 14:52:20 +02:00
mniip
50bfa7cd5e
Remove unused VideoBuffer code
2023-04-05 14:16:25 +02:00
mniip
132e3508cf
Refactor tools
2023-04-05 14:11:37 +02:00
mniip
7f84887f6d
Refactor things referencing VideoBuffer internals
2023-04-05 02:30:05 +02:00
mniip
b56d3cf611
Fix return values in VideoBuffer::*Character
2023-04-05 02:30:05 +02:00
mniip
e5af4dab68
Refactor resize-related code
2023-04-05 02:30:05 +02:00
mniip
caab738184
Refactor raster draw methods
2023-04-05 02:29:35 +02:00
mniip
e93db9c06a
RasterDrawMethods CRTP, PlaneAdapters in VideoBuffer, Graphics, and Renderer
2023-04-05 02:29:35 +02:00
mniip
a0a9ad0abd
Add new Vec2, Mat2, RGB, RGBA classes and deprecate some old functions
2023-04-05 02:29:35 +02:00
Tamás Bálint Misius
0fe8d79e60
Make replace parameter of RenameFile explicit
...
Also replace a few rename calls with RenameFile calls. Old code doesn't expect rename to overwrite existing files without question, when it in fact can.
2023-02-01 21:48:18 +01:00
Tamás Bálint Misius
b9c8817386
Group gravity files into their own directory
...
Also replace non-FFT gravity with "no gravity"; fine for render.
2023-01-27 23:04:27 +01:00
Tamás Bálint Misius
159d0eb4b7
Group platform files into their own directory
2023-01-27 17:31:40 +01:00
Tamás Bálint Misius
4f0c365e05
Preprocessor purge round 19: Split and minimize usage of Config.h
...
Also mostly banish it from other headers, and shuffle standard header includes to minimize cross-contamination between headers.
2023-01-27 09:27:32 +01:00
Tamás Bálint Misius
163203b321
Preprocessor purge round 17: easy parts of WIN, LIN, MACOSX, AND
2023-01-27 09:26:41 +01:00
Tamás Bálint Misius
f7478422a4
Preprocessor purge round 16: DEBUG
2023-01-27 09:26:40 +01:00
Tamás Bálint Misius
f0ffa2eeb1
Preprocessor purge round 15: FONTEDITOR, RENDERER
2023-01-27 09:26:40 +01:00
Tamás Bálint Misius
27ddf78e0c
Preprocessor purge round 9: XCELLS and YCELLS
2023-01-27 09:26:39 +01:00
Tamás Bálint Misius
9542f98b82
Preprocessor purge round 7: Config.template.h
2023-01-27 09:26:38 +01:00
Tamás Bálint Misius
fdfa206a3c
Preprocessor purge round 5: M_PI
2023-01-27 09:26:38 +01:00
Tamás Bálint Misius
3eb1609934
Preprocessor purge round 4: misc function macros
2023-01-27 09:26:38 +01:00
Tamás Bálint Misius
e4c2ec5a00
Preprocessor purge round 2: #pragma once
2023-01-27 09:26:38 +01:00
Tamás Bálint Misius
3a591b8539
Preprocessor purge round 1: simulation constants
2023-01-27 09:26:36 +01:00
suve
8ce7a37070
Add missing cstdint includes
...
Some files have been using various fixed-size types (uint32_t etc.),
which are defined in stdint.h / cstdint, without including said header
file. While this code worked with GCC12 (likely a transitive include),
under GCC13 it fails to build due to "unknown type" errors.
2023-01-21 19:50:55 -05:00
Tamás Bálint Misius
853c47b0bd
Fix potential crashes due to overeager operator[]s
...
Some operator[]s that know the size of the container they wrap like to assert(index >= 0 && index < size), which is bad for us because we sometimes use &container[size]. This is not undefined behaviour until that pointer is dereferenced, but certain operator[]s choose to ignore this fact and err on the side of caution. The solution is to use &container[0] + size instead of &container[size].
2023-01-07 15:08:50 +01:00
Tamás Bálint Misius
6b133aced6
Fix renderer table gradients
...
The unsigned type would overflow when it was asked to represent negative values.
2022-12-27 08:49:32 +01:00
Tamás Bálint Misius
3e3ee8a722
Convert hmap data to gradients
2022-12-25 11:09:08 +01:00
Tamás Bálint Misius
bb6c371aa8
Convert images.cpp to actual images
...
Also remove some dead code.
2022-12-25 11:09:06 +01:00
Tamás Bálint Misius
50ef07c339
Add underline escape sequence to text renderer
...
This allows us to do underline the app name in the intro text correctly. More important than it used to be now that the app name can be changed.
2022-12-23 07:39:58 +01:00
jacob1
3011e45475
Fix text in some buttons being cut off prematurely
2022-10-31 16:22:34 -04:00
jacob1
8fd6db56d1
Fix string handling in text drawing / width functions
...
Allows passing in null bytes, which allows 0s to be used with \x0F color codes
Also unrelated, fix two warnings in OptionsView.cpp
2022-10-25 22:35:49 -04:00
Tamás Bálint Misius
59354731df
Remove all PTI code, use libpng to load avatars and thumbnails
...
Also write PNGs with libpng, and BMPs with SDL, and have the renderer only generate a large PNG thumbnail, and disable HTTP/2 multiplexing for now so we don't get banned when loading avatars.
simon pls reply to the stupid emails already.
2022-10-23 20:21:05 +02:00
Tamás Bálint Misius
ebb87a17c6
Unbundle bzip2 and jsoncpp, update tpt-libs
...
Also Disallow linking against non-C++ system Lua, unless configuring with -Dworkaround_noncpp_lua=true, add -Dworkaround_elusive_bzip2 and friends, and get rid of the -image_base hack for macos.
2022-10-20 23:15:49 +02:00
Tamás Bálint Misius
715333295b
Add clip rect feature to Graphics and gfx.setClipRect
...
Also retire the separate VideoBuffer in Panel and hiding ToolButtons in the GameView ToolButton panel in favour of clip rects.
2022-10-11 20:47:39 +02:00
Tamás Bálint Misius
f18bd6553f
Remove long defunct OpenGL code paths
2022-10-11 20:11:14 +02:00
Tamás Bálint Misius
6ba5de6034
Crop stamp thumbnails that don't fit even when resized
2022-08-28 07:12:46 +02:00
Tamás Bálint Misius
df7bbd3b8e
Prevent SaveRenderer from calling into Lua
...
Also clear SaveRenderer graphics cache along with the main Renderer's when needed, and revert to built-in element callbacks rather than nothing at all when assigning nil to a callback slot in Lua.
2022-02-23 22:22:10 +01:00
Tamás Bálint Misius
afa9fd3d8f
Remove precompiled headers, fix a few problems they masked
2021-10-15 17:04:04 +02:00
Tamás Bálint Misius
d040de396a
Fix find mode not always succeeding in darkening particles
2021-07-15 19:29:21 +02:00
Tamás Bálint Misius
ffe730c615
Save ambient heat temperature and add it to options
2021-06-04 22:39:07 +02:00
jacob1
0ed6a84ecf
Fix ambient heat display
2021-02-28 16:53:18 -05:00
Tamás Bálint Misius
4b7e85c2fb
Fix a metric ton of MSVC warnings
2021-02-15 21:24:44 +01:00
Tamás Bálint Misius
92ccb12d70
Update luasocket, embed eventcompat.lua differently
2021-01-04 16:43:31 +01:00
Tamás Bálint Misius
0832615599
Use versioned tpt-libs
...
Also move bzip2 sources out of their own subproject.
2021-01-03 11:00:45 +01:00
Tamás Bálint Misius
88b9084267
Fix vertical alignment of text in signs
...
It's now consistent with the rest of the UI.
2021-01-02 23:24:51 +01:00