reflex2q3/ReflexToQ3/includes/oopless-parser.hpp

35 lines
902 B
C++
Raw Normal View History

#ifndef __OOPLESS_PARSER__
#define __OOPLESS_PARSER__
#include "planes.h"
#include "worldspawn.h"
#include <string>
#include <vector>
#include <fstream>
bool write(const struct TBrush &,
std::ofstream &,
void (*f) (std::stringstream &, const std::vector<TPlanePoints> &));
void write(const std::vector<std::string> &, std::ofstream &);
std::vector<std::string> get_entity(std::ifstream &);
std::vector<Eigen::Vector3f> parse_vertices(std::ifstream &);
std::vector<TFace> parse_face(std::ifstream &);
struct TBrush parse_brush(std::ifstream &);
void parse_prefab(std::ifstream &,
std::ofstream &,
void (*f) (std::stringstream &, const std::vector<TPlanePoints> &));
bool convertmap(const char * const,
const char * const,
void (*f) (std::stringstream &, const std::vector<TPlanePoints> &));
#endif