|
Otclient 1.0
14/8/2020
|
#include <painterogl2.h>


Public Member Functions | |
| PainterOGL2 () | |
| void | bind () |
| void | unbind () |
| void | drawCoords (CoordsBuffer &coordsBuffer, DrawMode drawMode=Triangles) |
| void | drawFillCoords (CoordsBuffer &coordsBuffer) |
| void | drawTextureCoords (CoordsBuffer &coordsBuffer, const TexturePtr &texture) |
| void | drawTexturedRect (const Rect &dest, const TexturePtr &texture, const Rect &src) |
| void | drawUpsideDownTexturedRect (const Rect &dest, const TexturePtr &texture, const Rect &src) |
| void | drawRepeatedTexturedRect (const Rect &dest, const TexturePtr &texture, const Rect &src) |
| void | drawFilledRect (const Rect &dest) |
| void | drawFilledTriangle (const Point &a, const Point &b, const Point &c) |
| void | drawBoundingRect (const Rect &dest, int innerLineWidth=1) |
| void | setDrawProgram (PainterShaderProgram *drawProgram) |
| bool | hasShaders () |
Public Member Functions inherited from PainterOGL | |
| PainterOGL () | |
| virtual | ~PainterOGL () |
| void | resetState () |
| virtual void | refreshState () |
| void | saveState () |
| void | saveAndResetState () |
| void | restoreSavedState () |
| void | clear (const Color &color) |
| void | clearRect (const Color &color, const Rect &rect) |
| virtual void | setTransformMatrix (const Matrix3 &transformMatrix) |
| virtual void | setProjectionMatrix (const Matrix3 &projectionMatrix) |
| virtual void | setTextureMatrix (const Matrix3 &textureMatrix) |
| virtual void | setCompositionMode (CompositionMode compositionMode) |
| virtual void | setBlendEquation (BlendEquation blendEquation) |
| virtual void | setClipRect (const Rect &clipRect) |
| virtual void | setShaderProgram (PainterShaderProgram *shaderProgram) |
| virtual void | setTexture (Texture *texture) |
| virtual void | setAlphaWriting (bool enable) |
| void | setTexture (const TexturePtr &texture) |
| void | setResolution (const Size &resolution) |
| void | scale (float x, float y) |
| void | translate (float x, float y) |
| void | rotate (float angle) |
| void | rotate (float x, float y, float angle) |
| void | pushTransformMatrix () |
| void | popTransformMatrix () |
| Matrix3 | getTransformMatrix () |
| Matrix3 | getProjectionMatrix () |
| Matrix3 | getTextureMatrix () |
| BlendEquation | getBlendEquation () |
| PainterShaderProgram * | getShaderProgram () |
| bool | getAlphaWriting () |
| void | resetBlendEquation () |
| void | resetTexture () |
| void | resetAlphaWriting () |
| void | resetTransformMatrix () |
Public Member Functions inherited from Painter | |
| Painter () | |
| virtual | ~Painter () |
| void | drawTexturedRect (const Rect &dest, const TexturePtr &texture) |
| virtual void | setColor (const Color &color) |
| void | setShaderProgram (const PainterShaderProgramPtr &shaderProgram) |
| void | scale (float factor) |
| void | translate (const Point &p) |
| void | rotate (const Point &p, float angle) |
| virtual void | setOpacity (float opacity) |
| Size | getResolution () |
| Color | getColor () |
| float | getOpacity () |
| Rect | getClipRect () |
| CompositionMode | getCompositionMode () |
| void | resetClipRect () |
| void | resetOpacity () |
| void | resetCompositionMode () |
| void | resetColor () |
| void | resetShaderProgram () |
Painter using OpenGL 2.0 programmable rendering pipeline, compatible with OpenGL ES 2.0. Only recent cards support this painter engine.
Definition at line 35 of file painterogl2.h.
| PainterOGL2::PainterOGL2 | ( | ) |
|
virtual |
Reimplemented from PainterOGL.
Definition at line 49 of file painterogl2.cpp.

|
virtual |
Implements Painter.
Definition at line 203 of file painterogl2.cpp.

|
virtual |
Implements Painter.
Definition at line 66 of file painterogl2.cpp.


|
virtual |
Implements Painter.
Definition at line 123 of file painterogl2.cpp.

|
virtual |
Implements Painter.
Definition at line 179 of file painterogl2.cpp.

Implements Painter.
Definition at line 191 of file painterogl2.cpp.

|
virtual |
Implements Painter.
Definition at line 166 of file painterogl2.cpp.

|
virtual |
Implements Painter.
Definition at line 130 of file painterogl2.cpp.

|
virtual |
Implements Painter.
Definition at line 140 of file painterogl2.cpp.

|
virtual |
Implements Painter.
Definition at line 153 of file painterogl2.cpp.

|
inlinevirtual |
Implements Painter.
Definition at line 55 of file painterogl2.h.
|
inline |
|
virtual |
Reimplemented from PainterOGL.
Definition at line 59 of file painterogl2.cpp.
