File: fps.h

package info (click to toggle)
ketm 0.0.6-17sarge1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 9,356 kB
  • ctags: 875
  • sloc: ansic: 7,303; sh: 410; makefile: 185
file content (22 lines) | stat: -rw-r--r-- 344 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef _FPS_H_
#define _FPS_H_

#include <SDL/SDL.h>

#include "support.h"
#include "font.h"

#define TICK_INTERVAL 30
// #define PIXEL_SPEED 50
// #define PIXEL_SPEED 50

enum _fps_methods { WAITFORFRAME, MAXFPS };

void fps_init();
void toggle_fps();
void fps_show();
void fps_newframe();
Uint32 TimeLeft();
void waitfornextframe();

#endif