BMagnu
68f3fa6d8c
Actually compile with proper optimizations in a release build. ( #6336 )
...
* Change optimization to O3 and enable LTO
* Remove ODR violations
# Conflicts:
# code/menuui/playermenu.cpp
# code/osapi/osregistry.cpp
* Fix uninitialized structs
* Remove negative alloc warning
* O3 for mac
* Remove GCC13 warnings
* Fix warning
* Properly fix weapon alloc size
* Try to placate GCC9's Psnet_socket estimation
* remove warnin
* Fix safe fd set check
2024-11-25 20:10:38 +01:00
BMagnu
5066e498a3
Virtual POF fixes ( #5984 )
...
* Fix wrong filename being used
* Fix replacement map not used for collision check
* Fix poly count and incorrect submodel numbers
2024-02-09 23:10:39 +01:00
Goober5000
17d36156cb
add const where appropriate to the modelrender API
...
See title. There were some cascade effects, but the changes are mostly contained to the model code. The calls to `gr_render_model` and `g3_render_primitives` use `const_cast` because constifying that API would require a whole other PR.
2023-06-18 14:05:46 -04:00
Birk Magnussen
f4b6a4af61
Property Append Mode proper
2023-05-25 20:55:22 +02:00
Birk Magnussen
f8220ccd60
Property Append Mode
2023-05-25 20:54:04 +02:00
Birk Magnussen
be29fc9eaa
fix warning
2023-05-25 12:15:18 +02:00
Birk Magnussen
4d25b34c1b
Add Subsystem data change
2023-05-25 12:12:55 +02:00
Goober5000
3e0c7f0721
add lcase_equal and lcase_lessthan
...
The `SCP_string_lcase_equal_to()()` and `SCP_string_lcase_less_than()()` functors are rather unwieldy to use in non-functor situations, so this adds conventional function equivalents.
2023-05-20 18:21:37 -04:00
Goober5000
8aa5a22f5d
Merge pull request #5399 from BMagnu/modularpof_parent_subsystem
...
Fix modular pof handling of dock / path parent names
2023-05-12 14:19:16 -04:00
BMagnu
26cfc8d017
Make check case insensitive
2023-05-13 01:52:40 +09:00
Birk Magnussen
6f8c8e802a
fix modular pof handling of dock / path parent names
2023-05-12 10:26:13 +02:00
Goober5000
712a70444b
update type_flags when dock name changes
...
The `type_flags` on a model's dockpoints are determined by the dockpoint name. If the name changes, the flags should be updated accordingly.
This fixes a bug in Scroll where a dockpoint that was imported and renamed to start with the word "cargo" was not compatible with cargo docking as expected.
2023-05-12 04:08:38 -04:00
BMagnu
e2b205ffaa
Modular POF Features 2 ( #5209 )
...
* Add weapon bank copy
* Add Path / Dock point copying
* cleanup
* Fix dock points
* Fix copy paste error
* Incorporate feedback
* Incorporate feedback 2
* delete copy assignment
2023-04-07 08:12:20 +09:00
BMagnu
2116d1fe66
Modular POF Features ( #4713 )
...
* Add turret copying
* Ad addturret parsing
* Fix gun_nr error
* Fix strncpy_s
* Fix strings better
* Cleanup submodel / turret copying
* Add 'Add Engine'
* Add Glowpoints, add Special Subsys
* Remember to keep the glowpoint texture
* Fix unused param
2022-10-24 18:35:51 +09:00
BMagnu
d186aefa92
Adds a cache for modular POFs ( #4690 )
...
* cleanup submodel index replacement
* Add modelreplace cache
* Move RenameSubobjects to new API
* Fix and tidyup
* Fix GCC error
* fix macro
* Appease Clang
* Properly skip reading non-final leaves from the cache
* fix warning
* Safe-stringify, incorporate comments
2022-09-23 18:38:50 +09:00
BMagnu
565047e93b
Implement a proper std::optional alternative ( #4619 )
...
* Add optional lib
* Replace modelreplace optionals
* Replace Animation Optional
* rework modelanimationdata constructors
2022-09-06 17:05:05 +09:00
BMagnu
74ba7899fd
Virtual / Modular POFs ( #4590 )
...
* Integrate Barebones Framework
* further integration
* Add brak in read
* Defer subsystem generation
* Unentangle pof parsing and subsystem info writing
* finalize modelreplace skeleton
* Begin submodel copying
* First prototype of modular pofs demonstratable
* Allow Submodel Renaming
* Add copy children and set offset
* properly handle depth
* Add header modification
* Fix issues with parsing
* Fix Warnings
* incorporate feedback
* de std-ify
* Incorporate Feedback 2
* Fix macro
* Remove ref
* Enhance error messages
2022-09-03 22:15:56 +09:00