Commit Graph

38 Commits (master)

Author SHA1 Message Date
psi29a 98ba2120b6 Merge branch 'zerotohero' into 'master'
Use -1 as the plugin index for LandTextures

See merge request OpenMW/openmw!4121
7 months ago
Evil Eye fbc6629d40 Rework land texture handling 7 months ago
Dave Corley 145f9c1154 CLEANUP(CS): Do heightData check in actual implementation, revert
accidental change to land condition order
7 months ago
Evil Eye ca6baed366 Fix LTEX overriding and allow deletion 7 months ago
Evil Eye 6a10311ae5 Use more appropriate types in terrain storage 7 months ago
elsid 28614730da
Pass land reference to LandObject constructor 1 year ago
elsid 2a49919b53
Move esm3terrain to esmterrain 1 year ago
florent.teppe ad8cfde4e0 ESM::LandData no longer a virtual interface
instead it is constructed from ESM::Land or ESM4::Land
2 years ago
fteppe 22dc383f63 fixes errors and warnings
Applies review comments

getWorldspaceTerrain => returns a reference because never null
crashfix in navigator
updateLandPositions fixes naming of it
const ESM4::Land* MWWorld::Store<ESM4::Land>::search(ESM::ExteriorCellLocation cellLocation) const removes useless else
ExteriorCellLocation uses default initializers
get terrain height returns -MAX_FLOAT when there is no esm4 terrain.

applied review comments

use default initlializer when possible
factorise code
uses pattern matching in for loop.
2 years ago
florent.teppe e0fa15b727 Abstracted Land data that can be used by esm3 and esm4. 2 years ago
florent.teppe 1b718f09c5 adding worldspace info to terrain data structures
Rendering manager can have multiple terrain, one for each queried worldspace
Terrain::World has a worldspace member
storage functions require a worldspace parameter.
2 years ago
elsid e618026c69
Use ESM::RefId as index key in collections 2 years ago
jvoisin cd29c181cf Another pass with IWYU 2 years ago
jvoisin 3cbf1dc042 First pass with include-what-you-use 2 years ago
clang-format-bot ddb0522bbf
Apply clang-format to code base 2 years ago
Bret Curtis 74e7cfc023 remove unused includes: part1
remove unused imports: part2

revert one tidy we will keep for c++20
3 years ago
Bret Curtis cdbab2325f rename esmterrain to esm3terrain 3 years ago
unelsson 7602d677fa Terrain selection optimizations, measurements, renderBin change 3 years ago
Nelsson Huotari fdc73b87ba Remove includes that aren't needed any more 5 years ago
Nelsson Huotari fdcc7fa1d7 0 to nullptr 5 years ago
Nelsson Huotari c2de645c8c override, virtual -> final, remove unused variables, public to private. 5 years ago
Nelsson Huotari 8acfa2600f Terrain shape editing related fixes 5 years ago
Nelsson Huotari 45b0f034c3 Split complex if-logic into multiple reasonably named functions 5 years ago
Nelsson Huotari 0ce971c1bb Revert back to less aggressive component-level changes. 5 years ago
Nelsson Huotari 69083369f8 use std::fill instead of for 5 years ago
Nelsson Huotari dc7dc93320 Remove unused functions, improve formatting, handle terrain edit click 5 years ago
Nelsson Huotari 16138fc896 Transient land shape editing 5 years ago
Andrei Kortunov e06f0b797a Replace all NULLs to nullptr 6 years ago
Kyle Cooley d3014cf394 Temporary fix for adding new lands, cloned lands will still reference old data though 7 years ago
scrawl 80a0398f9d Load LandData into the LandObject to avoid threading conflicts when the same data is being loaded by two threads 8 years ago
scrawl 9a3a64f0c4 Add resource manager for ESM::Land to allow data to be unloaded when no longer required 8 years ago
scrawl 35fa1f5865 Not found Land Textures are no longer a fatal error (Bug #3037)
Log warning message and show the default texture when encountering invalid ESM::LandTexture references.
9 years ago
Marc Zinnschlag a445683312 Merge branch 'mergetool'
Conflicts:
	apps/opencs/CMakeLists.txt
	apps/opencs/model/tools/tools.cpp
9 years ago
Marc Zinnschlag 85f6bb892b removed indirection in OpenMW-CS land record 9 years ago
Marc Zinnschlag febf611c82 made return type of ESMTerrain::Storage::getLand const 9 years ago
scrawl 32ad8c86bf Fix the ESM::LandTexture NAME being discarded on loading 10 years ago
scrawl cdd0623009 Terrain rendering 10 years ago
scrawl 8786fb639f Implement terrain rendering in OpenCS (Fixes #1597) 10 years ago