src/render/rRender.cpp

Go to the documentation of this file.
00001 /*
00002 
00003 *************************************************************************
00004 
00005 ArmageTron -- Just another Tron Lightcycle Game in 3D.
00006 Copyright (C) 2000  Manuel Moos (manuel@moosnet.de)
00007 
00008 **************************************************************************
00009 
00010 This program is free software; you can redistribute it and/or
00011 modify it under the terms of the GNU General Public License
00012 as published by the Free Software Foundation; either version 2
00013 of the License, or (at your option) any later version.
00014 
00015 This program is distributed in the hope that it will be useful,
00016 but WITHOUT ANY WARRANTY; without even the implied warranty of
00017 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00018 GNU General Public License for more details.
00019 
00020 You should have received a copy of the GNU General Public License
00021 along with this program; if not, write to the Free Software
00022 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
00023   
00024 ***************************************************************************
00025 
00026 */
00027 
00028 #include "rRender.h"
00029 
00030 rRenderer *renderer;
00031 
00032 void sr_RendererCleanup(){
00033     delete renderer;
00034     renderer = 0;
00035 }
00036 
00037 rRenderer::rRenderer(){
00038     renderer = this;
00039 
00040     // Clear the flag stack
00041 
00042     int i;
00043 
00044     stackpos = 0;
00045 
00046     for (i = STACK_DEPTH-1; i>=0; i--)
00047         flagstack[i] = 0;
00048 }
00049 
00050 rRenderer::~rRenderer(){
00051     if (renderer == this)
00052         renderer = 0;
00053 }
00054 
00055 void rRenderer::TexVertex(REAL x, REAL y, REAL z,
00056                           REAL u, REAL v){
00057     TexCoord(u,v);
00058     Vertex(x,y,z);
00059 }
00060 
00061 void rRenderer::Line(REAL x1, REAL y1, REAL z1,
00062                      REAL x2, REAL y2, REAL z2){
00063     BeginLines();
00064     Vertex(x1,y1,z1);
00065     Vertex(x2,y2,z2);
00066 }
00067 
00068 void rRenderer::SetFlag(flag f, bool c)
00069 {
00070     ReallySetFlag(f, c);
00071 }
00072 
00073 
00074 void rRenderer::ChangeFlags(int before, int after) const{
00075 
00076 }
00077 
00078 
00079 

Generated on Sat Mar 15 22:55:52 2008 for Armagetron Advanced by  doxygen 1.5.4