![]() |
Cinder
0.9.1
|
#include <CaptureImplCocoaDummy.h>
Inherits cinder::Capture::Device.
Public Member Functions | |
CaptureImplCocoaDummyDevice (const std::string &name, const Capture::DeviceIdentifier &uniqueId, bool frontFacing) | |
bool | checkAvailable () const |
bool | isConnected () const |
Capture::DeviceIdentifier | getUniqueId () const |
bool | isFrontFacing () const |
void * | getNative () const |
const std::string & | getName () const |
Protected Attributes | |
std::string | mName |
This class implements a stubbed-out Capture implementation in order to allow an iOS app which requires capture support to run in the simulator.
cinder::CaptureImplCocoaDummyDevice::CaptureImplCocoaDummyDevice | ( | const std::string & | name, |
const Capture::DeviceIdentifier & | uniqueId, | ||
bool | frontFacing | ||
) |
|
virtual |
Returns whether the device is available for use.
Implements cinder::Capture::Device.
|
virtual |
Returns whether the device is currently connected.
Implements cinder::Capture::Device.
|
virtual |
Returns the OS-specific unique identifier.
Implements cinder::Capture::Device.
bool cinder::CaptureImplCocoaDummyDevice::isFrontFacing | ( | ) | const |
|
virtual |
Returns an OS-specific pointer. AVCaptureDevice* on OS X and iOS. Not implemented on MSW.
Implements cinder::Capture::Device.
|
inherited |
Returns the human-readable name of the device.
|
protectedinherited |