Voxellancer
0.3
A game about voxels in space
Main Page
Related Pages
Classes
Files
File List
All
Classes
Functions
Pages
timer.h
1
#pragma once
2
3
#include <functional>
4
5
#include "eventpoll.h"
6
7
8
class
Timer
:
public
EventPoll
{
9
public
:
10
Timer
(
float
interval,
const
std::function<
void
()>& callback);
11
12
virtual
void
update(
float
deltaSec)
override
;
13
14
15
protected
:
16
float
m_interval;
17
float
m_countdown;
18
int
m_scheduledCalls;
19
20
virtual
bool
poll()
override
;
21
virtual
void
specialOnCallback()
override
;
22
};
23
Timer
Definition:
timer.h:8
EventPoll
Definition:
eventpoll.h:11
src
events
timer.h
Generated on Sun Mar 30 2014 13:32:31 for Voxellancer by
1.8.6