Skip to content

Commit ae939af

Browse files
committed
Fix compilation with the latest version of nCine
- Rename the interval method of the application class - Add missing cmath header to the easing curve class implementation
1 parent 1e56ca3 commit ae939af

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/EasingCurve.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#include <cmath>
12
#include <ncine/common_constants.h>
23
#include "EasingCurve.h"
34

src/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ void MyEventHandler::onShutdown()
179179

180180
void MyEventHandler::onFrameStart()
181181
{
182-
const float interval = nc::theApplication().interval();
182+
const float frameTime = nc::theApplication().frameTime();
183183
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT);
184184

185185
theCanvas->bind();
@@ -196,7 +196,7 @@ void MyEventHandler::onFrameStart()
196196
}
197197
}
198198
else
199-
theAnimMgr->update(interval);
199+
theAnimMgr->update(frameTime);
200200
theSpriteMgr->update();
201201

202202
theCanvas->unbind();

0 commit comments

Comments
 (0)