25 lines
431 B
C
25 lines
431 B
C
#include "controls.h"
|
|
#include <gint/display.h>
|
|
#include <gint/std/stdlib.h>
|
|
#include <gint/std/stdio.h>
|
|
#include <stdbool.h>
|
|
#include "FxEngine/FxEngine.h"
|
|
|
|
|
|
void init_controls()
|
|
{
|
|
dfont(&font_FxEngine);
|
|
|
|
}
|
|
|
|
static bool fps_visibility;
|
|
static char fps[10];
|
|
void reload_fps_displaying()
|
|
{
|
|
sprintf(fps,"%d",FE_get_fps_current());
|
|
}
|
|
void display_fps(int x, int y)
|
|
{
|
|
dimage(x,y,&img_fps);
|
|
dtext(x+11, y+2, fps, C_BLACK, C_NONE);
|
|
} |