33 class Camera;
class CameraPersp;
class CameraStereo;
36 namespace cinder {
namespace gl {
41 : mSpeed(1.0
f), mDepth(1.0
f) {}
72 void createBuffers(
const Area &area );
88 std::vector<GLfloat> mBuffer;
void autoFocus(CameraStereo *cam, const Area &area=gl::getViewport())
Definition: StereoAutoFocuser.h:48
static const int AF_WIDTH
width and height of the auto focus sample
Definition: StereoAutoFocuser.h:78
void draw()
Draws a visualizer, showing the sample area and the location of the nearest pixel.
Definition: StereoAutoFocuser.cpp:79
Area getViewport()
Returns the current OpenGL Viewport as an Area.
Definition: gl.cpp:377
GLuint getId() const
Returns the ID of the framebuffer itself. For antialiased FBOs this is the ID of the output multisamp...
Definition: Fbo.h:133
void autoFocus(CameraStereo *cam, const gl::Fbo &buffer)
Definition: StereoAutoFocuser.h:54
unsigned int GLuint
Definition: gldx.h:55
static T max(T x, T y)
Definition: CinderMath.h:76
Definition: StereoAutoFocuser.h:38
Area getBounds() const
Returns the bounding area of the FBO in pixels.
Definition: Fbo.h:108
GLuint buffer
Definition: GLee.h:2065
static T clamp(T x, T min=0, T max=1)
Definition: CinderMath.h:77
float getDepth() const
Returns the auto-focus depth, which influences the parallax effect.
Definition: StereoAutoFocuser.h:62
StereoAutoFocuser()
Definition: StereoAutoFocuser.h:40
#define GL_NONE
Definition: gldx.h:217
void setDepth(float factor)
Definition: StereoAutoFocuser.h:67
void setSpeed(float factor)
Definition: StereoAutoFocuser.h:60
static const int AF_HEIGHT
Definition: StereoAutoFocuser.h:79
Represents an OpenGL Framebuffer Object. //! Represents an instance of a font at a point size...
Definition: Fbo.h:90
GLclampf f
Definition: GLee.h:15307
float getSpeed() const
Returns the speed at which auto-focussing takes place.
Definition: StereoAutoFocuser.h:56