mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 19:11:50 +00:00
extract ModelsGenerator::fromCustom
This commit is contained in:
parent
f38f84c779
commit
c95c97430a
2 changed files with 69 additions and 49 deletions
|
|
@ -1,6 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
#include "graphics/commons/Model.hpp"
|
||||
#include "maths/aabb.hpp"
|
||||
|
||||
struct ItemDef;
|
||||
class Assets;
|
||||
|
|
@ -11,4 +12,12 @@ public:
|
|||
static model::Model generate(
|
||||
const ItemDef& def, const Content& content, const Assets& assets
|
||||
);
|
||||
|
||||
static model::Model fromCustom(
|
||||
const Assets& assets,
|
||||
const std::vector<AABB>& modelBoxes,
|
||||
const std::vector<std::string>& modelTextures,
|
||||
const std::vector<glm::vec3>& points,
|
||||
bool lighting
|
||||
);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue