32 #ifndef DrawPixels_INCLUDE_ONCE 33 #define DrawPixels_INCLUDE_ONCE 84 Pixels(
ImagePBO* img,
int scrx,
int scry,
int startx=0,
int starty=0,
int width=-1,
int height=-1,
int alignment =
AlignBottom |
AlignLeft);
86 Pixels(const Pixels& other);
88 Pixels& operator=(const Pixels& other);
92 const
ivec2& position()
const {
return mPosition; }
108 int align()
const {
return mAlign; }
119 void deletePixelBufferObject();
121 bool hasPixelBufferObject()
const;
147 void deletePixelBufferObjects();
150 void releaseImages();
153 bool generatePixelBufferObjects(
EBufferObjectUsage usage,
bool discard_local_storage);
155 void setUsePixelBufferObject(
bool use_pbo);
const Collection< Pixels > * draws() const
Associates a Renderable object to an Effect and Transform.
const ivec2 & size() const
bool usePixelBufferObject() const
void computeBounds_Implementation()
bool mUsePixelBufferObject
Represents an OpenGL context, possibly a widget or a pbuffer, which can also respond to keyboard...
void setStart(const ivec2 &start)
Collection< Pixels > * draws()
const ivec2 & start() const
#define VL_INSTRUMENT_CLASS(ClassName, BaseClass)
virtual void deleteBufferObject()
Destroys the BufferObject (vertex buffer objects) associated to this a Renderable.
Visualization Library main namespace.
Represents a bitmap to be drawn on the screen.
const ImagePBO * image() const
void setPosition(const ivec2 &position)
The AABB class implements an axis-aligned bounding box using vl::real precision.
void setSize(const ivec2 &size)
The base class for all the reference counted objects.
An abstract class that represents all the objects that can be rendered.
Represents a vl::Image with an associated Pixel Buffer Object.
Wraps the OpenGL function glDrawPixels().
Manages most of the OpenGL rendering states responsible of the final aspect of the rendered objects...
The Sphere class defines a sphere using a center and a radius using vl::real precision.
#define VLGRAPHICS_EXPORT
virtual void updateDirtyBufferObject(EBufferObjectUpdateMode)
Uploads the data stored in the local buffers on the GPU memory.
It's basically an std::vector for Objects that is itself an Object so it can be reference counted and...
The ref<> class is used to reference-count an Object.
Represents a virtual camera defining, among other things, the point of view from which scenes can be ...
Collection< Pixels > mDraws