converted to Jolt physics
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
project(sceneloader)
|
||||
set(CMAKE_CXX_STANDARD 17)
|
||||
add_library(sceneloader STATIC loader.cpp)
|
||||
target_include_directories(sceneloader PUBLIC .)
|
||||
target_link_libraries(sceneloader PUBLIC OgreMain PRIVATE pugixml GameData)
|
||||
target_link_libraries(sceneloader PUBLIC OgreMain PRIVATE pugixml GameData physics)
|
||||
target_link_libraries(sceneloader PUBLIC OgreTerrain)
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,12 +1,13 @@
|
||||
#ifndef LOADER_H_
|
||||
#define LOADER_H_
|
||||
#include <pugixml.hpp>
|
||||
#include <flecs.h>
|
||||
#include <OgreColourValue.h>
|
||||
#include <OgreQuaternion.h>
|
||||
#include <OgreResourceGroupManager.h>
|
||||
#include <OgreString.h>
|
||||
#include <OgrePlugin.h>
|
||||
#include <OgreCodec.h>
|
||||
#include <flecs.h>
|
||||
|
||||
class SceneLoader {
|
||||
public:
|
||||
@@ -23,6 +24,9 @@ public:
|
||||
{
|
||||
return mBackgroundColour;
|
||||
}
|
||||
static void setupPhysicsBody(Ogre::SceneNode *node,
|
||||
Ogre::MovableObject *entity,
|
||||
flecs::entity base_e);
|
||||
|
||||
protected:
|
||||
void writeNode(pugi::xml_node &parentXML, const Ogre::SceneNode *node);
|
||||
@@ -68,7 +72,6 @@ protected:
|
||||
Ogre::Light *pLight);
|
||||
void processLightSourceSize(pugi::xml_node &XMLNode,
|
||||
Ogre::Light *pLight);
|
||||
|
||||
Ogre::SceneManager *mSceneMgr;
|
||||
Ogre::SceneNode *mAttachNode;
|
||||
Ogre::String m_sGroupName;
|
||||
|
||||
Reference in New Issue
Block a user