00001 //============================================================================= 00002 // 00003 // OpenMesh 00004 // Copyright (C) 2003 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 Lesser General Public License as published 00013 // by the Free Software Foundation, version 2.1. 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 // Lesser General Public License for more details. 00019 // 00020 // You should have received a copy of the GNU Lesser 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: 1801 $ 00027 // $Date: 2008-05-19 11:53:56 +0200 (Mon, 19 May 2008) $ 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.h> 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 long ulong; 00066 00067 typedef char int8_t; typedef unsigned char uint8_t; 00068 typedef short int16_t; typedef unsigned short uint16_t; 00069 typedef long int32_t; typedef unsigned long uint32_t; 00070 #if defined(OM_CC_MSVC) 00071 typedef __int64 int64_t; typedef unsigned __int64 uint64_t; 00072 #else 00073 typedef long long int64_t; typedef unsigned long long uint64_t; 00074 #endif 00075 00076 typedef float float32_t; 00077 typedef double float64_t; 00078 00079 typedef uint8_t rgb_t[3]; 00080 typedef uint8_t rgba_t[4]; 00081 00083 00084 00085 //============================================================================= 00086 } // namespace IO 00087 } // namespace OpenMesh 00088 //============================================================================= 00089 #endif // OPENMESH_MESHREADER_HH defined 00090 //============================================================================= 00091