/*---------------------------------------------------------------------- * File Name: tex.c * * Copyright (c) 1994 Sega of America, Inc. All Rights Reserved. * * Author(s): jef * Date: 5-10-94 * Description: Mars library routines texture * * History: * *---------------------------------------------------------------------*/ #include "demo.h" #include "tex.h" #include "shtypes.h" Texture TexTable[32]; Int16 NumTextures; Uint32 TexAddr; /*-------------------------------------------------------------------- * void texInit(): initialize texture table *---------------------------------------------------------------------*/ void texInit( void ) { TexAddr = 0; NumTextures = 0; } void texLoad( void *texAddr, Uint32 texSize, Uint16 charSize ) { TexTable[NumTextures].charSize = charSize; TexTable[NumTextures].size = texSize; TexTable[NumTextures].charAddr = charAddr(TexAddr); TexTable[NumTextures].addr = (void *)texAddr; TexAddr += texSize; ++NumTextures; }