00001 // Filename: tinyTextureContext.I 00002 // Created by: drose (30Apr08) 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 00016 //////////////////////////////////////////////////////////////////// 00017 // Function: TinyTextureContext::Constructor 00018 // Access: Public 00019 // Description: 00020 //////////////////////////////////////////////////////////////////// 00021 INLINE TinyTextureContext:: 00022 TinyTextureContext(PreparedGraphicsObjects *pgo, Texture *tex, int view) : 00023 TextureContext(pgo, tex, view) 00024 { 00025 _gltex.num_levels = 0; 00026 _gltex.allocated_buffer = NULL; 00027 _gltex.total_bytecount = 0; 00028 } 00029 00030 //////////////////////////////////////////////////////////////////// 00031 // Function: TinyTextureContext::Destructor 00032 // Access: Public 00033 // Description: 00034 //////////////////////////////////////////////////////////////////// 00035 INLINE TinyTextureContext:: 00036 ~TinyTextureContext() { 00037 nassertv(_gltex.num_levels == 0 && _gltex.allocated_buffer == NULL && _gltex.total_bytecount == 0); 00038 }