comparison trunk/src/Modules/Output/Graphics/Devices/GraphicsOutputDeviceCairo.h @ 443:f2dd5788e1d8

- Support for output as a set of PNG files.
author tomwalters
date Sun, 14 Nov 2010 05:56:50 +0000
parents a908972d234e
children
comparison
equal deleted inserted replaced
442:2d0b057e525c 443:f2dd5788e1d8
62 * 62 *
63 * As usual, make sure to call this function before any other. If this 63 * As usual, make sure to call this function before any other. If this
64 * Initialize() failed, you shouldn't try the other functions either. 64 * Initialize() failed, you shouldn't try the other functions either.
65 */ 65 */
66 bool Initialize(string directory); 66 bool Initialize(string directory);
67 virtual bool Initialize(Parameters *global_parameters);
68
67 void gGrab(); 69 void gGrab();
68 void gBeginLineStrip(); 70 void gBeginLineStrip();
69 void gBeginQuadStrip(); 71 void gBeginQuadStrip();
70 using GraphicsOutputDevice::gVertex3f; // Because we overload it 72 using GraphicsOutputDevice::gVertex3f; // Because we overload it
71 void gVertex3f(float x, float y, float z); 73 void gVertex3f(float x, float y, float z);
73 void gEnd(); 75 void gEnd();
74 void gText3f(float x, float y, float z, const char *sStr, bool bRotated = false); 76 void gText3f(float x, float y, float z, const char *sStr, bool bRotated = false);
75 void gRelease(); 77 void gRelease();
76 unsigned char* GetBuffer(); 78 unsigned char* GetBuffer();
77 int GetPixelFormat(); 79 int GetPixelFormat();
80 virtual void Reset(Parameters* global_parameters);
78 protected: 81 protected:
79 /*! \brief Internal initialisation 82 /*! \brief Internal initialisation
80 * 83 *
81 */ 84 */
82 void InititalzeInternal(); 85 void InitialzeInternal();
83 86
84 /*! \brief Open the file with given index for output 87 /*! \brief Open the file with given index for output
85 * \param index File number to open 88 * \param index File number to open
86 * \return true on success, false on error 89 * \return true on success, false on error
87 * 90 *