jerrrrycho
2b74c6dba7
refactor(sonar): clean up issues reported on PR 209
...
- remove locals left unused after the dead-store cleanup (cpp:S1481, cpp:S1854)
- unnamed unused parameter (cpp:S1172)
- single-use declarations moved into if init-statements (cpp:S6004)
- auto for casted initialisers (cpp:S5827)
- const references and pointers where nothing is modified (cpp:S5350)
- rename structured bindings shadowed by inner declarations (cpp:S1117)
2026-10-11 01:41:01 +02:00
jerrrrycho
ba6840b6ba
refactor(sonar): assorted small fixes
...
- empty() instead of size() comparisons (cpp:S1155)
- member initialisers in declaration order (cpp:S3229)
- no redundant c_str() when a std::string is accepted (cpp:S7121)
- contains() on associative containers (cpp:S6171)
- const reference instead of a copying range-for (cpp:S6032)
- starts_with() for prefix checks (cpp:S6178)
- no std::move on temporaries (cpp:S5274)
- has_value() on std::optional (cpp:S7172)
- bool literals for bool members (cpp:S5820)
- inline only on the definition (cpp:S3548)
- explicit base access specifier (cpp:S5965)
- explicit element access instead of dereferencing an array (cpp:S7116)
- rely on the C++20 rewritten operator!= (cpp:S6186)
2026-10-10 20:44:56 +02:00
jerrrrycho
a322472632
refactor(sonar): use std::array for local fixed-size arrays (cpp:S5945)
...
Arrays that are class members or part of headers are left unchanged.
2026-10-10 20:44:55 +02:00
jerrrrycho
2afa42c6b7
refactor(sonar): take read-only string parameters as std::string_view (cpp:S6009)
...
The Windows messaging helpers keep std::string, they need c_str().
2026-10-10 20:44:53 +02:00
jerrrrycho
f6736fa233
refactor(sonar): pass expensive-to-copy parameters by const reference (cpp:S1238)
...
Signatures declared in files touched by PR 206 (Driver.h, EU07.cpp) and
virtual overrides are left unchanged.
2026-10-10 20:44:51 +02:00
jerrrrycho
4532d5e037
refactor(sonar): take read-only pointer and reference parameters as const (cpp:S995)
...
TTrain command handlers keep their signature, it is fixed by the handler table.
2026-10-10 20:44:51 +02:00
jerrrrycho
693a817d5e
refactor(sonar): make read-only local references and pointers const (cpp:S5350)
2026-10-10 20:44:50 +02:00
jerrrrycho
29e8a1befc
refactor(sonar): initialise members in initialiser lists or declarations (cpp:S3230)
2026-10-10 20:44:50 +02:00
jerrrrycho
c2449db91d
refactor(sonar): mark converting constructors explicit (cpp:S1709)
...
sound_source and the gl::object conversion operators stay implicit; they
are relied upon by copy-list-initialisation and GL calls.
2026-10-10 20:44:49 +02:00
jerrrrycho
e524d38128
refactor(sonar): rename locals that shadow outer declarations (cpp:S1117)
...
Only local variables and definition parameters are renamed; shadowing
struct fields and enumerators in headers are left for a separate change.
2026-10-10 20:44:48 +02:00
jerrrrycho
3c80ea20c7
refactor(sonar): drop top-level const from by-value return types (cpp:S5951)
2026-10-10 20:44:46 +02:00
jerrrrycho
e7827cfe05
refactor(sonar): access static members through the class (cpp:S2209)
2026-10-10 20:44:44 +02:00
jerrrrycho
9a674b4944
refactor(sonar): use std::size for array lengths (cpp:S7127)
2026-10-10 20:44:44 +02:00
jerrrrycho
560512bd9e
refactor(sonar): use structured bindings for pair access (cpp:S6005)
2026-10-10 20:44:42 +02:00
jerrrrycho
413009e59e
refactor(sonar): use auto where the type is spelled out on the right (cpp:S5827)
2026-10-10 20:44:39 +02:00
jerrrrycho
f8c6e358bd
refactor(sonar): use try_emplace for map insertion (cpp:S6030)
2026-10-10 20:44:39 +02:00
jerrrrycho
6fce71af36
refactor(sonar): scope single-use variables in if init-statements (cpp:S6004)
2026-10-10 20:44:38 +02:00
jerrrrycho
8042953b95
refactor(sonar): declare non-mutating member functions const (cpp:S5817)
...
Virtual functions are left untouched so overrides keep matching.
2026-10-10 20:44:37 +02:00
jerrrrycho
ad32f1f840
refactor(sonar): make narrowing conversions explicit (cpp:S5276)
2026-10-10 20:44:35 +02:00
jerrrrycho
d325a54756
refactor(sonar): construct elements in place with emplace_back (cpp:S6003)
2026-10-10 20:44:35 +02:00
jerrrrycho
9657955e62
refactor(sonar): use nullptr literal (cpp:S4962)
2026-10-10 20:44:33 +02:00
maj00r
b1bdd42178
Forget a buffer's bindings when it is deleted ( #182 )
...
The binding tracker kept the name of a deleted buffer. When gl handed that
name to a new buffer, the tracker took it for already bound and skipped the
bind, so a new vao was left without its index buffer and the nvidia driver
read indices from a null pointer.
2026-09-23 01:03:01 +02:00
1aac9b4e76
Merge pull request #111 from MaSzyna-EU07/opengl-instancing
...
Some rendering improvements
2026-06-16 23:09:12 +02:00
c0abea1473
Merge pull request #109 from docentYT/fix-compilation-warnings
...
Fix compilation warnings
2026-06-16 11:14:25 +02:00
426ee0baac
use textureGather for shadow PCF
2026-05-26 22:08:06 +02:00
docentYT
4878afbffc
Change size arguments type to GLsizeiptr
2026-05-11 23:41:43 +02:00
3419666070
scale/endscale/localscale per node model
2026-05-10 13:12:49 +02:00
587077629f
Enable instancing
2026-05-09 23:29:20 +02:00
7525b54ff1
Enable GLM_FORCE_DEFAULT_ALIGNED_GENTYPES
2026-05-06 20:41:01 +02:00
ff258e3d3c
Sanitize NaN/Inf in env cubemap and tonemap to stop one-frame black flashes
2026-05-01 17:20:43 +02:00
bc0e4a9e62
Specgloss shaders improvements + experimental SSAO (debug only)
2026-04-21 00:25:29 +02:00
copilot-swe-agent[bot]
7e49aa8740
Rewrite #includes to use explicit subdirectory paths
...
Co-authored-by: Hirek193 <23196899+Hirek193@users.noreply.github.com >
2026-03-14 19:16:48 +00:00
docentYT
ed2f172954
Use glClientWaitSync instead of glGetSynciv
2026-02-07 19:47:32 +01:00
Wls50
b4737712de
support cabview rain effect
2025-11-21 22:43:24 +01:00
Wls50
04eff45b5d
remove duplicate user_data vector from world_vertex
...
update max. number of vertex attributes
to avoid user data getting "reused" across mesh draws
2024-07-06 20:25:53 +02:00
milek7
3cb5b5fd9a
fix scene_ubs layout
2022-03-04 17:53:16 +01:00
milek7
5bafa31f9d
Merge commit 'd8170c932b448ba6888e702746b5ae22632062d8' into sim
2022-01-05 22:21:05 +01:00
tmj-fstate
05d8af139a
build 210509. configurable max draw range factor, moon visualization enhancement, night lighting tweak, minor bug fixes
2021-05-10 00:50:54 +02:00
milek7
78a15bf527
fix swapped arguments to glUniformBlockBinding
2021-01-22 19:07:30 +01:00
milek7
56eba08a6f
CI shader validation
2021-01-21 15:51:03 +01:00
milek7
f0b364bafe
basic GLES working again
2021-01-20 19:29:50 +01:00
milek7
97d6547824
log simulation timestamp, add highp int precision to gles shaders
2021-01-20 18:06:37 +01:00
milek7
1c40578d26
ubo padding fixes
2020-10-21 17:59:27 +02:00
milek7
6af6f5156d
workaround for ebo binding issues, do not enable ai vehicles automatically on map
2020-10-21 00:45:19 +02:00
milek7
29f8f91ad8
Merge remote-tracking branch 'tmj/master' into sim
2020-10-18 23:35:14 +02:00
milek7
936effa9db
openvr WIP
2020-09-29 22:27:13 +02:00
tmj-fstate
2ce3091e8f
line breaker cab control enhancement, minor bug fixes
2020-02-02 22:30:36 +01:00
tmj-fstate
14699a96de
build 200101. opengl 3.3 renderer projected headlights
2020-01-01 20:41:05 +01:00
tmj-fstate
943e05462d
build 191224. opengl 3.3 renderer material glossiness support, minor bug fixes
2019-12-25 19:42:50 +01:00
tmj-fstate
0ebc7e282f
minor bug fixes, minor diagnostics tweaks
2019-12-17 18:19:30 +01:00