Panda3D
|
00001 // Filename: physxMemoryWriteBuffer.h 00002 // Created by: enn0x (11Oct09) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) Carnegie Mellon University. All rights reserved. 00008 // 00009 // All use of this software is subject to the terms of the revised BSD 00010 // license. You should have received a copy of this license along 00011 // with this source code in a file named "LICENSE." 00012 // 00013 //////////////////////////////////////////////////////////////////// 00014 00015 #ifndef PHYSXMEMORYWRITEBUFFER_H 00016 #define PHYSXMEMORYWRITEBUFFER_H 00017 00018 #include "pandabase.h" 00019 00020 #include "physx_includes.h" 00021 00022 //////////////////////////////////////////////////////////////////// 00023 // Class : PhysxMemoryWriteBuffer 00024 // Description : 00025 //////////////////////////////////////////////////////////////////// 00026 class EXPCL_PANDAPHYSX PhysxMemoryWriteBuffer : public NxStream { 00027 00028 public: 00029 PhysxMemoryWriteBuffer(); 00030 virtual ~PhysxMemoryWriteBuffer(); 00031 00032 virtual NxU8 readByte() const { NX_ASSERT(0); return 0; } 00033 virtual NxU16 readWord() const { NX_ASSERT(0); return 0; } 00034 virtual NxU32 readDword() const { NX_ASSERT(0); return 0; } 00035 virtual float readFloat() const { NX_ASSERT(0); return 0.0f; } 00036 virtual double readDouble() const { NX_ASSERT(0); return 0.0; } 00037 virtual void readBuffer(void *buffer, NxU32 size) const { NX_ASSERT(0); } 00038 00039 virtual NxStream &storeByte(NxU8 b); 00040 virtual NxStream &storeWord(NxU16 w); 00041 virtual NxStream &storeDword(NxU32 d); 00042 virtual NxStream &storeFloat(NxReal f); 00043 virtual NxStream &storeDouble(NxF64 f); 00044 virtual NxStream &storeBuffer(const void *buffer, NxU32 size); 00045 00046 NxU32 currentSize; 00047 NxU32 maxSize; 00048 NxU8 *data; 00049 }; 00050 00051 #endif // PHYSXMEMORYWRITEBUFFER_H