Go to the documentation of this file.
5 #ifndef BALL_VIEW_RENDERING_RENDERINGWINDOW_H
6 #define BALL_VIEW_RENDERING_RENDERINGWINDOW_H
11 #include <boost/static_assert.hpp>
12 #include <boost/type_traits/is_same.hpp>
15 #define BALLVIEW_IS_SAME_TYPE(aTypeA, aTypeB) (boost::is_same<aTypeA, aTypeB>::value)
18 #define BALLVIEW_STATIC_ASSERT_TYPE_IS_CHAR_OR_FLOAT(aType) \
19 BOOST_STATIC_ASSERT(BALLVIEW_IS_SAME_TYPE(aType, char) || BALLVIEW_IS_SAME_TYPE(aType, float))
21 #define BALL_DEFAULT_PIXEL_TYPE float
32 template<
typename taPixelDatatype>
39 typedef boost::shared_array<taPixelDatatype> t_PixelPtr;
58 virtual bool resize(
const unsigned int width,
const unsigned int height);
101 virtual void setDoNotResize(
bool do_not_resize) { do_not_resize_ = do_not_resize; }
121 #endif // BALL_VIEW_RENDERING_RENDERINGWINDOW_H
virtual void prepareRendering()
FrameBufferPtr m_framebuffer
virtual FrameBufferPtr getBuffer()
boost::shared_ptr< FrameBuffer > FrameBufferPtr
virtual FrameBufferFormat getFormat() const
virtual void releaseBuffer(FrameBufferPtr buffer)
#define BALLVIEW_STATIC_ASSERT_TYPE_IS_CHAR_OR_FLOAT(aType)
Macro checks at compile time, whether aType is int or float.
virtual void setDoNotResize(bool do_not_resize)
TRenderWindow< BALL_DEFAULT_PIXEL_TYPE > RenderWindow
virtual bool resize(const unsigned int width, const unsigned int height)
const Size m_minimalHeight
virtual bool doNotResize() const
const Size m_minimalWidth