Panda3D
graphicsDevice.cxx
Go to the documentation of this file.
1 /**
2  * PANDA 3D SOFTWARE
3  * Copyright (c) Carnegie Mellon University. All rights reserved.
4  *
5  * All use of this software is subject to the terms of the revised BSD
6  * license. You should have received a copy of this license along
7  * with this source code in a file named "LICENSE."
8  *
9  * @file graphicsDevice.cxx
10  * @author masad
11  * @date 2003-07-21
12  */
13 
14 #include "graphicsDevice.h"
15 #include "graphicsPipe.h"
16 #include "config_display.h"
17 
18 TypeHandle GraphicsDevice::_type_handle;
19 
20 /**
21  * Normally, the GraphicsDevice constructor holds a reference to the Graphics
22  * Pipe that it is part of
23  */
26 #ifdef DO_MEMORY_USAGE
27  MemoryUsage::update_type(this, this);
28 #endif
29  _pipe = pipe;
30 
31  if (display_cat.is_debug()) {
32  display_cat.debug()
33  << "Creating new device using pipe " << (void *)pipe << "\n";
34  }
35 }
36 
37 /**
38  *
39  */
40 GraphicsDevice::
41 ~GraphicsDevice() {
42  // And we shouldn't have a GraphicsPipe pointer anymore. nassertv(_pipe ==
43  // (GraphicsPipe *)NULL);
44 }
GraphicsDevice(GraphicsPipe *pipe)
Normally, the GraphicsDevice constructor holds a reference to the Graphics Pipe that it is part of.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
An object to create GraphicsOutputs that share a particular 3-D API.
Definition: graphicsPipe.h:52
static void update_type(ReferenceCount *ptr, TypeHandle type)
Associates the indicated type with the given pointer.
Definition: memoryUsage.I:55
TypeHandle is the identifier used to differentiate C++ class types.
Definition: typeHandle.h:81
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.