Guest User

Untitled

a guest
Jan 23rd, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. import h2d.Graphics;
  2. import h3d.scene.S2DPlane;
  3.  
  4.  
  5. class Main extends hxd.App {
  6.  
  7. private var plane: S2DPlane;
  8.  
  9. override function init() {
  10.  
  11. plane = new S2DPlane(s3d, false, 512, 512, 1, false);
  12. var g = new Graphics(plane.root);
  13. g.beginFill(0xFF0000);
  14. g.drawRect(50, 50, 500, 500);
  15. g.endFill();
  16.  
  17. }
  18.  
  19.  
  20. override function update(dt: Float) {
  21. //plane.rotate(.1, .05, .01);
  22. }
  23.  
  24. static function main() {
  25. new Main();
  26. }
  27.  
  28. }
Add Comment
Please, Sign In to add comment