bf8c3cc07e
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.
29 lines
471 B
C++
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
|