Renders rendering under renders

This commit is contained in:
2022-11-04 12:04:59 +01:00
parent c32fca6a23
commit 0c145b4e5b
5 changed files with 12 additions and 15 deletions

View File

@@ -6,12 +6,12 @@ var x: int = 50;
var y: int = 50;
//accessors
fn getX() {
fn getX(node: opaque) {
print "Called getX";
return x;
}
fn getY() {
fn getY(node: opaque) {
return y;
}
@@ -37,7 +37,7 @@ fn onFree(node: opaque) {
}
fn onDraw(node: opaque) {
//print "render.toy:onDraw() called";
print "render.toy:onDraw() called";
var px = parent.callNode("getX");
var py = parent.callNode("getY");