summaryrefslogtreecommitdiff
path: root/src/fl_vertex.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <github@matthiasm.com>2022-11-30 22:40:52 +0100
committerGitHub <noreply@github.com>2022-11-30 22:40:52 +0100
commitbf825f8ebd18615fdbecb449c14300105d469a24 (patch)
tree2e9c3f075b124347eea974c9b429c06d5f29df78 /src/fl_vertex.cxx
parentbc3bbb7ca028db377ec4b2acbe74d8f2c8a5c149 (diff)
Add a unit test for drawing complex shapes (#565)
Diffstat (limited to 'src/fl_vertex.cxx')
-rw-r--r--src/fl_vertex.cxx15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/fl_vertex.cxx b/src/fl_vertex.cxx
index c17a89e23..c02e24ff8 100644
--- a/src/fl_vertex.cxx
+++ b/src/fl_vertex.cxx
@@ -57,6 +57,21 @@ void Fl_Graphics_Driver::pop_matrix() {
m = stack[--sptr];
}
+/** see fl_load_identity() */
+void Fl_Graphics_Driver::load_identity() {
+ m = m0;
+}
+
+/** see fl_load_matrix() */
+void Fl_Graphics_Driver::load_matrix(double a, double b, double c, double d, double x, double y) {
+ m.a = a;
+ m.b = b;
+ m.c = c;
+ m.d = d;
+ m.x = x;
+ m.y = y;
+}
+
/** see fl_mult_matrix() */
void Fl_Graphics_Driver::mult_matrix(double a, double b, double c, double d, double x, double y) {
matrix o;