#include <nds.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "virtualfile.h"
#include "drawing.h"
#include "glWrapper.h"
#include "text.h"
#include "map.h"
#include "keys.h"
#include "messagebox.h"
#include "loading_utility.h"
Defines | |
#define | UL_PI 256 |
#define | ulSin(angle, radius) ((ul_sin[angle & 511] * radius) >> 8) |
#define | ulCos(angle, radius) ((ul_cos[angle & 511] * radius) >> 8) |
#define | ulAbs(x) (((x)<0)?(-(x)):(x)) |
#define | ulMin(x, y) (((x)<(y))?(x):(y)) |
#define | ulMax(x, y) (((x)>(y))?(x):(y)) |
#define | ulNumberof(n) (sizeof(n)/sizeof(*(n))) |
#define | CODE_IN_ITCM __attribute__ ((section (".itcm"), long_call)) |
#define | DATA_IN_DTCM __attribute__ ((section (".dtcm"))) |
#define | ulDebug(format...) ({ char __str[1000]; sprintf(__str , ##format); ulDebugText(__str); }) |
Enumerations | |
enum | UL_INIT_FLAGS { UL_INIT_ALL = 0, UL_INIT_LIBONLY = 1 } |
Functions | |
void | ulInit (UL_INIT_FLAGS flags) |
int | ulGetPowerOf2Count (int value) |
int | ulShowSplashScreen (int splashType) |