RenderPathCreator.hx 502 B

12345678910111213141516171819
  1. package arm.renderpath;
  2. import iron.RenderPath;
  3. import armory.renderpath.Inc;
  4. class RenderPathCreator {
  5. public static var drawMeshes:Void->Void = RenderPathDeferred.drawMeshes;
  6. public static var applyConfig:Void->Void = RenderPathDeferred.applyConfig;
  7. public static var finalTarget:RenderTarget = null;
  8. public static function get():RenderPath {
  9. var path = new RenderPath();
  10. Inc.init(path);
  11. RenderPathDeferred.init(path);
  12. path.commands = RenderPathDeferred.commands;
  13. return path;
  14. }
  15. }