open_toontown_panda3d/direct/src/plugin_standalone/p3dEmbed.h

44 lines
917 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 p3dEmbed.h
* @author drose
* @date 2010-01-04
*/
#ifndef P3DEMBED_H
#define P3DEMBED_H
#include "dtoolbase.h"
#ifdef _WIN32
#include <winsock2.h>
#endif
#include "panda3dBase.h"
#include "p3d_plugin.h"
#include "httpChannel.h"
#include "ramfile.h"
#include "fileSpec.h"
#include "pset.h"
#include "vector_string.h"
/**
* This program is constructed to self-embed a p3d file and execute it
* directly.
*/
class P3DEmbed : public Panda3DBase {
public:
P3DEmbed(bool console_environment);
int run_embedded(std::streampos read_offset, int argc, char *argv[]);
std::streampos _read_offset_check;
};
#endif