Skip to content

Commit

Permalink
Fix the build
Browse files Browse the repository at this point in the history
  • Loading branch information
kimkulling committed Nov 23, 2023
1 parent 7fe38ba commit 0533516
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions samples/01_ModelLoading/ModelLoading.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ static constexpr c8 Tag[] = "ModelLoadingApp";
/// @brief The example application, will create the renderer and loads a model.
class ModelLoadingApp : public App::AppBase {
String mAssetFolder; ///< The asset folder, here we will locate our assets.
App::Camera *mCamera; ///< The camera component.
App::CameraComponent *mCamera; ///< The camera component.
TransformMatrixBlock mTransformMatrix; ///< The tansform block.
TransformComponent::NodePtr mModelNode; ///< The mode node.

Expand Down Expand Up @@ -82,7 +82,7 @@ class ModelLoadingApp : public App::AppBase {
World *world = getStage()->addActiveWorld("model");
Entity *entity = assimpWrapper.getEntity();
Entity *camEntity = new Entity("camera", *getIdContainer(), world);
mCamera = (Camera*)camEntity->createComponent(ComponentType::CameraComponentType);
mCamera = (CameraComponent*)camEntity->createComponent(ComponentType::CameraComponentType);
mCamera->setProjectionParameters(60.f, (f32)windowsRect.width, (f32)windowsRect.height, 0.01f, 1000.f);
world->setActiveCamera(mCamera);

Expand Down
1 change: 1 addition & 0 deletions src/Engine/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -501,6 +501,7 @@ ADD_LIBRARY( osre SHARED
${resources_src}
${renderbackend_src}
${renderbackend_oglrenderer_src}
${renderbackend_2d_src}
${scene_src}
${scene_shader_src}
${threading_src}
Expand Down

0 comments on commit 0533516

Please sign in to comment.