Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

ViewClient.cpp

Go to the documentation of this file.
00001 
00002 /*
00003     TEDDY - General graphics application library
00004     Copyright (C) 1999-2002  Timo Suoranta
00005     tksuoran@cc.helsinki.fi
00006 
00007     This library is free software; you can redistribute it and/or
00008     modify it under the terms of the GNU Lesser General Public
00009     License as published by the Free Software Foundation; either
00010     version 2.1 of the License, or (at your option) any later version.
00011 
00012     This library is distributed in the hope that it will be useful,
00013     but WITHOUT ANY WARRANTY; without even the implied warranty of
00014     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015     Lesser General Public License for more details.
00016 
00017     You should have received a copy of the GNU Lesser General Public
00018     License along with this library; if not, write to the Free Software
00019     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00020 
00021     $Id: ViewClient.cpp,v 1.4 2002/01/11 14:34:59 tksuoran Exp $
00022 */
00023 
00024 
00025 #include "Teddy/Graphics/View.h"
00026 #include "Teddy/Graphics/ViewClient.h"
00027 
00028 
00029 namespace Teddy    {
00030 namespace Graphics {
00031 
00032 
00033 void ViewClient::color( const float r, const float g, const float b, const float a ){
00034     view->color( r, g, b, a );
00035 }
00036 
00037 
00038 void ViewClient::color( const Color &c ){
00039     view->color( c );
00040 }
00041 
00042 
00043 void  ViewClient::vertex ( const float a, const float b ) const { view->vertex(a,b); }
00044 void  ViewClient::vertex ( const Teddy::Maths::TVector <int>    &v ) const { view->vertex (v); }
00045 void  ViewClient::vertex ( const Teddy::Maths::TVector <float>  &v ) const { view->vertex (v); }
00046 void  ViewClient::vertex ( const Teddy::Maths::TVector <double> &v ) const { view->vertex (v); }
00047 void  ViewClient::vertex ( const Teddy::Maths::TVector2<int>    &v ) const { view->vertex (v); }
00048 void  ViewClient::vertex ( const Teddy::Maths::TVector2<float>  &v ) const { view->vertex (v); }
00049 void  ViewClient::vertex ( const Teddy::Maths::TVector2<double> &v ) const { view->vertex (v); }
00050 void  ViewClient::normal ( const Teddy::Maths::TVector <int>    &n ) const { view->normal (n); }
00051 void  ViewClient::normal ( const Teddy::Maths::TVector <float>  &n ) const { view->normal (n); }
00052 void  ViewClient::normal ( const Teddy::Maths::TVector <double> &n ) const { view->normal (n); }
00053 void  ViewClient::normal ( const Teddy::Maths::TVector2<int>    &n ) const { view->normal (n); }
00054 void  ViewClient::normal ( const Teddy::Maths::TVector2<float>  &n ) const { view->normal (n); }
00055 void  ViewClient::normal ( const Teddy::Maths::TVector2<double> &n ) const { view->normal (n); }
00056 void  ViewClient::texture( const Teddy::Maths::TVector <int>    &t ) const { view->texture(t); }
00057 void  ViewClient::texture( const Teddy::Maths::TVector <float>  &t ) const { view->texture(t); }
00058 void  ViewClient::texture( const Teddy::Maths::TVector <double> &t ) const { view->texture(t); }
00059 void  ViewClient::texture( const Teddy::Maths::TVector2<int>    &t ) const { view->texture(t); }
00060 void  ViewClient::texture( const Teddy::Maths::TVector2<float>  &t ) const { view->texture(t); }
00061 void  ViewClient::texture( const Teddy::Maths::TVector2<double> &t ) const { view->texture(t); }
00062 
00063 
00064 void ViewClient::beginPoints(){
00065     view->beginLines();
00066 }
00067 
00068 
00069 void ViewClient::beginLines(){
00070     view->beginLines();
00071 }
00072 
00073 
00074 void ViewClient::beginLineStrip(){
00075     view->beginLines();
00076 }
00077 
00078 
00079 void ViewClient::beginLineLoop(){
00080     view->beginLineLoop();
00081 }
00082 
00083 
00084 void ViewClient::beginTriangles(){
00085     view->beginTriangles();
00086 }
00087 
00088 
00089 void ViewClient::beginTriangleFan(){
00090     view->beginTriangleFan();
00091 }
00092 
00093 
00094 void ViewClient::beginTriangleStrip(){
00095     view->beginTriangleStrip();
00096 }
00097 
00098 
00099 void ViewClient::beginQuads(){
00100     view->beginQuads();
00101 }
00102 
00103 
00104 void ViewClient::beginQuadStrip(){
00105     view->beginQuadStrip();
00106 }
00107 
00108 
00109 void ViewClient::beginPolygon(){
00110     view->beginPolygon();
00111 }
00112 
00113 
00114 void ViewClient::end(){
00115     view->end();
00116 }
00117 
00118 
00119 void ViewClient::setView( View *view ){
00120     this->view = view;
00121 }
00122 
00123 
00124 View *ViewClient::getView() const {
00125     return this->view;
00126 }
00127 
00128 
00129 };  //  namespace Graphics
00130 };  //  namespace Teddy
00131