forked from teamnwah/openmw-tes3coop
builds now
This commit is contained in:
parent
24399a45c1
commit
a1e48b0feb
5 changed files with 19 additions and 3 deletions
|
@ -189,7 +189,7 @@ endif()
|
|||
|
||||
find_package(OGRE REQUIRED)
|
||||
find_package(MyGUI REQUIRED)
|
||||
find_package(Boost REQUIRED COMPONENTS system filesystem program_options thread)
|
||||
find_package(Boost REQUIRED COMPONENTS system filesystem program_options thread wave)
|
||||
find_package(OIS REQUIRED)
|
||||
find_package(OpenAL REQUIRED)
|
||||
find_package(Bullet REQUIRED)
|
||||
|
|
|
@ -101,7 +101,8 @@ target_link_libraries(openmw
|
|||
${BULLET_LIBRARIES}
|
||||
${MYGUI_LIBRARIES}
|
||||
${MYGUI_PLATFORM_LIBRARIES}
|
||||
components
|
||||
"shiny"
|
||||
"shiny.OgrePlatform"
|
||||
)
|
||||
|
||||
# Fix for not visible pthreads functions for linker with glibc 2.15
|
||||
|
|
|
@ -14,6 +14,9 @@
|
|||
#include <OgreCompositionPass.h>
|
||||
#include <OgreHardwarePixelBuffer.h>
|
||||
|
||||
#include <extern/shiny/Main/Factory.hpp>
|
||||
#include <extern/shiny/Platforms/Ogre/OgrePlatform.hpp>
|
||||
|
||||
#include <components/esm/loadstat.hpp>
|
||||
#include <components/settings/settings.hpp>
|
||||
|
||||
|
@ -47,6 +50,11 @@ RenderingManager::RenderingManager (OEngine::Render::OgreRenderer& _rend, const
|
|||
|
||||
mWater = 0;
|
||||
|
||||
// material system
|
||||
sh::OgrePlatform* platform = new sh::OgrePlatform("General", "./");
|
||||
platform->setCacheFolder ("./");
|
||||
mFactory = new sh::Factory(platform);
|
||||
|
||||
//The fog type must be set before any terrain objects are created as if the
|
||||
//fog type is set to FOG_NONE then the initially created terrain won't have any fog
|
||||
configureFog(1, ColourValue(1,1,1));
|
||||
|
|
|
@ -43,6 +43,11 @@ namespace MWWorld
|
|||
class CellStore;
|
||||
}
|
||||
|
||||
namespace sh
|
||||
{
|
||||
class Factory;
|
||||
}
|
||||
|
||||
namespace MWRender
|
||||
{
|
||||
|
||||
|
@ -174,6 +179,8 @@ class RenderingManager: private RenderingInterface, public Ogre::WindowEventList
|
|||
|
||||
private:
|
||||
|
||||
sh::Factory* mFactory;
|
||||
|
||||
void setAmbientMode();
|
||||
|
||||
void setMenuTransparency(float val);
|
||||
|
|
2
extern/shiny
vendored
2
extern/shiny
vendored
|
@ -1 +1 @@
|
|||
Subproject commit 51b573fc66ac9a61fe780070692cc600a89f51dd
|
||||
Subproject commit 3928949316713d0c8aaf1ad564734d24ad773be9
|
Loading…
Reference in a new issue