Equalizer 1.0
|
00001 00002 /* Copyright (c) 2005-2010, Stefan Eilemann <eile@equalizergraphics.com> 00003 * 2010, Cedric Stalder <cedric Stalder@gmail.com> 00004 * 00005 * This library is free software; you can redistribute it and/or modify it under 00006 * the terms of the GNU Lesser General Public License version 2.1 as published 00007 * by the Free Software Foundation. 00008 * 00009 * This library is distributed in the hope that it will be useful, but WITHOUT 00010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 00011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 00012 * details. 00013 * 00014 * You should have received a copy of the GNU Lesser General Public License 00015 * along with this library; if not, write to the Free Software Foundation, Inc., 00016 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 00017 */ 00018 00019 #ifndef EQ_PACKETS_H 00020 #define EQ_PACKETS_H 00021 00022 #include <eq/fabric/commands.h> // enum 00023 #include <eq/fabric/packetType.h> // member 00024 #include <eq/fabric/renderContext.h> // member 00025 00026 namespace eq 00027 { 00029 typedef co::ObjectPacket ConfigPacket; 00030 typedef co::ObjectPacket ChannelPacket; 00031 typedef co::ObjectPacket WindowPacket; 00032 typedef co::ObjectPacket PipePacket; 00033 typedef co::ObjectPacket NodePacket; 00034 00035 struct ClientPacket : public co::Packet 00036 { 00037 ClientPacket(){ type = fabric::PACKETTYPE_EQ_CLIENT; } 00038 }; 00039 00040 struct ChannelTaskPacket : public ChannelPacket 00041 { 00042 RenderContext context; 00043 }; 00044 00045 inline std::ostream& operator << ( std::ostream& os, 00046 const ChannelTaskPacket* packet ) 00047 { 00048 os << (co::ObjectPacket*)packet << " " << packet->context; 00049 return os; 00050 } 00052 } 00053 00054 #endif // EQ_PACKETS_H 00055