Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

TextRenderer.cc

Go to the documentation of this file.
00001 /*
00002     File:           TextRenderer.cc
00003 
00004     Function:       Implements TextRenderer.h
00005 
00006     Author(s):      Andrew Willmott
00007 
00008     Copyright:      (c) 1997-2000, Andrew Willmott
00009 
00010     Notes:          Defines a vanilla renderer object. Just outputs the calls
00011                     it gets as text.
00012 */
00013 
00014 #include <iostream.h>
00015 #include "gcl/TextRenderer.h"
00016 
00017 
00018 Void TextRenderer::MakeCurrent()
00019 {
00020 }
00021 
00022 Void TextRenderer::Show()
00023 {
00024     SetWindow();
00025 }
00026 
00027 // --- Renderer Drawing Operators ---------------------------------------------
00028 
00029 
00030 Renderer &TextRenderer::SetColour(const Colour &c)
00031 {
00032     *sout << "Colour " << c << endl;
00033     
00034     return(SELF);
00035 }
00036 
00037 Renderer &TextRenderer::SetPoint(const Point &p)
00038 {
00039     *sout << "Point " << p << endl;
00040     
00041     return(SELF);
00042 }
00043 
00044 Renderer &TextRenderer::SetCoord(const Coord &c)
00045 {
00046     *sout << "Coord " << c << endl;
00047     
00048     return(SELF);
00049 }
00050 
00051 Renderer &TextRenderer::SetNormal(const Vector &n)
00052 {
00053     *sout << "Normal " << n << endl;
00054     
00055     return(SELF);
00056 }
00057 
00058 Renderer &TextRenderer::SetTransform(const Transform &t)
00059 {
00060     *sout << "Transform " << t << endl;
00061     
00062     return(SELF);
00063 }
00064 
00065 Renderer &TextRenderer::SetCamera(const Camera &c)
00066 {
00067     *sout << "Camera\nproject:" << c.ProjMatrix() << endl;
00068     *sout << "model:" << c.ModelMatrix() << endl;
00069     
00070     return(SELF);
00071 }
00072 
00073 Renderer &TextRenderer::Pop()
00074 {
00075     *sout << "Pop" << endl;
00076     
00077     return(SELF);
00078 }
00079 
00080 Renderer &TextRenderer::Push()
00081 {
00082     *sout << "Push" << endl;
00083     
00084     return(SELF);
00085 }
00086 
00087 Renderer &TextRenderer::Clear()
00088 {
00089     *sout << "Clear" << endl;
00090 
00091     return(SELF);
00092 }
00093 
00094 Renderer &TextRenderer::Begin(RenderStyle command)
00095 {
00096     *sout << "Begin: " << (Int) command << endl;
00097     
00098     return(SELF);
00099 }
00100 
00101 Renderer &TextRenderer::End()
00102 {
00103     *sout << "End" << endl;
00104     
00105     return(SELF);
00106 }
00107 
00108 Void TextRenderer::Print(ostream &s)
00109 {
00110     s << "Text Renderer." << endl;  
00111 }
00112 

Generated at Sat Aug 5 00:17:04 2000 for Graphics Class Library by doxygen 1.1.0 written by Dimitri van Heesch, © 1997-2000