Main Page | Alphabetical List | Compound List | File List | Compound Members | File Members

BUFFER.H

Go to the documentation of this file.
00001 /****************************************************************************************/
00002 /*  Buffer.h                                                                            */
00003 /*                                                                                      */
00004 /*  Author: John Pollard                                                                */
00005 /*  Description:                                                                        */
00006 /*                                                                                      */
00007 /*  Copyright (c) 1997, 1999, Eclipse Entertainment; All rights reserved.               */
00008 /*                                                                                      */
00009 /*  See the accompanying file LICENSE.TXT for terms on the use of this library.         */
00010 /*  This library is distributed in the hope that it will be useful but WITHOUT          */
00011 /*  ANY WARRANTY OF ANY KIND and without any implied warranty of MERCHANTABILITY        */
00012 /*  or FITNESS FOR ANY PURPOSE.  Refer to LICENSE.TXT for more details.                 */
00013 /*                                                                                      */
00014 /****************************************************************************************/
00015 #ifndef __BUFFER_H__
00016 #define __BUFFER_H__
00017 
00018 #include <Windows.h>
00019 
00020 #include "Genesis.h"
00021 
00022 #ifdef __cplusplus
00023 extern "C" {
00024 #endif
00025 
00026 typedef struct
00027 {
00028         int32   Size;                   // Size of buffer in bytes
00029         int32   Pos;                    // Current size/pos
00030         uint8   *Data;                  // Pointer to data
00031 } Buffer_Data;
00032 
00033 geBoolean Buffer_FillByte(Buffer_Data *Buffer, uint8 Byte);
00034 geBoolean Buffer_FillShort(Buffer_Data *Buffer, uint16 Short);
00035 geBoolean Buffer_FillLong(Buffer_Data *Buffer, uint32 Long);
00036 geBoolean Buffer_FillSLong(Buffer_Data *Buffer, int32 Long);
00037 geBoolean Buffer_FillFloat(Buffer_Data *Buffer, float Float);
00038 geBoolean Buffer_FillFloat2(Buffer_Data *Buffer, float Float, float Max);
00039 geBoolean Buffer_FillAngle(Buffer_Data *Buffer, geVec3d Angle);
00040 geBoolean Buffer_FillPos(Buffer_Data *Buffer, geVec3d Pos);
00041 geBoolean Buffer_FillString(Buffer_Data *Buffer, uint8 *Str);
00042 geBoolean Buffer_FillBuffer(Buffer_Data *Buffer1, Buffer_Data *Buffer2);
00043 geBoolean Buffer_FillData(Buffer_Data *Buffer1, uint8 *Data, int32 Size);
00044 
00045 geBoolean Buffer_GetByte(Buffer_Data *Buffer, uint8 *Byte);
00046 geBoolean Buffer_GetShort(Buffer_Data *Buffer, uint16 *Short);
00047 geBoolean Buffer_GetLong(Buffer_Data *Buffer, uint32 *Long);
00048 geBoolean Buffer_GetSLong(Buffer_Data *Buffer, int32 *Long);
00049 geBoolean Buffer_GetFloat(Buffer_Data *Buffer, float *Float);
00050 geBoolean Buffer_GetFloat2(Buffer_Data *Buffer, float *Float, float Max);
00051 geBoolean Buffer_GetAngle(Buffer_Data *Buffer, geVec3d *Angle);
00052 geBoolean Buffer_GetPos(Buffer_Data *Buffer, geVec3d *Pos);
00053 geBoolean Buffer_GetString(Buffer_Data *Buffer, uint8 *Str);
00054 geBoolean Buffer_GetData(Buffer_Data *Buffer1, uint8 *Data, int32 Size);
00055 geBoolean Buffer_Set(Buffer_Data *Buffer, char *Data, int32 Size);
00056 
00057 #ifdef __cplusplus
00058 }
00059 #endif
00060 
00061 #endif

Generated on Tue Sep 30 12:35:23 2003 for GTestAndEngine by doxygen 1.3.2