5 #ifndef BALL_VIEW_RENDERING_RENDERTARGET_H
6 #define BALL_VIEW_RENDERING_RENDERTARGET_H
13 #include <boost/smart_ptr.hpp>
14 #include <boost/shared_array.hpp>
49 : width(width), height(height),
50 pitch(width * pixelFormat.computeByteSize()),
51 pixelFormat(pixelFormat)
58 : width(width), height(height), pitch(pitch), pixelFormat(pixelFormat)
131 void resize(
const unsigned int newWidth,
const unsigned int newHeight)
133 this->
width = newWidth;
141 const unsigned int newHeight)
const
183 data(data), format(format)
254 virtual
bool init() = 0;
258 virtual
bool resize(const
unsigned int width, const
unsigned int height) = 0;
273 #endif // BALL_VIEW_RENDERING_RENDERTARGET_H