Logo Search packages:      
Sourcecode: fgfs-atlas version File versions  Download package

Output.cxx

/*-------------------------------------------------------------------------
  Output.cxx
  Abstract graphics output layer

  Written by Per Liedman, started February 2000.
  PostScript code and ideas by Christian Mayer (vader@t-online.de)
  Copyright (C) 2000 Per Liedman, liedman@home.se

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation; either version 2 of the License, or
  (at your option) any later version.

  This program is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.

  You should have received a copy of the GNU General Public License
  along with this program; if not, write to the Free Software
  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
---------------------------------------------------------------------------*/

#include <stdlib.h>
#include "Output.hxx"

GfxOutput::GfxOutput( char *filename, int size, bool smooth_shading ) 
  : size(size), fragment_size(size), posx(0), posy(0) {
  if (filename == NULL) {
    open = false;
  } else {
    open = true;
  }
}

GfxOutput::~GfxOutput() {}

void GfxOutput::closeOutput() {}
void GfxOutput::setShade( bool shade ) {}
bool GfxOutput::getShade() { return false; }
void GfxOutput::setLightVector( sgVec3 light ) {}
void GfxOutput::setColor( const float *rgb ) {}
void GfxOutput::clear( const float *rgb ) {}
void GfxOutput::drawTriangle( const sgVec2 *p, const sgVec3 *normals ) {}
void GfxOutput::drawQuad    ( const sgVec2 *p, const sgVec3 *normals ) {}
void GfxOutput::drawTriangle( const sgVec2 *vertices, const sgVec3 *normals, const sgVec4 *colors ) { drawTriangle( vertices, normals); }
void GfxOutput::drawQuad    ( const sgVec2 *vertices, const sgVec3 *normals, const sgVec4 *colors ) { drawQuad( vertices, normals); }
void GfxOutput::drawCircle  ( sgVec2 p, int radius ) {}
void GfxOutput::drawLine    ( sgVec2 p1, sgVec2 p2 ) {}
void GfxOutput::drawText    ( sgVec2 p, char *text ) {}
void GfxOutput::beginLineStrip() {}
void GfxOutput::addToLineStrip( sgVec2 p ) {}
void GfxOutput::endLineStrip() {}

Generated by  Doxygen 1.6.0   Back to index