Commit Graph

64 Commits (51579a8c5d580480e2f4be2e7d6d74cbd2f66fb2)

Author SHA1 Message Date
Evil Eye 48db113149 Address feedback 12 months ago
Evil Eye 27fa411f4f Convert strings in nif files to utf8 12 months ago
Alexei Kotov defe5ba5e7 Remove last remnants of deprecated NIFStream methods 1 year ago
Alexei Kotov b0dfd74562 NIFStream: remove getBoolean, getString 1 year ago
Alexei Kotov a224bea6d4 Rewrite NiBlendInterpolator+friends loading 1 year ago
Alexei Kotov 956ede52fb NIFStream: remove getShort, getMatrix3, getQuaternion 1 year ago
Alexei Kotov 6872c7144e Rename Transformation->NiTransform and update everything directly related 1 year ago
Alexei Kotov fd3b24e2e6 Make better use of osg::BoundingSpheref in the NIF loader 1 year ago
Alexei Kotov 4e156f2a7d NIFStream: improve handling of ranges and aligned types 1 year ago
Alexei Kotov 57144accf6 Phase out NIFStream::get[Types] 1 year ago
Alexei Kotov 6dca3e68a6 NIFStream: don't read vectors of zero length 1 year ago
Alexei Kotov d078907dcb NIFStream: rewrite loading for everything
Replace overloading with read() template specializations for every type that needs specific handling
Make use of the new read() or get() in all methods
Move complex string-related methods to implementation
1 year ago
Alexei Kotov ce13f05187 NIFStream: clean up comments 1 year ago
Alexei Kotov e8f9a918ae NIFStream: use the right function for readArray 1 year ago
Alexei Kotov 4f549c267f NIFStream: rename input stream and file methods
To conform to modern style conventions
1 year ago
Alexei Kotov 62d643f668 NIFStream: Drop LittleEndian from reading methods
This is just noise. We don't clarify reading endianness for any other file format.
1 year ago
Alexei Kotov aed440ce64 Clean up error handling in NIFStream reading
No particular reason to introduce is_arithmetic specifically for 16-bit floats, there's no significant code duplication
Bypassing getBoolean() could be error-prone for records that are shared between pre-4.2 and post-4.2 formats
1 year ago
psi29a c290754077 Revert "Merge branch 'loadSSEAlchemyTable' into 'master'"
This reverts merge request !3267
1 year ago
elsid dd54857610
Add missing array include 1 year ago
alekulyn d2896945e8 Load SSE alchemy table 1 year ago
alekulyn 7ea2ea96b6 Read new nodes pt1 2 years ago
alekulyn 74aa7b947a Load BSTriShape NIF nodes 2 years ago
alekulyn 683fb0a342 Templated nif reader function modelled after cc9cii's reader 2 years ago
Alexei Kotov a4ddf443ed Fix NiStringPalette loading 2 years ago
elsid f2fb3d6de8
Separate NIFFileReader from NIFFile
NIFFile might not always be created from a file or stream containing NIF data.
Basically there are 2 different responsibilities for this class:
1. Read NIF file
2. Provide input for nifosg and bulletnifloader.

Remove no longer needed NIFFileMock since the state of NIFFfile can be
initialized independently from reading NIF file.
2 years ago
clang-format-bot ddb0522bbf
Apply clang-format to code base 2 years ago
Andrei Kortunov c36c28e8f9 Move NIF implementation to cpp files 2 years ago
elsid 6c8ed4d19c
Move Files::IStreamPtr alias to a separate header
To avoid transitive include of Windows.h all over the engine.
3 years ago
elsid 94c1d0cced
Use unique_ptr to store istream 3 years ago
Alexei Dobrohotov dd15b30a27 Keep only one '\0' in NIF strings (bug #6473) 3 years ago
elsid 87ada56edd Various fixes for niftest 4 years ago
Petr Mikheev eaaa2f4a1c Use misc/endianness.hpp in components/nif/nifstream 4 years ago
Capostrophic 5377e0491b Adjust NiPixelData loading 5 years ago
Capostrophic 0479311c25 Correct declarations of utility methods 5 years ago
Capostrophic e363d5df21 Some more minor NIF support fixes 5 years ago
capostrophic e654a52b70 More NIF adjustments
Constant interpolation support
5 years ago
capostrophic 6928adcee1 Prevent front() and operator[] from causing undefined behavior 5 years ago
Andrei Kortunov c921d1c7e9 Refactor NifStream class (eliminate LNK4221 MSVC warning) 7 years ago
825de71b29 removed an iostream include used for debug prints from nifstream.hpp 7 years ago
30a213a9b3 updates for nifstream optimization including fixing the non-x86 path for little endian reads 7 years ago
8834066dea make streaming to a type array in nif a direct copy from the file into the vector 7 years ago
090a8408b8 made nif basic type read optimizations more portable 7 years ago
c72aa19d6d first pass on optimization of nif parsing functions from the file stream 7 years ago
Bret Curtis d785344fad purge all instances of <boost/shared_ptr.hpp>, clean up unused headers 8 years ago
scrawl aa8459b5c7 Revert "Remove redundant allocations for NIF meshes"
This reverts commit a7c5beb7c5.

Conflicts:
	components/nif/data.cpp
	components/nifbullet/bulletnifloader.cpp
	components/nifosg/nifloader.cpp
8 years ago
scrawl a7c5beb7c5 Remove redundant allocations for NIF meshes 10 years ago
scrawl e1f4a7f647 Merge branch 'master' of https://github.com/OpenMW/openmw into osg
Conflicts:
	apps/openmw/engine.cpp
	apps/openmw/mwgui/mainmenu.cpp
	apps/openmw/mwgui/windowmanagerimp.cpp
	apps/openmw/mwinput/inputmanagerimp.cpp
	apps/openmw/mwrender/animation.cpp
	apps/openmw/mwrender/debugging.cpp
	apps/openmw/mwrender/npcanimation.cpp
	apps/openmw/mwrender/renderingmanager.cpp
	apps/openmw/mwrender/sky.cpp
	components/nif/nifkey.hpp
	components/nif/nifstream.hpp
	components/nifbullet/bulletnifloader.cpp
	components/nifogre/ogrenifloader.hpp
	libs/openengine/bullet/physic.cpp
	libs/openengine/gui/manager.cpp
10 years ago
Rohit Nirmal 997347b01e Silence -Wreorder warnings. 10 years ago
scrawl 28643660d3 Change triangle indices to unsigned 10 years ago
scrawl 8c10d4badb NIF reader compiles without Ogre 10 years ago