open_toontown_panda3d/direct/src/plugin/p3dCInstance.h

51 lines
965 B
C++

/**
* PANDA 3D SOFTWARE
* Copyright (c) Carnegie Mellon University. All rights reserved.
*
* All use of this software is subject to the terms of the revised BSD
* license. You should have received a copy of this license along
* with this source code in a file named "LICENSE."
*
* @file p3dCInstance.h
* @author drose
* @date 2009-06-08
*/
#ifndef P3DCINSTANCE_H
#define P3DCINSTANCE_H
#include "pandabase.h"
#include "p3d_plugin.h"
#include "pvector.h"
#include "get_tinyxml.h"
#include "windowHandle.h"
class P3DSession;
/**
* This is an instance of a Panda3D window, as seen in the child-level
* process.
*/
class P3DCInstance : public P3D_instance {
public:
P3DCInstance(TiXmlElement *xinstance);
~P3DCInstance();
inline int get_instance_id() const;
public:
PT(WindowHandle) _parent_window_handle;
private:
P3D_request_ready_func *_func;
int _instance_id;
friend class P3DPythonRun;
};
#include "p3dCInstance.I"
#endif