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);
68 virtual void refresh();
100 virtual void setDoNotResize(
bool do_not_resize) { do_not_resize_ = do_not_resize; }
120 #endif // BALL_VIEW_RENDERING_RENDERINGWINDOW_H
virtual void prepareRendering()
virtual void setDoNotResize(bool do_not_resize)
boost::shared_ptr< FrameBuffer > FrameBufferPtr
const Size m_minimalHeight
TRenderWindow< BALL_DEFAULT_PIXEL_TYPE > RenderWindow
const Size m_minimalWidth
FrameBufferPtr m_framebuffer
#define BALLVIEW_STATIC_ASSERT_TYPE_IS_CHAR_OR_FLOAT(aType)
Macro checks at compile time, whether aType is int or float.
virtual bool doNotResize() const