video.glmonitor - ICE 0.1 API documentation

ICE 0.1 API documentation

# video.glmonitor

Monitor viewing OpenGL video driver state.

struct Statistics;

  Statistics data sent by GLVideoDriver to GL monitors.

  uint lines;

    Draw calls.

  uint textures;

    Draw calls.

  uint texts;

    Draw calls.

  uint rectangles;

    Draw calls.

  uint vertices;

    Drawing primitives.

  uint indices;

    Drawing primitives.

  uint characters;

    Drawing primitives.

  uint vgroups;

    Drawing primitives.

  uint shader;

    State changes.

  uint page;

    State changes.

  real fps;

    FPS this frame (inverse of frame length).

  pure void zero();

    Reset the statistics gathered for the next frame.

class PageMonitor: monitor.submonitor.SubMonitor;

  Provides access to information about texture pages in GLVideoDriver.

  class PageIterator;

    Allows iteration over and access to texture pages in GLVideoDriver.

    this();

      Construct a PageIterator.

    void next();

      Move to the next page (wraps to the first one).

    void prev();

      Move to previous page (wraps to the last one).

    @property string text();

      Get information text about the current page.

    void draw(Recti bounds, const Vector2f offset, const real zoom);

      Draw the current page.

      Will automatically switch to the next page if the current page has been destroyed. Won't draw anything if there are no pages.

      Parameters:

      Recti bounds | Screen space bounds to draw the page in.
      Vector2f offset | Offset into the page in texture pixels (wraps).
      real zoom | Zoom factor.

  this(GLVideoDriver driver);

    Construct a GLMonitor monitoring specified GLVideoDriver.

class PageMonitorView: monitor.submonitor.SubMonitorView;

  GUI view for the PageMonitor.

  this(PageIterator iterator);

    Construct a PageMonitorView using specified iterator to access texture pages.

Copyright © Ferdinand Majerech 2011. | Page generated by AutoDDoc and Ddoc.