Panda3D
 All Classes Functions Variables Enumerations
tinyTextureContext.I
1 // Filename: tinyTextureContext.I
2 // Created by: drose (30Apr08)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 
16 ////////////////////////////////////////////////////////////////////
17 // Function: TinyTextureContext::Constructor
18 // Access: Public
19 // Description:
20 ////////////////////////////////////////////////////////////////////
21 INLINE TinyTextureContext::
22 TinyTextureContext(PreparedGraphicsObjects *pgo, Texture *tex, int view) :
23  TextureContext(pgo, tex, view)
24 {
25  _gltex.num_levels = 0;
26  _gltex.allocated_buffer = NULL;
27  _gltex.total_bytecount = 0;
28 }
29 
30 ////////////////////////////////////////////////////////////////////
31 // Function: TinyTextureContext::Destructor
32 // Access: Public
33 // Description:
34 ////////////////////////////////////////////////////////////////////
35 INLINE TinyTextureContext::
36 ~TinyTextureContext() {
37  nassertv(_gltex.num_levels == 0 && _gltex.allocated_buffer == NULL && _gltex.total_bytecount == 0);
38 }
Represents a texture object, which is typically a single 2-d image but may also represent a 1-d or 3-...
Definition: texture.h:75
This is a special class object that holds all the information returned by a particular GSG to indicat...
A table of objects that are saved within the graphics context for reference by handle later...