Vegastrike 0.5.1 rc1  1.0
Original sources for Vegastrike Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
aux_texture.cpp File Reference
#include <stdio.h>
#include <assert.h>
#include "gfxlib.h"
#include <string>
#include "endianness.h"
#include "hashtable.h"
#include "vsfilesystem.h"
#include "vsimage.h"
#include "vs_globals.h"
#include "in_kb.h"
#include "main_loop.h"
#include "aux_texture.h"

Go to the source code of this file.

Functions

static void ActivateWhite (int stage)
 

Variables

Hashtable< string, Texture, 4007 > texHashTable
 holds all the textures in a huge hash table More...
 
Hashtable< string, bool, 4007 > badtexHashTable
 

Function Documentation

static void ActivateWhite ( int  stage)
static

Definition at line 658 of file aux_texture.cpp.

References Texture::LoadSuccess(), Texture::MakeActive(), MIPMAP, BaseUtil::Texture(), TEXTURE2D, and TEXTURE_2D.

Referenced by Texture::MakeActive().

659 {
660  static Texture *white = new Texture( "white.bmp", 0, MIPMAP, TEXTURE2D, TEXTURE_2D, 1 );
661  if ( white->LoadSuccess() )
662  white->MakeActive( stage );
663 }

Variable Documentation

Hashtable< string, bool, 4007 > badtexHashTable

Definition at line 40 of file aux_texture.cpp.

Referenced by Texture::checkbad(), and Texture::setbad().

Hashtable< string, Texture, 4007 > texHashTable

holds all the textures in a huge hash table

Definition at line 39 of file aux_texture.cpp.

Referenced by Texture::checkold(), Texture::FileNotFound(), Texture::modold(), and Texture::UnBind().