Fawkes API
Fawkes Development Version
|
#include "image_drawer.h"
Public Member Functions | |
SkelGuiImageDrawer (firevision::Camera *cam) | |
Constructor. More... | |
~SkelGuiImageDrawer () | |
Destructor. More... | |
void | fill_texture () |
Fill texture. More... | |
![]() | |
SkelGuiTextureDrawer (unsigned int width, unsigned int height) | |
Constructor. More... | |
virtual | ~SkelGuiTextureDrawer () |
Destructor. More... | |
void | draw () |
Draw texture to screen. More... | |
Additional Inherited Members | |
![]() | |
void | copy_rgb_to_texture (const unsigned char *rgb_buf) |
Copy an RGB buffer to texture. More... | |
![]() | |
const unsigned int | width_ |
Width of visible area from texture. More... | |
const unsigned int | height_ |
Height of visible area from texture. More... | |
const unsigned int | texture_width_ |
Real texture width. More... | |
const unsigned int | texture_height_ |
Real texture height. More... | |
unsigned char * | texture_ |
Texture buffer. More... | |
Draw images from camera in texture. Uses texture mapping to show an image acquired from a camera in the background.
Definition at line 32 of file image_drawer.h.
SkelGuiImageDrawer::SkelGuiImageDrawer | ( | firevision::Camera * | cam | ) |
Constructor.
cam | camera to capture image with |
Definition at line 47 of file image_drawer.cpp.
References SkelGuiTextureDrawer::height_, and SkelGuiTextureDrawer::width_.
SkelGuiImageDrawer::~SkelGuiImageDrawer | ( | ) |
Destructor.
Definition at line 55 of file image_drawer.cpp.
|
virtual |
Fill texture.
Implements SkelGuiTextureDrawer.
Definition at line 62 of file image_drawer.cpp.
References firevision::Camera::buffer(), firevision::Camera::capture(), firevision::Camera::colorspace(), SkelGuiTextureDrawer::copy_rgb_to_texture(), firevision::Camera::dispose_buffer(), SkelGuiTextureDrawer::height_, and SkelGuiTextureDrawer::width_.