display.h

Go to the documentation of this file.
00001 
00002 //
00003 // Das Tank - Copyright (C) 2006, 2007 Windsor Schmidt <windsor@windsorworld.net>
00004 //
00005 // This program is free software; you can redistribute it and/or modify it
00006 // under the terms of the GNU General Public License as published by the Free
00007 // Software Foundation; either version 2 of the License, or (at your option)
00008 // any later version.
00009 //
00010 // This program is distributed in the hope that it will be useful, but WITHOUT
00011 // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00012 // FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
00013 // more details.
00014 //
00015 // You should have received a copy of the GNU General Public License along with
00016 // this program; if not, write to the Free Software Foundation, Inc., 59 Temple
00017 // Place, Suite 330, Boston, MA 02111-1307 USA
00018 //
00020 
00021 
00022 void InitGL(int Width, int Height);
00023 void UpdateAnimation(CWorld * ThisWorld);
00024 void DrawGLScene(CWorld * ThisWorld);
00025 void DrawTiles(CWorld * ThisWorld);
00026 void DrawObjects(CWorld * ThisWorld);
00027 void DrawStripe(float top, float bottom, float alpha);
00028 void DrawCircle(float radius);
00029 void DrawStar(float radius);
00030 void DrawDisc(float radius);
00031 void InitStripeAlpha(void);
00032 void DrawBarGraph(float top, float bottom, float left, float right, float fillPercent);
00033 void DrawHUD(CWorld * ThisWorld);
00034 void renderBitmapString(float x, float y, float z, void *font, char *string);
00035 void InitTextures();
00036 GLuint LoadTextureRAW( const char * filename, int wrap);
00037 GLuint LoadTextureTGA( const char * filename, int wrap);
00038 GLuint GetTexture(int texID);
00039 GLuint GetFrame(int animID, int frame);
00040 int GetTotalFrames(int animID);
00041 CAnimation * GetAnimation(int animID);
00042 
00043 #define TGA_FILE_NOT_FOUND  13 // file was not found
00044 #define TGA_BAD_IMAGE_TYPE  14 // color mapped image or image is not uncompressed
00045 #define TGA_BAD_DIMENSION   15 // dimension is not a power of 2
00046 #define TGA_BAD_BITS        16 // image bits is not 8, 24 or 32
00047 #define TGA_BAD_DATA        17 // image data could not be loaded

 

Copyright Windsor Schmidt 2006 - All rights reserved.