#include <spToolScriptLoader.hpp>
The ScriptLoader can be used to load several textures, sounds and geometry objects. The basic idea of the "ConstructiveScriptLoader" is to create 3D scenes very fast and easy. Here is an example of a script file:
// // Comments are equal to those in C/C++ // // // Changes the current working directory to "media/" (only internally; your program will not be affected) // workdir "media/" // // // Loads the "media/HLC.png" file, resizes the texture to 32x32 texels, sets the min & mag filter // texture: { file = "HLC.png"; size = vec(32, 32); filter = "bilinear"; }
enum sp::tool::ScriptLoader::ECommandTypes [protected] |
sp::tool::ScriptLoader::ScriptLoader | ( | scene::SceneGraph * | ActiveSceneGraph = 0 , |
|
audio::SoundDevice * | ActiveSoundDevice = 0 | |||
) |
virtual sp::tool::ScriptLoader::~ScriptLoader | ( | ) | [virtual] |
void sp::tool::ScriptLoader::applyAnimation | ( | scene::SceneNode * | Obj | ) | [protected] |
void sp::tool::ScriptLoader::applySurfaces | ( | scene::Mesh * | Obj | ) | [protected] |
bool sp::tool::ScriptLoader::checkEOF | ( | ) | const [protected] |
virtual void sp::tool::ScriptLoader::clearLists | ( | ) | [virtual] |
virtual bool sp::tool::ScriptLoader::examineBlockAnim | ( | ) | [protected, virtual] |
virtual bool sp::tool::ScriptLoader::examineBlockBillboard | ( | ) | [protected, virtual] |
virtual bool sp::tool::ScriptLoader::examineBlockCamera | ( | ) | [protected, virtual] |
virtual bool sp::tool::ScriptLoader::examineBlockFrame | ( | ) | [protected, virtual] |
virtual bool sp::tool::ScriptLoader::examineBlockLight | ( | ) | [protected, virtual] |
bool sp::tool::ScriptLoader::examineBlockMaterialNode | ( | scene::MaterialNode * | Obj | ) | [protected] |
virtual bool sp::tool::ScriptLoader::examineBlockMesh | ( | ) | [protected, virtual] |
bool sp::tool::ScriptLoader::examineBlockNode | ( | scene::SceneNode * | Obj | ) | [protected] |
virtual bool sp::tool::ScriptLoader::examineBlockNode | ( | ) | [protected, virtual] |
virtual bool sp::tool::ScriptLoader::examineBlockShader | ( | ) | [protected, virtual] |
virtual bool sp::tool::ScriptLoader::examineBlockSound | ( | ) | [protected, virtual] |
virtual bool sp::tool::ScriptLoader::examineBlockSurface | ( | ) | [protected, virtual] |
virtual bool sp::tool::ScriptLoader::examineBlockTerrain | ( | ) | [protected, virtual] |
virtual bool sp::tool::ScriptLoader::examineBlockTexture | ( | ) | [protected, virtual] |
virtual bool sp::tool::ScriptLoader::examineBlockTriangle | ( | ) | [protected, virtual] |
virtual bool sp::tool::ScriptLoader::examineBlockVertex | ( | ) | [protected, virtual] |
std::vector<scene::Billboard*> sp::tool::ScriptLoader::getBillboardList | ( | ) | const [inline] |
std::vector<scene::Camera*> sp::tool::ScriptLoader::getCameraList | ( | ) | const [inline] |
std::vector<scene::Light*> sp::tool::ScriptLoader::getLightList | ( | ) | const [inline] |
io::stringc sp::tool::ScriptLoader::getLinesIndicate | ( | ) | const [protected] |
std::vector<scene::Mesh*> sp::tool::ScriptLoader::getMeshList | ( | ) | const [inline] |
std::vector<scene::SceneNode*> sp::tool::ScriptLoader::getNodeList | ( | ) | const [inline] |
std::vector<audio::Sound*> sp::tool::ScriptLoader::getSoundList | ( | ) | const [inline] |
std::vector<video::Texture*> sp::tool::ScriptLoader::getTextureList | ( | ) | const [inline] |
virtual io::stringc sp::tool::ScriptLoader::getVersion | ( | ) | const [virtual] |
bool sp::tool::ScriptLoader::isParam | ( | const io::stringc & | Name | ) | [protected] |
bool sp::tool::ScriptLoader::loadScriptFile | ( | const io::stringc & | Filename | ) |
Loads a "SoftPixel Engine" script file.
Filename,: | Script filename which is to be loaded. |
void sp::tool::ScriptLoader::printErrorLI | ( | const io::stringc & | Message | ) | const [protected] |
void sp::tool::ScriptLoader::printWarningLI | ( | const io::stringc & | Message | ) | const [protected] |
bool sp::tool::ScriptLoader::readCommandAccess | ( | ) | [protected] |
bool sp::tool::ScriptLoader::readCommandBlock | ( | ) | [protected] |
bool sp::tool::ScriptLoader::readCommandDirect | ( | ) | [protected] |
bool sp::tool::ScriptLoader::readCommandForLoop | ( | ) | [protected] |
bool sp::tool::ScriptLoader::readCommandMacro | ( | ) | [protected] |
bool sp::tool::ScriptLoader::readLine | ( | ) | [protected] |
SCommand sp::tool::ScriptLoader::readNextCommand | ( | s32 | AllowedCommands = CMD_ALL |
) | const [protected] |
io::stringc sp::tool::ScriptLoader::readNextLine | ( | ) | [protected] |
bool sp::tool::ScriptLoader::readNextParameter | ( | SParameter & | Param, | |
s32 | BeginPos = 0 | |||
) | [protected] |
bool sp::tool::ScriptLoader::readNextParameterValue | ( | SParameter & | Param, | |
io::stringc & | CurLineContext | |||
) | [protected] |
bool sp::tool::ScriptLoader::readScript | ( | ) | [protected] |
s32 sp::tool::ScriptLoader::readString | ( | io::stringc & | Str, | |
s32 | BeginPos = 0 | |||
) | const [protected] |
void sp::tool::ScriptLoader::setConstant | ( | const io::stringc & | Name, | |
const io::stringc & | Value | |||
) |
SContainer<scene::Camera> sp::tool::ScriptLoader::Cameras_ [protected] |
SAnimation sp::tool::ScriptLoader::CurAnim_ [protected] |
SCommand sp::tool::ScriptLoader::CurCommand_ [protected] |
u32 sp::tool::ScriptLoader::CurLineNr_ [protected] |
SParameter sp::tool::ScriptLoader::CurParam_ [protected] |
video::MeshBuffer* sp::tool::ScriptLoader::CurSurface_ [protected] |
std::list<video::MeshBuffer*> sp::tool::ScriptLoader::CurSurfaceList_ [protected] |
io::File* sp::tool::ScriptLoader::File_ [protected] |
io::FileSystem sp::tool::ScriptLoader::FileSys_ [protected] |
std::map<std::string, bool> sp::tool::ScriptLoader::InternalUniformMap_ [protected] |
SContainer<scene::Light> sp::tool::ScriptLoader::Lights_ [protected] |
io::stringc sp::tool::ScriptLoader::Line_ [protected] |
std::map<std::string, SLoopRange> sp::tool::ScriptLoader::LoopMap_ [protected] |
SContainer<scene::Mesh> sp::tool::ScriptLoader::Meshes_ [protected] |
std::map<std::string, scene::SceneNode*> sp::tool::ScriptLoader::NodeMap_ [protected] |
SContainer<scene::SceneNode> sp::tool::ScriptLoader::Nodes_ [protected] |
std::map<std::string, SParameter> sp::tool::ScriptLoader::ParamMap_ [protected] |
SContainer<audio::Sound> sp::tool::ScriptLoader::Sounds_ [protected] |
std::map<std::string, video::Texture*> sp::tool::ScriptLoader::TextureMap_ [protected] |
SContainer<video::Texture> sp::tool::ScriptLoader::Textures_ [protected] |
io::stringc sp::tool::ScriptLoader::Trimed_ [protected] |
std::map<std::string, io::stringc> sp::tool::ScriptLoader::UniformMap_ [protected] |
std::map<std::string, SParameter> sp::tool::ScriptLoader::VariableMap_ [protected] |
io::stringc sp::tool::ScriptLoader::WorkDir_ [protected] |