00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
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 };
00130 };
00131