Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import h2d.Graphics;
- import h3d.scene.S2DPlane;
- class Main extends hxd.App {
- private var plane: S2DPlane;
- override function init() {
- plane = new S2DPlane(s3d, false, 512, 512, 1, false);
- var g = new Graphics(plane.root);
- g.beginFill(0xFF0000);
- g.drawRect(50, 50, 500, 500);
- g.endFill();
- }
- override function update(dt: Float) {
- //plane.rotate(.1, .05, .01);
- }
- static function main() {
- new Main();
- }
- }
Add Comment
Please, Sign In to add comment