extern "C" { #include #include #include } #include void ion_app() { KDDrawString("Hello, world!", KDPointMake(10,10)); KDCoordinate width = 240; KDCoordinate height = 160; KDColor c = 0xFF; KDPoint center = KDPointMake(width/2, height/2); int delay = 100000; int step = 2; for (KDCoordinate x=0; xcreateLayout(nullptr); l->draw(KDPointMake(0,100)); // FIXME delete l; //FIXME delete e; } else { if (index == 0) { KDRect r; r.x = 0; r.y = 0; r.width = 160; r.height = 160; KDFillRect(r, 0x00); } input[index++] = character; input[index] = 0; KDDrawString(input, KDPointZero); } } }