|
static bool | Begin (const object &paintDevice) |
|
static void | End () |
|
static void | Flush () |
|
static void | Save () |
|
static void | Restore () |
|
static void | SetCompositionMode (int mode) |
|
static int | GetCompositionMode () |
|
static const ParaAttributeObject & | GetAttributeObject () |
|
static void | CallField (const char *sFieldname) |
|
static void | SetField (const char *sFieldname, const object &input) |
|
static object | GetField (const char *sFieldname, const object &output) |
|
static void | SetFont (const object &font) |
| set current font More...
|
|
static void | SetPen (const object &pen) |
| set current pen More...
|
|
static void | SetBrush (const object &brush) |
| set current brush (texture and color) More...
|
|
static void | SetBrushOrigin (float x, float y) |
|
static void | SetBackground (const object &brush) |
| set current background brush More...
|
|
static void | SetOpacity (float fOpacity) |
| between [0,1]
|
|
static void | SetClipRegion (int x, int y, int w, int h) |
|
static void | SetClipping (bool enable) |
|
static bool | HasClipping () |
|
static void | SetTransform (const object &trans, bool combine) |
| Sets the world transformation matrix. More...
|
|
static luabind::object | GetTransform (const luabind::object &out) |
|
static void | Scale (float sx, float sy) |
|
static void | Shear (float sh, float sv) |
|
static void | Rotate (float a) |
|
static void | Translate (float dx, float dy) |
|
static void | DrawPoint (float x, float y) |
|
static void | DrawLine (float x1, float y1, float x2, float y2) |
|
static void | DrawRect (float x1, float y1, float w, float h) |
|
static void | DrawTriangleList (const object &triangleList, int nTriangleCount, int nIndexOffset) |
| draw 3d triangles More...
|
|
static void | DrawLineList (const object &lineList, int nLineCount, int nIndexOffset) |
| draw 3d lines More...
|
|
static void | DrawTexture (int x, int y, int w, int h, const object &pTexture) |
|
static void | DrawTexture2 (int x, int y, int w, int h, const object &pTexture, int sx, int sy, int sw, int sh) |
|
static void | DrawText (float x, float y, const std::string &s) |
|
static void | DrawText2 (float x, float y, float w, float h, const std::string &s, int textOption) |
|
static void | DrawSceneObject (ParaObject &obj, int nOption) |
| draw a scene object More...
|
|
static CPainter * | GetPainter () |
|
static void | SetPainter (CPainter *val) |
|
the current painter object.
call Begin() End() to switch paint device. please note, for ownerdraw GUI callbacks, they are automatically called.
for performance reasons, all methods are static.