BitmapToolkit Scol plugin
PluginBT.cpp
Go to the documentation of this file.
1/*
2-----------------------------------------------------------------------------
3This source file is part of OpenSpace3D
4For the latest info, see http://www.openspace3d.com
5
6Copyright (c) 2012 I-maginer
7
8This program is free software; you can redistribute it and/or modify it under
9the terms of the GNU Lesser General Public License as published by the Free Software
10Foundation; either version 2 of the License, or (at your option) any later
11version.
12
13This program is distributed in the hope that it will be useful, but WITHOUT
14ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
16
17You should have received a copy of the GNU Lesser General Public License along with
18this program; if not, write to the Free Software Foundation, Inc., 59 Temple
19Place - Suite 330, Boston, MA 02111-1307, USA, or go to
20http://www.gnu.org/copyleft/lesser.txt
21
22-----------------------------------------------------------------------------
23*/
24
25/*
26 Toolkit based on OpenCV library
27 First version : dec 2010
28 Author : Bastien BOURINEAU
29*/
30
39#include "Prerequisites.h"
40#include "ICameraInput.h"
41#include "MediaPlayer.h"
42
44#ifdef SCOL_STATIC
45extern cbmachine ww;
46extern mmachine mm;
47#else
48cbmachine ww;
49mmachine mm;
50#endif
51
57#ifndef SCOL_STATIC
58extern "C" SCOL_EXPORT int ScolLoadPlugin(mmachine m, cbmachine w)
59#else
60extern "C" SCOL_EXPORT int ScolBitmapToolkitLoadPlugin(mmachine m, cbmachine w)
61#endif
62{
63 int k = 0;
64
65 SCOLinitplugin(w);
66
73 return k;
74}
75
80#ifndef SCOL_STATIC
81extern "C" SCOL_EXPORT int ScolUnloadPlugin()
82#else
83extern "C" SCOL_EXPORT int ScolBitmapToolkitUnloadPlugin()
84#endif
85{
88 return 0;
89}
90
94#ifndef SCOL_STATIC
95extern "C" SCOL_EXPORT void ScolPauseWindowPlugin(mmachine m)
96#else
97extern "C" SCOL_EXPORT void ScolBitmapToolkitPauseWindowPlugin()
98#endif
99{
100 MMechostr(MSKFOO, "BT : Pause plugin -> pause cameras\n");
101 try
102 {
104 }
105 catch (std::exception &)
106 {
107 }
108}
109
113#ifndef SCOL_STATIC
114extern "C" SCOL_EXPORT void ScolResumeWindowPlugin(mmachine m)
115#else
116extern "C" SCOL_EXPORT void ScolBitmapToolkitResumeWindowPlugin()
117#endif
118{
119 MMechostr(MSKFOO, "BT : Resume plugin -> resume cameras\n");
120 try
121 {
123 }
124 catch (std::exception &)
125 {
126 }
127}
SCOL_EXPORT void ScolResumeWindowPlugin(mmachine m)
Activity regain focus in android.
Definition PluginBT.cpp:114
SCOL_EXPORT int ScolLoadPlugin(mmachine m, cbmachine w)
Starting point of the DLL Function to add in Scol usm.ini for loading dll.
Definition PluginBT.cpp:58
cbmachine ww
Scol machine declaration for MM macros.
Definition PluginBT.cpp:48
SCOL_EXPORT int ScolUnloadPlugin()
Ending point of the DLL Function to add in Scol usm.ini for free dll.
Definition PluginBT.cpp:81
SCOL_EXPORT void ScolPauseWindowPlugin(mmachine m)
Activity lose focus in android.
Definition PluginBT.cpp:95
mmachine mm
Definition PluginBT.cpp:49
int LoadArToolkit(mmachine m)
int UnloadMediaPlayerToolkit()
int LoadMathToolkit(mmachine m)
Load the packages in Scol virtual machine.
int LoadCaptureToolkit(mmachine m)
int UnloadArToolkit()
int LoadMediaPlayerToolkit(mmachine m)
int LoadMlToolkit(mmachine m)
int LoadBitmapToolKit(mmachine m)
static void SetGlobalPause(bool pause)
Pause/unpause every MediaPlayer.
SCOL_EXPORT int ScolBitmapToolkitUnloadPlugin()
SCOL_EXPORT int ScolBitmapToolkitLoadPlugin(mmachine m, cbmachine w)
SCOL_EXPORT void ScolBitmapToolkitPauseWindowPlugin(mmachine m)
SCOL_EXPORT void ScolBitmapToolkitResumeWindowPlugin(mmachine m)