45 lines
1.5 KiB
C
45 lines
1.5 KiB
C
// Filename: save_egg_file.h
|
|
// Created by: drose (19Dec12)
|
|
//
|
|
////////////////////////////////////////////////////////////////////
|
|
//
|
|
// 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."
|
|
//
|
|
////////////////////////////////////////////////////////////////////
|
|
|
|
#ifndef SAVE_EGG_FILE_H
|
|
#define SAVE_EGG_FILE_H
|
|
|
|
#include "pandabase.h"
|
|
|
|
#include "pandaNode.h"
|
|
#include "coordinateSystem.h"
|
|
#include "eggData.h"
|
|
|
|
BEGIN_PUBLISH
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function: save_egg_file
|
|
// Description: A convenience function; converts the indicated scene
|
|
// graph to an egg file and writes it to disk.
|
|
////////////////////////////////////////////////////////////////////
|
|
EXPCL_PANDAEGG bool
|
|
save_egg_file(const Filename &filename, PandaNode *node,
|
|
CoordinateSystem cs = CS_default);
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function: save_egg_data
|
|
// Description: Another convenience function; works like
|
|
// save_egg_file() but populates an EggData instead of
|
|
// writing the results to disk.
|
|
////////////////////////////////////////////////////////////////////
|
|
EXPCL_PANDAEGG bool
|
|
save_egg_data(EggData *data, PandaNode *node);
|
|
END_PUBLISH
|
|
|
|
#endif
|