Mercurial > hg > aimc
comparison src/Modules/Output/Graphics/Devices/GraphicsOutputDevice.h @ 229:ddf35dd82d63
- A few changes to get graphics working. In progress.
author | tom@acousticscale.org |
---|---|
date | Sat, 16 Oct 2010 22:27:03 +0000 |
parents | 82e0dc3dfd16 |
children | af02b6addf7a |
comparison
equal
deleted
inserted
replaced
228:82e0dc3dfd16 | 229:ddf35dd82d63 |
---|---|
17 | 17 |
18 #ifndef __GRAPHICS_OUTPUT_DEVICE_H__ | 18 #ifndef __GRAPHICS_OUTPUT_DEVICE_H__ |
19 #define __GRAPHICS_OUTPUT_DEVICE_H__ | 19 #define __GRAPHICS_OUTPUT_DEVICE_H__ |
20 | 20 |
21 #include "Support/Parameters.h" | 21 #include "Support/Parameters.h" |
22 | |
23 namespace aimc { | |
22 | 24 |
23 /*! | 25 /*! |
24 * \class GraphicsOutputDevice "Output/GraphicsOutputDevice.h" | 26 * \class GraphicsOutputDevice "Output/GraphicsOutputDevice.h" |
25 * \brief General output device class | 27 * \brief General output device class |
26 * | 28 * |
59 * children's implementation. Note that the basic operations that need | 61 * children's implementation. Note that the basic operations that need |
60 * implementation are glVertex3f(x,y,z) and glColor(r,g,b). | 62 * implementation are glVertex3f(x,y,z) and glColor(r,g,b). |
61 */ | 63 */ |
62 class GraphicsOutputDevice { | 64 class GraphicsOutputDevice { |
63 public: | 65 public: |
64 GraphicsOutputDevice(AimParameters *pParam); | 66 GraphicsOutputDevice(Parameters *pParam); |
65 virtual ~GraphicsOutputDevice() { }; | 67 virtual ~GraphicsOutputDevice() { }; |
66 | 68 |
67 /*! \brief Initialize the module, sets up everything to Start(). | 69 /*! \brief Initialize the module, sets up everything to Start(). |
68 * \return true on success, false on error | 70 * \return true on success, false on error |
69 * | 71 * |
180 | 182 |
181 protected: | 183 protected: |
182 //! \brief True when animation is running | 184 //! \brief True when animation is running |
183 bool m_bRunning; | 185 bool m_bRunning; |
184 //! \brief Parameter store | 186 //! \brief Parameter store |
185 AimParameters *m_pParam; | 187 Parameters *m_pParam; |
186 | 188 |
187 //! \brief Pixel Formats | 189 //! \brief Pixel Formats |
188 enum PixelFormat {AIM_PIX_FMT_RGB24_32, AIM_PIX_FMT_RGB24_24}; | 190 enum PixelFormat {AIM_PIX_FMT_RGB24_32, AIM_PIX_FMT_RGB24_24}; |
189 }; | 191 }; |
190 | 192 } // namespace aimc |
191 #endif /* __GRAPHICS_OUTPUT_DEVICE__ */ | 193 #endif /* __GRAPHICS_OUTPUT_DEVICE__ */ |