eqPly.h

00001 
00002 /* Copyright (c) 2006-2008, Stefan Eilemann <eile@equalizergraphics.com> 
00003  *
00004  * This library is free software; you can redistribute it and/or modify it under
00005  * the terms of the GNU Lesser General Public License version 2.1 as published
00006  * by the Free Software Foundation.
00007  *  
00008  * This library is distributed in the hope that it will be useful, but WITHOUT
00009  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
00010  * FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more
00011  * details.
00012  * 
00013  * You should have received a copy of the GNU Lesser General Public License
00014  * along with this library; if not, write to the Free Software Foundation, Inc.,
00015  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
00016  */
00017 
00018 #ifndef EQ_PLY_H
00019 #define EQ_PLY_H
00020 
00021 #include <eq/eq.h>
00022 
00023 #include "vertexBufferDist.h"
00024 #include "vertexBufferRoot.h"
00025 
00026 
00028 namespace eqPly
00029 {
00030     class LocalInitData;
00031 
00032     typedef mesh::VertexBufferRoot    Model;
00033     typedef VertexBufferDist          ModelDist;
00034 
00036     class EqPly : public eq::Client
00037     {
00038     public:
00039         EqPly( const LocalInitData& initData );
00040         virtual ~EqPly() {}
00041 
00043         int run();
00044 
00045         static const std::string& getHelp();
00046 
00047     protected:
00049         virtual bool clientLoop();
00050         
00051     private:
00052         const LocalInitData& _initData;
00053     };
00054 
00055     enum ColorMode
00056     {
00057         COLOR_MODEL, 
00058         COLOR_DEMO,  
00059         COLOR_WHITE, 
00060         COLOR_ALL    
00061     };
00062 
00063     enum LogTopics
00064     {
00065         LOG_STATS = eq::LOG_CUSTOM << 0, // 65536
00066         LOG_CULL  = eq::LOG_CUSTOM << 1  // 131072
00067     };
00068 }
00069 
00070 #endif // EQ_PLY_H
00071 
Generated on Mon Aug 10 18:58:32 2009 for Equalizer 0.9 by  doxygen 1.5.8