19 #ifndef FASTUIDRAW_PAINTER_SURFACE_GL_HPP 20 #define FASTUIDRAW_PAINTER_SURFACE_GL_HPP 30 class PainterEngineGL;
109 GLenum filter = GL_NEAREST)
const;
138 viewport(
void)
const override final;
virtual reference_counted_ptr< const Image > image(ImageAtlas &atlas) const override final
render_type_t
Enumeration to specify the render target of a Surface.
all classes and functions of FastUIDraw are in the namespace fastuidraw.
virtual ivec2 dimensions(void) const override final
PainterSurface represents an interface to specify a buffer to which a PainterBackend renders content...
PainterSurfaceGL(ivec2 dims, const PainterEngineGL &backend, enum render_type_t render_type=color_buffer_type)
A wrapper over a pointer to implement reference counting.
virtual enum render_type_t render_type(void) const override final
A PainterEngineGL implements PainterEngine using the GL (or GLES) API. The PainterShaderRegistrar obj...
GLuint texture(void) const
void * opaque_data(void) const
virtual const vec4 & clear_color(void) const override final
An ImageAtlas is a common location to place images of an application.
void blit_surface(const Viewport &src, const Viewport &dst, GLenum filter=GL_NEAREST) const
virtual const Viewport & viewport(void) const override final