Project

General

Profile

SO3Engine
SO3::ALSceneLoader Class Reference

#include <ALSceneLoader.h>

Public Member Functions

 ALSceneLoader (SScene *scene, std::string filename, std::string group, unsigned int flags, float scale=1.0f)
 
 ALSceneLoader (std::string filename, std::string group, unsigned int flags, float scale=1.0f)
 
 ~ALSceneLoader ()
 
bool loadFile (const std::string &sceneName, SNode *parent, std::vector< SNode * > &objects, std::vector< SMaterial * > &materials)
 
bool convertFile (boost::filesystem::path expFolder, const std::string &sceneName)
 
void createDirectory (boost::filesystem::path path)
 
boost::filesystem::path getFilePath ()
 
unsigned int getFlags ()
 

Detailed Description

Definition at line 43 of file ALSceneLoader.h.

Constructor & Destructor Documentation

◆ ALSceneLoader() [1/2]

SO3::ALSceneLoader::ALSceneLoader ( SScene scene,
std::string  filename,
std::string  group,
unsigned int  flags,
float  scale = 1.0f 
)

Constructor Do nothing.

Definition at line 15 of file ALSceneLoader.cpp.

◆ ALSceneLoader() [2/2]

SO3::ALSceneLoader::ALSceneLoader ( std::string  filename,
std::string  group,
unsigned int  flags,
float  scale = 1.0f 
)

Definition at line 42 of file ALSceneLoader.cpp.

◆ ~ALSceneLoader()

SO3::ALSceneLoader::~ALSceneLoader ( )

Destructor.

Definition at line 69 of file ALSceneLoader.cpp.

Member Function Documentation

◆ convertFile()

bool SO3::ALSceneLoader::convertFile ( boost::filesystem::path  expFolder,
const std::string &  sceneName 
)

Definition at line 129 of file ALSceneLoader.cpp.

◆ createDirectory()

void SO3::ALSceneLoader::createDirectory ( boost::filesystem::path  path)

This function is called when you export the converted objects. It create the needed directory ( /Meshes, /Textures ).

Definition at line 189 of file ALSceneLoader.cpp.

◆ getFilePath()

boost::filesystem::path SO3::ALSceneLoader::getFilePath ( )

Definition at line 207 of file ALSceneLoader.cpp.

◆ getFlags()

unsigned int SO3::ALSceneLoader::getFlags ( )
inline

Definition at line 71 of file ALSceneLoader.h.

◆ loadFile()

bool SO3::ALSceneLoader::loadFile ( const std::string &  sceneName,
SNode parent,
std::vector< SNode * > &  objects,
std::vector< SMaterial * > &  materials 
)

Definition at line 74 of file ALSceneLoader.cpp.


The documentation for this class was generated from the following files: