fluidvis
|
Public Member Functions | |
EX | ShadeX () |
EX | ~ShadeX () |
EX void | clear (const string &id) |
EX void | clear () |
EX void | addResourcesFromString (const string &resources) |
EX void | addResources (const string &path) |
EX void | load () |
EX Shader & | getShader (const string &id) |
EX void | addResource (const string &id, Shader &shader) |
EX BufferedMesh & | getBufferedMesh (const string &id) |
EX void | addResource (const string &id, BufferedMesh &mesh) |
EX Skeleton & | getSkeleton (const string &id) |
EX void | addResource (const string &id, Skeleton &skeleton) |
EX UniformFloat & | getUniformFloat (const string &id) |
EX void | addResource (const string &id, UniformFloat &uFloat) |
EX UniformDouble & | getUniformDouble (const string &id) |
EX void | addResource (const string &id, UniformDouble &uDouble) |
EX UniformVector & | getUniformVector (const string &id) |
EX void | addResource (const string &id, UniformVector &uVector) |
EX UniformDVector & | getUniformDVector (const string &id) |
EX void | addResource (const string &id, UniformDVector &uDVector) |
EX UniformMatrix & | getUniformMatrix (const string &id) |
EX void | addResource (const string &id, UniformMatrix &uMatrix) |
EX UniformDMatrix & | getUniformDMatrix (const string &id) |
EX void | addResource (const string &id, UniformDMatrix &uDMatrix) |
EX Texture & | getTexture (const string &id) |
EX void | addResource (const string &id, Texture &texture) |
EX Volume & | getVolume (const string &id) |
EX void | addResource (const string &id, Volume &volume) |
EX RenderTarget & | getRenderTarget (const string &id) |
EX void | addResource (const string &id, RenderTarget &target) |
EX RenderObject & | getRenderObject (const string &id) |
EX void | addResource (const string &id, RenderObject &object) |
EX Pass & | getPass (const string &id) |
EX void | addResource (const string &id, Pass &pass) |
EX Effect & | getEffect (const string &id) |
EX void | addResource (const string &id, Effect &effect) |
EX AudioBuffer & | getAudioBuffer (const string &id) |
EX void | addResource (const string &id, AudioBuffer &buffer) |
EX AudioObject & | getAudioObject (const string &id) |
EX void | addResource (const string &id, AudioObject &object) |
EX AudioListener & | getAudioListener (const string &id) |
EX void | addResource (const string &id, AudioListener &object) |
EX AudioPass & | getAudioPass (const string &id) |
EX void | addResource (const string &id, AudioPass &object) |
EX sx::ShadeX::ShadeX | ( | ) |
default constructor
EX sx::ShadeX::~ShadeX | ( | ) |
deconstructor
EX void sx::ShadeX::addResource | ( | const string & | id, |
Shader & | shader | ||
) |
adds a new shader with identifyer id
EX void sx::ShadeX::addResource | ( | const string & | id, |
BufferedMesh & | mesh | ||
) |
adds a new mesh with identifyer id
EX void sx::ShadeX::addResource | ( | const string & | id, |
Skeleton & | skeleton | ||
) |
adds a new skeleton with identifyer id
EX void sx::ShadeX::addResource | ( | const string & | id, |
UniformFloat & | uFloat | ||
) |
adds a new uniform float with identifyer id
EX void sx::ShadeX::addResource | ( | const string & | id, |
UniformDouble & | uDouble | ||
) |
adds a new uniform double with identifyer id
EX void sx::ShadeX::addResource | ( | const string & | id, |
UniformVector & | uVector | ||
) |
adds a new uniform vector with identifyer id
EX void sx::ShadeX::addResource | ( | const string & | id, |
UniformDVector & | uDVector | ||
) |
adds a new uniform double vector with identifyer id
EX void sx::ShadeX::addResource | ( | const string & | id, |
UniformMatrix & | uMatrix | ||
) |
adds a new uniform matrix with identifyer id
EX void sx::ShadeX::addResource | ( | const string & | id, |
UniformDMatrix & | uDMatrix | ||
) |
adds a new uniform double matrix with identifyer id
EX void sx::ShadeX::addResource | ( | const string & | id, |
Texture & | texture | ||
) |
adds a new texture with identifyer id
EX void sx::ShadeX::addResource | ( | const string & | id, |
Volume & | volume | ||
) |
adds a new volume with identifyer id
EX void sx::ShadeX::addResource | ( | const string & | id, |
RenderTarget & | target | ||
) |
adds a new rendertarget with identifyer id
EX void sx::ShadeX::addResource | ( | const string & | id, |
RenderObject & | object | ||
) |
adds a new renderobject with identifyer id
EX void sx::ShadeX::addResource | ( | const string & | id, |
Pass & | pass | ||
) |
adds a new Pass with identifyer id
EX void sx::ShadeX::addResource | ( | const string & | id, |
Effect & | effect | ||
) |
adds a new Effect with identifyer id
EX void sx::ShadeX::addResource | ( | const string & | id, |
AudioBuffer & | buffer | ||
) |
adds a new AudioBuffer with identifyer id
EX void sx::ShadeX::addResource | ( | const string & | id, |
AudioObject & | object | ||
) |
adds a new AudioObject with identifyer id
EX void sx::ShadeX::addResource | ( | const string & | id, |
AudioListener & | object | ||
) |
adds a new AudioListener with identifyer id
EX void sx::ShadeX::addResource | ( | const string & | id, |
AudioPass & | object | ||
) |
adds a new AudioPass with identifyer id
EX void sx::ShadeX::addResources | ( | const string & | path | ) |
Parses a configuration file in SX language from path to load several resources. If the resources can't be loaded, an exception is thrown. To optain a specification of the format of the fileformat look at
EX void sx::ShadeX::addResourcesFromString | ( | const string & | resources | ) |
Parses a configuration string in SX language to load several resources. If the resources can't be loaded, an exception is thrown. – TODO: SPECIFY FORMAT OF CONFIGURATION STRING! – look at "doc\SX reference cards\SX language"
EX void sx::ShadeX::clear | ( | const string & | id | ) |
If a resource with identifyer id exists, the resource with the identifyer is deconstructed and removed. If no such resource exists, an exception is thrown.
id | identifyer of the resource |
an | Exception object of type EX_NODATA is thrown, if no resource with identifyer id exists |
EX void sx::ShadeX::clear | ( | ) |
Deconstructs and removes all resources.
EX AudioBuffer& sx::ShadeX::getAudioBuffer | ( | const string & | id | ) |
Searches for an AudioBuffer with identifyer id, and returns it. If no such AudioBuffer exists, a new AudioBuffer with this id is created before it is returned. If another resource than an AudioBuffer has the id, an exception is thrown.
id | identifyer of the AudioBuffer |
an | Exception object of type EX_AMBIGUOUS is thrown, if a non-effect resource with identifyer id exists |
EX AudioListener& sx::ShadeX::getAudioListener | ( | const string & | id | ) |
Searches for an AudioListener with identifyer id, and returns it. If no such AudioListener exists, a new AudioListener with this id is created before it is returned. If another resource than an AudioListener has the id, an exception is thrown.
id | identifyer of the AudioListener |
an | Exception object of type EX_AMBIGUOUS is thrown, if a non-effect resource with identifyer id exists |
EX AudioObject& sx::ShadeX::getAudioObject | ( | const string & | id | ) |
Searches for an AudioObject with identifyer id, and returns it. If no such AudioObject exists, a new AudioObject with this id is created before it is returned. If another resource than an AudioObject has the id, an exception is thrown.
id | identifyer of the AudioObject |
an | Exception object of type EX_AMBIGUOUS is thrown, if a non-effect resource with identifyer id exists |
EX AudioPass& sx::ShadeX::getAudioPass | ( | const string & | id | ) |
Searches for an AudioPass with identifyer id, and returns it. If no such AudioPass exists, a new AudioPass with this id is created before it is returned. If another resource than an AudioPass has the id, an exception is thrown.
id | identifyer of the AudioPass |
an | Exception object of type EX_AMBIGUOUS is thrown, if a non-effect resource with identifyer id exists |
EX BufferedMesh& sx::ShadeX::getBufferedMesh | ( | const string & | id | ) |
Searches for a BufferedMesh with identifyer id, and returns it. If no such BufferedMesh exists, a new BufferedMesh with this id is created before it is returned. If another resource than a BufferedMesh has the id, an exception is thrown.
id | identifyer of the BufferedMesh |
an | Exception object of type EX_AMBIGUOUS is thrown, if a non-BufferedMesh resource with identifyer id exists |
EX Effect& sx::ShadeX::getEffect | ( | const string & | id | ) |
Searches for an Effect with identifyer id, and returns it. If no such Effect exists, a new Effect with this id is created before it is returned. If another resource than a Effect has the id, an exception is thrown.
id | identifyer of the Effect |
an | Exception object of type EX_AMBIGUOUS is thrown, if a non-effect resource with identifyer id exists |
EX Pass& sx::ShadeX::getPass | ( | const string & | id | ) |
Searches for a Pass with identifyer id, and returns it. If no such Pass exists, a new Pass with this id is created before it is returned. If another resource than a Pass has the id, an exception is thrown.
id | identifyer of the Pass |
an | Exception object of type EX_AMBIGUOUS is thrown, if a non-pass resource with identifyer id exists |
EX RenderObject& sx::ShadeX::getRenderObject | ( | const string & | id | ) |
Searches for a RenderObject with identifyer id, and returns it. If no such RenderObject exists, a new RenderObject with this id is created before it is returned. If another resource than a RenderObject has the id, an exception is thrown.
id | identifyer of the RenderObject |
an | Exception object of type EX_AMBIGUOUS is thrown, if a non-renderobject resource with identifyer id exists |
EX RenderTarget& sx::ShadeX::getRenderTarget | ( | const string & | id | ) |
Searches for a RenderTarget with identifyer id, and returns it. If no such RenderTarget exists, a new RenderTarget with this id is created before it is returned. If another resource than a RenderTarget has the id, an exception is thrown.
id | identifyer of the RenderTarget |
an | Exception object of type EX_AMBIGUOUS is thrown, if a non-rendertarget resource with identifyer id exists |
EX Shader& sx::ShadeX::getShader | ( | const string & | id | ) |
Searches for the shader with identifyer id, and returns it. If no such shader exists, a new shader with this id is created before it is returned. If another resource than a shader has the id, an exception is thrown.
id | identifyer of the shader |
an | Exception object of type EX_AMBIGUOUS is thrown, if a non-shader resource with identifyer id exists |
EX Skeleton& sx::ShadeX::getSkeleton | ( | const string & | id | ) |
Searches for a Skeleton with identifyer id, and returns it. If no such Skeleton exists, a new Skeleton with this id is created before it is returned. If another resource than a Skeleton has the id, an exception is thrown.
id | identifyer of the Skeleton |
an | Exception object of type EX_AMBIGUOUS is thrown, if a non-Skeleton resource with identifyer id exists |
EX Texture& sx::ShadeX::getTexture | ( | const string & | id | ) |
Searches for a Texture with identifyer id, and returns it. If no such Texture exists, a new Texture with this id is created before it is returned. If another resource than a Texture has the id, an exception is thrown.
id | identifyer of the Texture |
an | Exception object of type EX_AMBIGUOUS is thrown, if a non-texture resource with identifyer id exists |
EX UniformDMatrix& sx::ShadeX::getUniformDMatrix | ( | const string & | id | ) |
Searches for a uniform double matrix with identifyer id, and returns it. If no such uniform double matrix exists, a new uniform double matrix with this id is created before it is returned. If another resource than a uniform double matrix has the id, an exception is thrown.
id | identifyer of the uniform double matrix |
an | Exception object of type EX_AMBIGUOUS is thrown, if a non-uniform double matrix resource with identifyer id exists |
EX UniformDouble& sx::ShadeX::getUniformDouble | ( | const string & | id | ) |
Searches for a uniform double with identifyer id, and returns it. If no such uniform double exists, a new uniform double with this id is created before it is returned. If another resource than a uniform double has the id, an exception is thrown.
id | identifyer of the uniform double |
an | Exception object of type EX_AMBIGUOUS is thrown, if a non-uniform double resource with identifyer id exists |
EX UniformDVector& sx::ShadeX::getUniformDVector | ( | const string & | id | ) |
Searches for a uniform double vector with identifyer id, and returns it. If no such uniform double vector exists, a new uniform double vector with this id is created before it is returned. If another resource than a uniform double vector has the id, an exception is thrown.
id | identifyer of the uniform double vector |
an | Exception object of type EX_AMBIGUOUS is thrown, if a non-uniform double vector resource with identifyer id exists |
EX UniformFloat& sx::ShadeX::getUniformFloat | ( | const string & | id | ) |
Searches for a uniform float with identifyer id, and returns it. If no such uniform float exists, a new uniform float with this id is created before it is returned. If another resource than a uniform float has the id, an exception is thrown.
id | identifyer of the uniform float |
an | Exception object of type EX_AMBIGUOUS is thrown, if a non-uniform float resource with identifyer id exists |
EX UniformMatrix& sx::ShadeX::getUniformMatrix | ( | const string & | id | ) |
Searches for a uniform matrix with identifyer id, and returns it. If no such uniform matrix exists, a new uniform matrix with this id is created before it is returned. If another resource than a uniform matrix has the id, an exception is thrown.
id | identifyer of the uniform matrix |
an | Exception object of type EX_AMBIGUOUS is thrown, if a non-uniform matrix resource with identifyer id exists |
EX UniformVector& sx::ShadeX::getUniformVector | ( | const string & | id | ) |
Searches for a uniform vector with identifyer id, and returns it. If no such uniform vector exists, a new uniform vector with this id is created before it is returned. If another resource than a uniform vector has the id, an exception is thrown.
id | identifyer of the uniform vector |
an | Exception object of type EX_AMBIGUOUS is thrown, if a non-uniform vector resource with identifyer id exists |
EX Volume& sx::ShadeX::getVolume | ( | const string & | id | ) |
Searches for a Volume with identifyer id, and returns it. If no such Volume exists, a new Volume with this id is created before it is returned. If another resource than a Volume has the id, an exception is thrown.
id | identifyer of the Volume |
an | Exception object of type EX_AMBIGUOUS is thrown, if a non-texture resource with identifyer id exists |
EX void sx::ShadeX::load | ( | ) |
Tries to initialize as much resources as possible. If some resources are still not loaded after trying to load every single one, an exception is thrown.
an exception Exception of type EX_INIT