Fawkes API
Fawkes Development Version
|
Draw images from camera in texture. More...
#include "image_drawer.h"
Public Member Functions | |
SkelGuiImageDrawer (firevision::Camera *cam) | |
Constructor. | |
~SkelGuiImageDrawer () | |
Destructor. | |
void | fill_texture () |
Fill texture. |
Draw images from camera in texture.
Uses texture mapping to show an image acquired from a camera in the background.
SkelGuiImageDrawer::SkelGuiImageDrawer | ( | firevision::Camera * | cam | ) |
Constructor.
cam | camera to capture image with |
Definition at line 47 of file image_drawer.cpp.
References SkelGuiTextureDrawer::__width, and SkelGuiTextureDrawer::__height.
SkelGuiImageDrawer::~SkelGuiImageDrawer | ( | ) |
Destructor.
Definition at line 56 of file image_drawer.cpp.
void SkelGuiImageDrawer::fill_texture | ( | ) | [virtual] |
Fill texture.
Implements SkelGuiTextureDrawer.
Definition at line 63 of file image_drawer.cpp.
References firevision::Camera::capture(), firevision::Camera::colorspace(), firevision::Camera::buffer(), SkelGuiTextureDrawer::__width, SkelGuiTextureDrawer::__height, SkelGuiTextureDrawer::copy_rgb_to_texture(), and firevision::Camera::dispose_buffer().