OGRE
1.8
Object-Oriented Graphics Rendering Engine
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
OgreParticleScriptCompiler.h
Go to the documentation of this file.
1
/*
2
-----------------------------------------------------------------------------
3
This source file is part of OGRE
4
(Object-oriented Graphics Rendering Engine)
5
For the latest info, see http://www.ogre3d.org/
6
7
Copyright (c) 2000-2013 Torus Knot Software Ltd
8
9
Permission is hereby granted, free of charge, to any person obtaining a copy
10
of this software and associated documentation files (the "Software"), to deal
11
in the Software without restriction, including without limitation the rights
12
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13
copies of the Software, and to permit persons to whom the Software is
14
furnished to do so, subject to the following conditions:
15
16
The above copyright notice and this permission notice shall be included in
17
all copies or substantial portions of the Software.
18
19
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
25
THE SOFTWARE.
26
-----------------------------------------------------------------------------
27
*/
28
29
#ifndef __PARTICLESCRIPTCOMPILER_H_
30
#define __PARTICLESCRIPTCOMPILER_H_
31
32
#include "
OgreScriptCompiler.h
"
33
34
namespace
Ogre{
35
36
class
ParticleScriptCompiler;
46
class
_OgreExport
ParticleScriptCompilerListener
:
public
ScriptCompilerListener
47
{
48
public
:
49
ParticleScriptCompilerListener
();
51
virtual
bool
processNode(ScriptNodeList::iterator &iter, ScriptNodeList::iterator &end,
ParticleScriptCompiler
*);
53
virtual
ParticleSystem
*getParticleSystem(
const
String
&name,
const
String
&group);
54
};
55
56
class
_OgreExport
ParticleScriptCompiler
:
public
ScriptCompiler
57
{
58
public
:
59
ParticleScriptCompiler
();
60
62
void
setListener(
ParticleScriptCompilerListener
*listener);
64
ParticleSystem
*getParticleSystem()
const
;
65
protected
:
67
bool
compileImpl(ScriptNodeListPtr nodes);
69
bool
processNode(ScriptNodeList::iterator &i, ScriptNodeList::iterator &end);
71
ScriptNodeListPtr loadImportPath(
const
String
&name);
73
void
preParse();
75
bool
errorRaised(
const
ScriptCompilerErrorPtr &error);
76
private
:
// Handlers for compiling script elements
77
void
compileParticleSystem(
const
ScriptNodePtr &node);
78
void
compileEmitter(
const
ScriptNodePtr &node);
79
void
compileAffector(
const
ScriptNodePtr &node);
80
String
getParameterValue(ScriptNodeList::iterator &i, ScriptNodeList::iterator &end);
81
private
:
// Listener and context data
82
ParticleScriptCompilerListener
*
mListener
;
83
84
// The system being compiled
85
ParticleSystem
*
mSystem
;
86
};
90
}
91
92
#endif
Ogre::ParticleSystem
Class defining particle system based special effects.
Definition:
OgreParticleSystem.h:67
_OgreExport
#define _OgreExport
Definition:
OgrePlatform.h:233
Ogre::ParticleScriptCompiler::mSystem
ParticleSystem * mSystem
Definition:
OgreParticleScriptCompiler.h:85
Ogre::ScriptCompilerListener
This is a listener for the compiler.
Definition:
OgreScriptCompiler.h:344
Ogre::ParticleScriptCompiler
Definition:
OgreParticleScriptCompiler.h:56
Ogre::ParticleScriptCompilerListener
This is the specific listener for the particle script compiler.
Definition:
OgreParticleScriptCompiler.h:46
OgreScriptCompiler.h
Ogre::String
_StringBase String
Definition:
OgrePrerequisites.h:466
Ogre::ScriptCompiler
This is the main class for the compiler.
Definition:
OgreScriptCompiler.h:187
Ogre::ParticleScriptCompiler::mListener
ParticleScriptCompilerListener * mListener
Definition:
OgreParticleScriptCompiler.h:82
OgreMain
include
OgreParticleScriptCompiler.h
Generated on Fri Jun 20 2014 00:48:11 for OGRE by
1.8.7