Improvements to the osgProducer lib to better handle Producer's normalized
coord system. Addition of ReadCameraConfigFile and WriteCameraConfigFile as a tempory measure for implementing local a C++ read/write of the Producer::CameraConfig, this will be removed once these implementations or similar have been moved to Producer.
This commit is contained in:
23
include/osgProducer/WriteCameraConfigFile
Normal file
23
include/osgProducer/WriteCameraConfigFile
Normal file
@@ -0,0 +1,23 @@
|
||||
//C++ header - Open Scene Graph - Copyright (C) 1998-2002 Robert Osfield
|
||||
//Distributed under the terms of the GNU Library General Public License (LGPL)
|
||||
//as published by the Free Software Foundation.
|
||||
|
||||
#ifndef OSGDB_WRITECAMERACONDIGFILE
|
||||
#define OSGDB_WRITECAMERACONDIGFILE 1
|
||||
|
||||
#include <Producer/CameraConfig>
|
||||
|
||||
#include <osgProducer/Export>
|
||||
|
||||
#include <string>
|
||||
|
||||
namespace osgProducer {
|
||||
|
||||
/** Write a Producer::CameraConfig to file.
|
||||
* Return true on success,
|
||||
* return false on failure.*/
|
||||
extern OSGPRODUCER_EXPORT bool writeCameraConfigFile(const Producer::CameraConfig& cameraconfig, const std::string& filename);
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user