// Filename: graphicsDevice.h // Created by: masad (21Jul03) // //////////////////////////////////////////////////////////////////// // // PANDA 3D SOFTWARE // Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved // // All use of this software is subject to the terms of the Panda 3d // Software license. You should have received a copy of this license // along with this source code; you will also find a current copy of // the license at http://www.panda3d.org/license.txt . // // To contact the maintainers of this program write to // panda3d@yahoogroups.com . // //////////////////////////////////////////////////////////////////// #ifndef GRAPHICSDEVICE_H #define GRAPHICSDEVICE_H #include "pandabase.h" #include "graphicsPipe.h" #include "graphicsStateGuardian.h" #include "typedReferenceCount.h" //////////////////////////////////////////////////////////////////// // Class : GraphicsDevice // Description : An abstract device object that is part of Graphics // Pipe. This device is set to NULL for OpenGL. But // DirectX uses it to take control of multiple windows // under single device or multiple devices (i.e. more // than one adapters in the machine). // //////////////////////////////////////////////////////////////////// class EXPCL_PANDA GraphicsDevice : public TypedReferenceCount { public: GraphicsDevice(GraphicsPipe *pipe); private: GraphicsDevice(const GraphicsDevice ©); void operator = (const GraphicsDevice ©); PUBLISHED: virtual ~GraphicsDevice(); INLINE GraphicsPipe *get_pipe() const; protected: PT(GraphicsPipe) _pipe; public: static TypeHandle get_class_type() { return _type_handle; } static void init_type() { TypedReferenceCount::init_type(); register_type(_type_handle, "GraphicsDevice", TypedReferenceCount::get_class_type()); } virtual TypeHandle get_type() const { return get_class_type(); } virtual TypeHandle force_init_type() {init_type(); return get_class_type();} private: static TypeHandle _type_handle; friend class GraphicsPipe; friend class GraphicsEngine; }; #include "graphicsDevice.I" #endif /* GRAPHICSDEVICE_H */