00001 //============================================================================= 00002 // 00003 // OpenMesh 00004 // Copyright (C) 2001-2005 by Computer Graphics Group, RWTH Aachen 00005 // www.openmesh.org 00006 // 00007 //----------------------------------------------------------------------------- 00008 // 00009 // License 00010 // 00011 // This library is free software; you can redistribute it and/or modify it 00012 // under the terms of the GNU Library General Public License as published 00013 // by the Free Software Foundation, version 2. 00014 // 00015 // This library is distributed in the hope that it will be useful, but 00016 // WITHOUT ANY WARRANTY; without even the implied warranty of 00017 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00018 // Library General Public License for more details. 00019 // 00020 // You should have received a copy of the GNU Library General Public 00021 // License along with this library; if not, write to the Free Software 00022 // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00023 // 00024 //----------------------------------------------------------------------------- 00025 // 00026 // $Revision: 1.1.1.1 $ 00027 // $Date: 2004/09/06 12:35:08 $ 00028 // 00029 //============================================================================= 00030 00031 00032 //============================================================================= 00033 // 00034 // Helper Functions for binary reading / writing 00035 // 00036 //============================================================================= 00037 00038 #ifndef OPENMESH_SR_TYPES_HH 00039 #define OPENMESH_SR_TYPES_HH 00040 00041 00042 //== INCLUDES ================================================================= 00043 00044 #include <OpenMesh/Core/System/config.hh> 00045 00046 00047 //== NAMESPACES =============================================================== 00048 00049 namespace OpenMesh { 00050 namespace IO { 00051 00052 00053 //============================================================================= 00054 00055 00060 00061 //----------------------------------------------------------------------------- 00062 00063 typedef unsigned char uchar; 00064 typedef unsigned short ushort; 00065 typedef unsigned int uint; 00066 typedef unsigned long ulong; 00067 00068 typedef char int8_t; typedef unsigned char uint8_t; 00069 typedef short int16_t; typedef unsigned short uint16_t; 00070 typedef long int32_t; typedef unsigned long uint32_t; 00071 #if defined(OM_CC_MSVC) 00072 typedef __int64 int64_t; typedef unsigned __int64 uint64_t; 00073 #else 00074 typedef long long int64_t; typedef unsigned long long uint64_t; 00075 #endif 00076 00077 typedef float float32_t; 00078 typedef double float64_t; 00079 00080 typedef uint8_t rgb_t[3]; 00081 typedef uint8_t rgba_t[4]; 00082 00084 00085 00086 //============================================================================= 00087 } // namespace IO 00088 } // namespace OpenMesh 00089 //============================================================================= 00090 #endif // OPENMESH_MESHREADER_HH defined 00091 //============================================================================= 00092