Atrinik Client 2.5
Functions | Variables
gui/fps.c File Reference
#include <global.h>

Go to the source code of this file.

Functions

void fps_init ()
void fps_do ()
void widget_show_fps (widgetdata *widget)

Variables

static Uint32 fps_lasttime
static Uint32 fps_current
static Uint32 fps_frames

Detailed Description

Handles fps widget.

Definition in file fps.c.


Function Documentation

void fps_do ( )

Called at the end of each frame to calculate the current fps (if applicable).

Definition at line 48 of file fps.c.

void fps_init ( )

Initialize variables used by fps widget.

Definition at line 39 of file fps.c.

void widget_show_fps ( widgetdata widget)

Show the fps widget

Parameters:
widgetWidget.

Definition at line 63 of file fps.c.


Variable Documentation

Uint32 fps_frames [static]

Number of frames drawn.

Definition at line 35 of file fps.c.