Replaced placeholders for GTK Radiant texture def
This commit is contained in:
@ -7,6 +7,17 @@
|
|||||||
#define Z 2
|
#define Z 2
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
|
std::string texdef_gtk(const TPlanePoints & b) {
|
||||||
|
std::stringstream ss;
|
||||||
|
ss << " " << b.hshift
|
||||||
|
<< " " << b.vshift
|
||||||
|
<< " " << b.rotation
|
||||||
|
<< " " << b.hscale
|
||||||
|
<< " " << b.vscale;
|
||||||
|
return " 0 0 0 0.500000 0.500000";
|
||||||
|
}
|
||||||
|
|
||||||
// e.g GTK Radiant or older level editors.
|
// e.g GTK Radiant or older level editors.
|
||||||
void brushdef_gtk(std::stringstream &x, const vector<TPlanePoints> &y) {
|
void brushdef_gtk(std::stringstream &x, const vector<TPlanePoints> &y) {
|
||||||
if(y.size())
|
if(y.size())
|
||||||
@ -19,7 +30,7 @@ void brushdef_gtk(std::stringstream &x, const vector<TPlanePoints> &y) {
|
|||||||
x << "( " << krPlane.m_C[X] << " " << krPlane.m_C[Z] << " " << krPlane.m_C[Y] << " ) ";
|
x << "( " << krPlane.m_C[X] << " " << krPlane.m_C[Z] << " " << krPlane.m_C[Y] << " ) ";
|
||||||
if(krPlane.m_material.length())
|
if(krPlane.m_material.length())
|
||||||
{
|
{
|
||||||
x << krPlane.m_material << " 0 0 0 0.500000 0.500000" << std::endl;
|
x << krPlane.m_material << texdef_gtk(krPlane) << std::endl;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -7,6 +7,8 @@
|
|||||||
#include "worldspawn.h"
|
#include "worldspawn.h"
|
||||||
#include "planes.h"
|
#include "planes.h"
|
||||||
|
|
||||||
|
std::string texdef_gtk(const TPlanePoints&);
|
||||||
|
|
||||||
std::string texdef_net(const TPlanePoints&);
|
std::string texdef_net(const TPlanePoints&);
|
||||||
|
|
||||||
void brushdef_gtk(std::stringstream&, const std::vector<TPlanePoints>&);
|
void brushdef_gtk(std::stringstream&, const std::vector<TPlanePoints>&);
|
||||||
|
Reference in New Issue
Block a user