diff --git a/samples/01_ModelLoading/ModelLoading.cpp b/samples/01_ModelLoading/ModelLoading.cpp index 5e4ceddf4..6013abf52 100644 --- a/samples/01_ModelLoading/ModelLoading.cpp +++ b/samples/01_ModelLoading/ModelLoading.cpp @@ -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. @@ -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); diff --git a/src/Engine/CMakeLists.txt b/src/Engine/CMakeLists.txt index 9bce87a0c..9ca98b0d7 100644 --- a/src/Engine/CMakeLists.txt +++ b/src/Engine/CMakeLists.txt @@ -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}