mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 12:31:51 +00:00
add src/coders/obj
This commit is contained in:
parent
a9640fff36
commit
e4f9bd03b7
11 changed files with 241 additions and 28 deletions
|
|
@ -26,6 +26,10 @@ class DrawContext;
|
|||
class ModelBatch;
|
||||
struct EngineSettings;
|
||||
|
||||
namespace model {
|
||||
struct Model;
|
||||
}
|
||||
|
||||
class WorldRenderer {
|
||||
Engine* engine;
|
||||
Level* level;
|
||||
|
|
@ -36,6 +40,8 @@ class WorldRenderer {
|
|||
std::unique_ptr<Skybox> skybox;
|
||||
std::unique_ptr<Batch3D> batch3d;
|
||||
std::unique_ptr<ModelBatch> modelBatch;
|
||||
|
||||
std::unique_ptr<model::Model> model;
|
||||
bool drawChunk(size_t index, Camera* camera, Shader* shader, bool culling);
|
||||
void drawChunks(Chunks* chunks, Camera* camera, Shader* shader);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue