Visualization LibraryA lightweight C++ OpenGL middleware for 2D/3D graphics |
[Home] [Tutorials] [All Classes] [Grouped Classes] |
#include <DrawPixels.hpp>
Classes | |
| class | Pixels |
| Represents a bitmap to be drawn on the screen. More... | |
Public Member Functions | |
| DrawPixels () | |
| virtual const char * | className () |
| Returns the name of the class. | |
| void | computeBounds_Implementation () |
| void | render (const Actor *actor, const OpenGLContext *, const Camera *camera) const |
| Renders the bitamps. | |
| const Collection< Pixels > * | draws () const |
| Collection< Pixels > * | draws () |
| void | deletePixelBufferObjects () |
| deallocate PBOs | |
| void | releaseImages () |
| Iterates on the Pixels objects and sets their Image references to NULL. | |
| bool | generatePixelBufferObjects (EGLBufferUsage usage, bool discard_local_storage) |
| generates PBOs only for Pixels objects without a PBO handle | |
| void | setUsePixelBufferObject (bool use_pbo) |
| bool | usePixelBufferObject () const |
Protected Attributes | |
| Collection< Pixels > | mDraws |
| bool | mUsePixelBufferObject |
Bind it to an Actor in order to render one or more bitmaps on the screen. DrawPixels supports multiple bitmaps, can draw a subsection of a bitmap, and supports also PBOs (GL_EXT_pixel_buffer_object). See also DrawPixels::Pixels.
| DrawPixels::DrawPixels | ( | ) |
| virtual const char* vl::DrawPixels::className | ( | ) | [inline, virtual] |
| void vl::DrawPixels::computeBounds_Implementation | ( | ) | [inline, virtual] |
Implements vl::Renderable.
| void DrawPixels::render | ( | const Actor * | actor, | |
| const OpenGLContext * | , | |||
| const Camera * | camera | |||
| ) | const [virtual] |
Renders the bitamps.
If camera != NULL and actor != NULL and actor->transform() != NULL then the bitmaps position will follow the Actor's Transform. The renderer parameter is ignored.
Implements vl::Renderable.
| const Collection<Pixels>* vl::DrawPixels::draws | ( | ) | const [inline] |
| Collection<Pixels>* vl::DrawPixels::draws | ( | ) | [inline] |
| void DrawPixels::deletePixelBufferObjects | ( | ) |
deallocate PBOs
| void DrawPixels::releaseImages | ( | ) |
| bool DrawPixels::generatePixelBufferObjects | ( | EGLBufferUsage | usage, | |
| bool | discard_local_storage | |||
| ) |
generates PBOs only for Pixels objects without a PBO handle
| void DrawPixels::setUsePixelBufferObject | ( | bool | use_pbo | ) |
| bool vl::DrawPixels::usePixelBufferObject | ( | ) | const [inline] |
Collection<Pixels> vl::DrawPixels::mDraws [protected] |
bool vl::DrawPixels::mUsePixelBufferObject [protected] |