Skip to content

Commit

Permalink
libgui|GLWindow: Querying the current frame count
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Apr 25, 2017
1 parent 8615f2e commit 13b08a5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions doomsday/sdk/libgui/include/de/gui/glwindow.h
Expand Up @@ -78,6 +78,7 @@ class LIBGUI_PUBLIC GLWindow : public QOpenGLWindow, public Asset
bool isHidden() const;

float frameRate() const;
uint frameCount() const;

/**
* Determines the current top left corner (origin) of the window.
Expand Down
5 changes: 5 additions & 0 deletions doomsday/sdk/libgui/src/glwindow.cpp
Expand Up @@ -237,6 +237,11 @@ float GLWindow::frameRate() const
return d->fps;
}

uint GLWindow::frameCount() const
{
return d->frameCount;
}

GLWindow::Size GLWindow::pointSize() const
{
return Size(duint(de::max(0, QOpenGLWindow::width())),
Expand Down

0 comments on commit 13b08a5

Please sign in to comment.