examples/eqPixelBench/channel.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef EQ_PIXELBENCH_CHANNEL_H
00019 #define EQ_PIXELBENCH_CHANNEL_H
00020
00021 #include <eq/eq.h>
00022
00023 namespace eqPixelBench
00024 {
00025 struct ConfigEvent;
00026
00027 class Channel : public eq::Channel
00028 {
00029 public:
00030 Channel( eq::Window* parent );
00031 virtual ~Channel() {}
00032
00033 protected:
00034 virtual void frameStart( const uint32_t frameID,
00035 const uint32_t frameNumber );
00036 virtual void frameDraw( const uint32_t frameID );
00037
00038 ConfigEvent _createConfigEvent();
00039
00040 private:
00041 void _draw( const uint32_t spin );
00042 void _testFormats();
00043 void _testTiledOperations();
00044 void _testDepthAssemble();
00045 void _saveImage( const eq::Image* image,
00046 const char* type = "",
00047 const char* format = "",
00048 const char* info = "" );
00049
00050 private:
00051 eq::Frame _frame;
00052 };
00053 }
00054
00055 #endif // EQ_PIXELBENCH_CHANNEL_H
00056