5 Commits

Author SHA1 Message Date
yvt
a2257a6fb7
Change the return type of VoxelModeLoader::Load to Handle<_> 2019-07-23 21:42:21 +09:00
yvt
eabb77fcce
Update VoxelModel
- Use `unique_ptr` instead of manually memory management
- All of its methods now perform bounds checking in release builds. The
  exception is `*Unchecked` methods.
- Use an anonymous namespace for local definitions in `VoxelModel.cpp`
- `VoxelModel::LoadKV6` methods now returns `Handle<_>` and accepts
  `IStream &`.
- Delete the copy constructor and assignment operator
- Remove debug code
2019-07-23 21:39:56 +09:00
yvt
830db57c01
Require rvalue for Handle::Unmanage 2019-07-20 16:38:21 +09:00
yvt
76908188ab
Fix indentation 2019-05-25 14:32:52 +09:00
yvt
5e0cb27a4d
Add VoxelModelLoader
This new loader allows additional transformation on voxel models, e.g.,
setting a new origin point and replacing the material ID of all voxels,
based on a metadata file placed next to KV6 files.
2019-05-25 14:29:14 +09:00