RenderContext.hx 446 B

12345678910111213141516171819202122
  1. package h3d.impl;
  2. class RenderContext {
  3. public var engine : h3d.Engine;
  4. public var time : Float;
  5. public var elapsedTime : Float;
  6. public var frame : Int;
  7. public var textures : h3d.impl.TextureCache;
  8. function new() {
  9. engine = h3d.Engine.getCurrent();
  10. frame = 0;
  11. time = 0.;
  12. elapsedTime = 1. / hxd.System.getDefaultFrameRate();
  13. textures = new h3d.impl.TextureCache(this);
  14. }
  15. public function dispose() {
  16. textures.dispose();
  17. }
  18. }