Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Libretro
libretro-chailove
Commits
ba37b58c
Verified
Commit
ba37b58c
authored
Oct 06, 2018
by
RobLoach
Browse files
love.timer.step() now returns delta
parent
d87d4075
Changes
3
Hide whitespace changes
Inline
Side-by-side
CHANGELOG.md
View file @
ba37b58c
...
...
@@ -5,6 +5,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to
[
Semantic Versioning
](
http://semver.org/spec/v2.0.0.html
)
.
## 0.28.0 - Unreleased
### Features
-
`love.timer.step()`
now returns
`dt`
### Fixes
-
Fixes undefined reference to
`process_sinc_neon_asm()`
-
[
#322
](
https://github.com/libretro/libretro-chailove/issues/322
)
found by
[
@ToKe79
](
https://github.com/ToKe79
)
...
...
src/love/timer.cpp
View file @
ba37b58c
...
...
@@ -10,7 +10,7 @@ float timer::getDelta() {
return
m_delta
;
}
void
timer
::
step
(
float
delta
)
{
float
timer
::
step
(
float
delta
)
{
m_delta
=
delta
;
m_deltaCounter
+=
delta
;
m_frameCounter
++
;
...
...
@@ -20,6 +20,8 @@ void timer::step(float delta) {
m_frameCounter
=
0
;
m_deltaCounter
=
0
;
}
return
m_delta
;
}
int
timer
::
getFPS
()
{
...
...
src/love/timer.h
View file @
ba37b58c
...
...
@@ -9,7 +9,7 @@ namespace love {
class
timer
{
public:
timer
();
void
step
(
float
delta
);
float
step
(
float
delta
);
/**
* Returns the time between the last two frames.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment