#include <painter.h>
|
| Painter () |
|
virtual | ~Painter () |
|
virtual void | bind () |
|
virtual void | unbind () |
|
virtual void | saveState ()=0 |
|
virtual void | saveAndResetState ()=0 |
|
virtual void | restoreSavedState ()=0 |
|
virtual void | clear (const Color &color)=0 |
|
virtual void | drawCoords (CoordsBuffer &coordsBuffer, DrawMode drawMode=Triangles)=0 |
|
virtual void | drawFillCoords (CoordsBuffer &coordsBuffer)=0 |
|
virtual void | drawTextureCoords (CoordsBuffer &coordsBuffer, const TexturePtr &texture)=0 |
|
virtual void | drawTexturedRect (const Rect &dest, const TexturePtr &texture, const Rect &src)=0 |
|
void | drawTexturedRect (const Rect &dest, const TexturePtr &texture) |
|
virtual void | drawUpsideDownTexturedRect (const Rect &dest, const TexturePtr &texture, const Rect &src)=0 |
|
virtual void | drawRepeatedTexturedRect (const Rect &dest, const TexturePtr &texture, const Rect &src)=0 |
|
virtual void | drawFilledRect (const Rect &dest)=0 |
|
virtual void | drawFilledTriangle (const Point &a, const Point &b, const Point &c)=0 |
|
virtual void | drawBoundingRect (const Rect &dest, int innerLineWidth=1)=0 |
|
virtual void | setTexture (Texture *texture)=0 |
|
virtual void | setClipRect (const Rect &clipRect)=0 |
|
virtual void | setColor (const Color &color) |
|
virtual void | setAlphaWriting (bool enable)=0 |
|
virtual void | setBlendEquation (BlendEquation blendEquation)=0 |
|
virtual void | setShaderProgram (PainterShaderProgram *shaderProgram) |
|
void | setShaderProgram (const PainterShaderProgramPtr &shaderProgram) |
|
virtual void | scale (float x, float y)=0 |
|
void | scale (float factor) |
|
virtual void | translate (float x, float y)=0 |
|
void | translate (const Point &p) |
|
virtual void | rotate (float angle)=0 |
|
virtual void | rotate (float x, float y, float angle)=0 |
|
void | rotate (const Point &p, float angle) |
|
virtual void | setOpacity (float opacity) |
|
virtual void | setResolution (const Size &resolution) |
|
Size | getResolution () |
|
Color | getColor () |
|
float | getOpacity () |
|
Rect | getClipRect () |
|
CompositionMode | getCompositionMode () |
|
virtual void | setCompositionMode (CompositionMode compositionMode)=0 |
|
virtual void | pushTransformMatrix ()=0 |
|
virtual void | popTransformMatrix ()=0 |
|
void | resetClipRect () |
|
void | resetOpacity () |
|
void | resetCompositionMode () |
|
void | resetColor () |
|
void | resetShaderProgram () |
|
virtual bool | hasShaders ()=0 |
|
Definition at line 31 of file painter.h.
◆ BlendEquation
Enumerator |
---|
BlendEquation_Add | |
BlendEquation_Max | |
Definition at line 34 of file painter.h.
◆ CompositionMode
Enumerator |
---|
CompositionMode_Normal | |
CompositionMode_Multiply | |
CompositionMode_Add | |
CompositionMode_Replace | |
CompositionMode_DestBlending | |
CompositionMode_Light | |
Definition at line 38 of file painter.h.
◆ DrawMode
Enumerator |
---|
Triangles | |
TriangleStrip | |
Definition at line 46 of file painter.h.
◆ Painter()
◆ ~Painter()
virtual Painter::~Painter |
( |
| ) |
|
|
inlinevirtual |
◆ bind()
virtual void Painter::bind |
( |
| ) |
|
|
inlinevirtual |
◆ clear()
virtual void Painter::clear |
( |
const Color & |
color | ) |
|
|
pure virtual |
◆ drawBoundingRect()
virtual void Painter::drawBoundingRect |
( |
const Rect & |
dest, |
|
|
int |
innerLineWidth = 1 |
|
) |
| |
|
pure virtual |
◆ drawCoords()
◆ drawFillCoords()
virtual void Painter::drawFillCoords |
( |
CoordsBuffer & |
coordsBuffer | ) |
|
|
pure virtual |
◆ drawFilledRect()
virtual void Painter::drawFilledRect |
( |
const Rect & |
dest | ) |
|
|
pure virtual |
◆ drawFilledTriangle()
virtual void Painter::drawFilledTriangle |
( |
const Point & |
a, |
|
|
const Point & |
b, |
|
|
const Point & |
c |
|
) |
| |
|
pure virtual |
◆ drawRepeatedTexturedRect()
virtual void Painter::drawRepeatedTexturedRect |
( |
const Rect & |
dest, |
|
|
const TexturePtr & |
texture, |
|
|
const Rect & |
src |
|
) |
| |
|
pure virtual |
◆ drawTextureCoords()
◆ drawTexturedRect() [1/2]
void Painter::drawTexturedRect |
( |
const Rect & |
dest, |
|
|
const TexturePtr & |
texture |
|
) |
| |
|
inline |
◆ drawTexturedRect() [2/2]
virtual void Painter::drawTexturedRect |
( |
const Rect & |
dest, |
|
|
const TexturePtr & |
texture, |
|
|
const Rect & |
src |
|
) |
| |
|
pure virtual |
◆ drawUpsideDownTexturedRect()
virtual void Painter::drawUpsideDownTexturedRect |
( |
const Rect & |
dest, |
|
|
const TexturePtr & |
texture, |
|
|
const Rect & |
src |
|
) |
| |
|
pure virtual |
◆ getClipRect()
Rect Painter::getClipRect |
( |
| ) |
|
|
inline |
◆ getColor()
Color Painter::getColor |
( |
| ) |
|
|
inline |
◆ getCompositionMode()
◆ getOpacity()
float Painter::getOpacity |
( |
| ) |
|
|
inline |
◆ getResolution()
Size Painter::getResolution |
( |
| ) |
|
|
inline |
◆ hasShaders()
virtual bool Painter::hasShaders |
( |
| ) |
|
|
pure virtual |
◆ popTransformMatrix()
virtual void Painter::popTransformMatrix |
( |
| ) |
|
|
pure virtual |
◆ pushTransformMatrix()
virtual void Painter::pushTransformMatrix |
( |
| ) |
|
|
pure virtual |
◆ resetClipRect()
void Painter::resetClipRect |
( |
| ) |
|
|
inline |
◆ resetColor()
void Painter::resetColor |
( |
| ) |
|
|
inline |
◆ resetCompositionMode()
void Painter::resetCompositionMode |
( |
| ) |
|
|
inline |
◆ resetOpacity()
void Painter::resetOpacity |
( |
| ) |
|
|
inline |
◆ resetShaderProgram()
void Painter::resetShaderProgram |
( |
| ) |
|
|
inline |
◆ restoreSavedState()
virtual void Painter::restoreSavedState |
( |
| ) |
|
|
pure virtual |
◆ rotate() [1/3]
void Painter::rotate |
( |
const Point & |
p, |
|
|
float |
angle |
|
) |
| |
|
inline |
◆ rotate() [2/3]
virtual void Painter::rotate |
( |
float |
angle | ) |
|
|
pure virtual |
◆ rotate() [3/3]
virtual void Painter::rotate |
( |
float |
x, |
|
|
float |
y, |
|
|
float |
angle |
|
) |
| |
|
pure virtual |
◆ saveAndResetState()
virtual void Painter::saveAndResetState |
( |
| ) |
|
|
pure virtual |
◆ saveState()
virtual void Painter::saveState |
( |
| ) |
|
|
pure virtual |
◆ scale() [1/2]
void Painter::scale |
( |
float |
factor | ) |
|
|
inline |
◆ scale() [2/2]
virtual void Painter::scale |
( |
float |
x, |
|
|
float |
y |
|
) |
| |
|
pure virtual |
◆ setAlphaWriting()
virtual void Painter::setAlphaWriting |
( |
bool |
enable | ) |
|
|
pure virtual |
◆ setBlendEquation()
virtual void Painter::setBlendEquation |
( |
BlendEquation |
blendEquation | ) |
|
|
pure virtual |
◆ setClipRect()
virtual void Painter::setClipRect |
( |
const Rect & |
clipRect | ) |
|
|
pure virtual |
◆ setColor()
virtual void Painter::setColor |
( |
const Color & |
color | ) |
|
|
inlinevirtual |
◆ setCompositionMode()
virtual void Painter::setCompositionMode |
( |
CompositionMode |
compositionMode | ) |
|
|
pure virtual |
◆ setOpacity()
virtual void Painter::setOpacity |
( |
float |
opacity | ) |
|
|
inlinevirtual |
◆ setResolution()
virtual void Painter::setResolution |
( |
const Size & |
resolution | ) |
|
|
inlinevirtual |
◆ setShaderProgram() [1/2]
◆ setShaderProgram() [2/2]
◆ setTexture()
virtual void Painter::setTexture |
( |
Texture * |
texture | ) |
|
|
pure virtual |
◆ translate() [1/2]
void Painter::translate |
( |
const Point & |
p | ) |
|
|
inline |
◆ translate() [2/2]
virtual void Painter::translate |
( |
float |
x, |
|
|
float |
y |
|
) |
| |
|
pure virtual |
◆ unbind()
virtual void Painter::unbind |
( |
| ) |
|
|
inlinevirtual |
◆ m_clipRect
◆ m_color
◆ m_compositionMode
◆ m_opacity
◆ m_resolution
Size Painter::m_resolution |
|
protected |
◆ m_shaderProgram
The documentation for this class was generated from the following files: