/*---------------------------------------------------------------------- * File Name: tex.h * * Copyright (c) 1994 Sega of America, Inc. All Rights Reserved. * * Author(s): jef * Date: 5-10-94 * Description: Mars Texture routines * * History: * *---------------------------------------------------------------------*/ #ifndef __TEX_H__ #define __TEX_H__ #include "shtypes.h" struct Texture { void *addr; Uint16 charSize; Uint32 size; Uint16 charAddr; }; typedef struct Texture Texture; extern Uint16 FBuf[]; #define charSize(x, y) ((Uint16)( ((x >> 3) << 8) | (y)) ) #define charAddr(a) ( (Uint16)((a - VRAM_ADDR) >> 3) ) extern Texture TexTable[32]; extern Int16 NumTextures; extern Uint32 TexAddr; void texInit( void ); void texLoad( void *texAddr, Uint32 texSize, Uint16 charSize ); void myTexLoad(); #endif /* __TEX_H__ */