Skip to content

Commit

Permalink
Update engine
Browse files Browse the repository at this point in the history
  • Loading branch information
jxarco committed Dec 10, 2024
1 parent 515bdf9 commit ba18b7f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/engine/sample_engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include "framework/nodes/omni_light_3d.h"
#include "framework/nodes/directional_light_3d.h"
#include "framework/parsers/parse_scene.h"
#include "framework/parsers/parse_gltf.h"
#include "framework/camera/camera.h"
#include "framework/camera/camera_3d.h"
#include "framework/input.h"
Expand All @@ -34,6 +35,8 @@

sVPETContext vpet;

GltfParser gltf_parser;

int SampleEngine::initialize(Renderer* renderer, sEngineConfiguration configuration)
{
int error = Engine::initialize(renderer, configuration);
Expand Down Expand Up @@ -1100,7 +1103,9 @@ void SampleEngine::append_glb(const std::string& filename)
{
std::vector<Node*> entities;

parse_scene(filename.c_str(), entities, true, scene_root);
gltf_parser.push_scene_root(scene_root);

gltf_parser.parse(filename.c_str(), entities, PARSE_NO_FLAGS);

if (!entities.empty()) {
assert(!scene_root);
Expand Down

0 comments on commit ba18b7f

Please sign in to comment.