-
Notifications
You must be signed in to change notification settings - Fork 0
/
TargetImage.cpp
48 lines (39 loc) · 942 Bytes
/
TargetImage.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/**
* TargetImage.cpp
*
* Created on: Aug 3, 2011
* Author: Jeroen Vlek
* Email: [email protected]
* Website: www.perceptivebits.com
* License: Free Beer (Feel free to use it in every
* way possible and if you like it, make
* sure to give me credit and buy me a drink
* if we ever meet ;) )
*/
#include "TargetImage.h"
#include <iostream>
TargetImagePtr TargetImage::_Instance;
bool TargetImage::_Loaded = false;
TargetImage::TargetImage()
{
}
TargetImage::~TargetImage()
{
}
TargetImagePtr TargetImage::Instance()
{
if(TargetImage::_Instance.get() == NULL) {
_Instance.reset(new TargetImage());
}
return _Instance;
}
bool TargetImage::IsLoaded()
{
return _Loaded;
}
void TargetImage::loadFromFile(const std::string& filename)
{
m_imp->loadFromFile(filename);
_Loaded = true;
std::cout << "[ TargetImage::loadFromFile() ] loaded " << filename << std::endl;
}