29 class i_rendering_context;
47 struct failed_to_create_framebuffer : std::runtime_error { failed_to_create_framebuffer(std::string
const& aReason) : std::runtime_error(
"neogfx::i_render_target::failed_to_create_framebuffer: Failed to create frame buffer, reason: " + aReason) {} };
49 struct not_active : std::logic_error {
not_active() : std::logic_error(
"neogfx::i_render_target::not_active") {} };
virtual void set_logical_coordinates(const neogfx::logical_coordinates &aCoordinates)=0
virtual void set_logical_coordinate_system(neogfx::logical_coordinate_system aSystem)=0
virtual neogfx::color_space color_space() const =0
virtual void activate_target() const =0
virtual std::unique_ptr< i_rendering_context > create_graphics_context(blending_mode aBlendingMode=blending_mode::Default) const =0
virtual size target_extents() const =0
virtual rect_i32 viewport() const =0
virtual pixel_format_t pixel_format() const =0
virtual color read_pixel(const point &aPosition) const =0
virtual void * target_device_handle() const =0
virtual point target_origin() const =0
virtual const i_texture & target_texture() const =0
virtual neogfx::logical_coordinates logical_coordinates() const =0
virtual void * target_handle() const =0
virtual neogfx::logical_coordinate_system logical_coordinate_system() const =0
virtual void deactivate_target() const =0
virtual bool target_active() const =0
virtual rect_i32 set_viewport(const rect_i32 &aViewport) const =0
virtual render_target_type target_type() const =0
scoped_render_target(const i_rendering_context &aRenderingContext)
scoped_render_target(const i_render_target &aRenderTarget)
logical_coordinate_system
basic_rect< int32_t > rect_i32
#define declare_event(declName,...)
logical_coordinates_not_specified()