OpenSceneGraph/src/osgPlugins/bsp/ReaderWriterBSP.h
Robert Osfield bf8c3cc07e From Jason Daly, "This is a plugin (two, actually) that will allow OSG to load .bsp map files from Valve's Source Engine games (Half-Life 2, etc.). One plugin (called "vbsp" to distinguish it from the Quake 3 bsp loader) reads the .bsp file itself, and the other ("vtf") reads the texture files.
The set up for this to work is a bit more complex than most files, since the engine expects all files to be in a certain place, and it tends to mix case a lot.  I tried to explain everything in the VBSP_README.txt file."

This plugin has been integrated with the pre-exisiting bsp plugin.
2008-11-24 11:39:02 +00:00

29 lines
471 B
C++

#ifndef __READERWRITER_VBSP_H_
#define __READERWRITER_VBSP_H_
#include <osgDB/Registry>
#include <osgDB/FileNameUtils>
namespace bsp
{
class ReaderWriterBSP : public osgDB::ReaderWriter
{
public:
virtual const char* className() const;
virtual bool acceptsExtension(const std::string& extension) const;
virtual ReadResult readNode(const std::string& file,
const Options* options) const;
};
}
#endif