graphics

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit b82d26a75b526101afe8497a1261fb440fdb3abd
parent c7bec81c13e696a24ceadc4edcdbdb05d3dc703d
Author: Brian Swetland <swetland@frotz.net>
Date:   Sat, 22 Jun 2013 02:01:53 -0700

util: useful integer datatypes

Diffstat:
Mcommon/util.h | 8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git a/common/util.h b/common/util.h @@ -16,6 +16,14 @@ #ifndef _UTIL_H_ #define _UTIL_H_ +/* basic datatypes */ +typedef unsigned int u32; +typedef int s32; +typedef unsigned short u16; +typedef short s16; +typedef unsigned char u8; +typedef signed char s8; + /* file io helpers */ void *load_png_rgba(const char *fn, unsigned *width, unsigned *height, int texture); void *load_png_gray(const char *fn, unsigned *width, unsigned *height, int texture);