libmoldeo (Moldeo 1.0 Core)
1.0
libmoldeo is the group of objects and functions that executes the basic operations of Moldeo 1.0 Platform.
moPrePlugin.h
Ir a la documentación de este archivo.
1
/*******************************************************************************
2
3
moPrePlugin.h
4
5
****************************************************************************
6
* *
7
* This source is free software; you can redistribute it and/or modify *
8
* it under the terms of the GNU General Public License as published by *
9
* the Free Software Foundation; either version 2 of the License, or *
10
* (at your option) any later version. *
11
* *
12
* This code is distributed in the hope that it will be useful, but *
13
* WITHOUT ANY WARRANTY; without even the implied warranty of *
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
15
* General Public License for more details. *
16
* *
17
* A copy of the GNU General Public License is available on the World *
18
* Wide Web at <http://www.gnu.org/copyleft/gpl.html>. You can also *
19
* obtain it by writing to the Free Software Foundation, *
20
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
21
* *
22
****************************************************************************
23
24
Copyright(C) 2006 Fabricio Costa
25
26
Authors:
27
Fabricio Costa
28
29
30
*******************************************************************************/
31
32
#ifndef __MO_PRE_PLUGIN_H__
33
#define __MO_PRE_PLUGIN_H__
34
35
#include "
moBasePlugin.h
"
36
#include "
moPreEffect.h
"
37
38
class
LIBMOLDEO_API
moPreEffectFactory
39
{
40
public
:
41
moPreEffectFactory
() {}
42
virtual
~
moPreEffectFactory
();
43
virtual
moPreEffect
* Create(
void
) = 0;
44
virtual
void
Destroy(
moPreEffect
* fx) = 0;
45
};
46
47
typedef
moPreEffectFactory
*(
MO_PLG_ENTRY
*
CreatePreEffectFactoryFunction
)();
48
typedef
void(
MO_PLG_ENTRY
*
DestroyPreEffectFactoryFunction
)();
49
50
class
LIBMOLDEO_API
moPrePlugin
51
{
52
public
:
53
moPreEffect
**
array
;
54
int
n
;
55
56
CreatePreEffectFactoryFunction
CreatePreEffectFactory
;
57
DestroyPreEffectFactoryFunction
DestroyPreEffectFactory
;
58
59
moPreEffectFactory
*
m_factory
;
60
61
moPrePlugin
() { handle = NULL; n = 0; array = NULL; m_factory = NULL;}
62
moPrePlugin
(
moText
plugin_file) { handle = NULL; n = 0; array = NULL; m_factory = NULL; Load(plugin_file); }
63
virtual
~moPrePlugin
() {
if
(handle != NULL) Unload(); }
64
65
void
Load(
moText
plugin_file);
66
void
Unload();
67
moPreEffect
* Create();
68
bool
Destroy(
moPreEffect
*preeffect);
69
moText
GetName
() {
return
name; }
70
private
:
71
moText
name
;
72
MOpluginHandle
handle
;
73
};
74
75
moDeclareExportedDynamicArray
(
moPrePlugin
*, moPrePluginsArray );
76
77
LIBMOLDEO_API
moPreEffect
*
moNewPreEffect
(
moText
effect_name, moPrePluginsArray &plugins);
78
LIBMOLDEO_API
bool
moDeletePreEffect
(
moPreEffect
* effect, moPrePluginsArray &plugins);
79
80
#endif
81
moPrePlugin::~moPrePlugin
virtual ~moPrePlugin()
Definition:
moPrePlugin.h:63
CreatePreEffectFactoryFunction
moPreEffectFactory *(MO_PLG_ENTRY * CreatePreEffectFactoryFunction)()
Definition:
moPrePlugin.h:47
moPrePlugin::n
int n
Definition:
moPrePlugin.h:54
moPrePlugin::CreatePreEffectFactory
CreatePreEffectFactoryFunction CreatePreEffectFactory
Definition:
moPrePlugin.h:56
moDeletePreEffect
LIBMOLDEO_API bool moDeletePreEffect(moPreEffect *effect, moPrePluginsArray &plugins)
Definition:
moPrePlugin.cpp:198
moPrePlugin
Definition:
moPrePlugin.h:50
moPreEffect
clase base para definir Pre-Efectos.
Definition:
moPreEffect.h:59
LIBMOLDEO_API
#define LIBMOLDEO_API
Definition:
moTypes.h:180
MO_PLG_ENTRY
#define MO_PLG_ENTRY
Definition:
moBasePlugin.h:46
moNewPreEffect
LIBMOLDEO_API moPreEffect * moNewPreEffect(moText effect_name, moPrePluginsArray &plugins)
Definition:
moPrePlugin.cpp:149
moText0
clase de para manejar textos
Definition:
moText.h:75
moDeclareExportedDynamicArray
moDeclareExportedDynamicArray(moPrePlugin *, moPrePluginsArray)
moPrePlugin::handle
MOpluginHandle handle
Definition:
moPrePlugin.h:72
moPrePlugin::m_factory
moPreEffectFactory * m_factory
Definition:
moPrePlugin.h:59
moPrePlugin::moPrePlugin
moPrePlugin(moText plugin_file)
Definition:
moPrePlugin.h:62
moPrePlugin::array
moPreEffect ** array
Definition:
moPrePlugin.h:53
moPreEffect.h
moPrePlugin::GetName
moText GetName()
Definition:
moPrePlugin.h:69
MOpluginHandle
void * MOpluginHandle
Definition:
moBasePlugin.h:44
moPreEffectFactory
Definition:
moPrePlugin.h:38
DestroyPreEffectFactoryFunction
void(MO_PLG_ENTRY * DestroyPreEffectFactoryFunction)()
Definition:
moPrePlugin.h:48
moPrePlugin::moPrePlugin
moPrePlugin()
Definition:
moPrePlugin.h:61
moPrePlugin::name
moText name
Definition:
moPrePlugin.h:71
moPreEffectFactory::moPreEffectFactory
moPreEffectFactory()
Definition:
moPrePlugin.h:41
moBasePlugin.h
moPrePlugin::DestroyPreEffectFactory
DestroyPreEffectFactoryFunction DestroyPreEffectFactory
Definition:
moPrePlugin.h:57
libmoldeo
moPrePlugin.h
Generado el Martes, 10 de Septiembre de 2019 21:27:08 para libmoldeo (Moldeo 1.0 Core) por
1.8.13