entity_t and brush_t now converted to idEditorEntity and idEditorBrush

This commit is contained in:
Justin Marshall
2026-05-24 11:33:16 -07:00
parent d6d01e1faf
commit 3242531044
41 changed files with 1598 additions and 1540 deletions
@@ -209,7 +209,8 @@ void EmitBrushPrimitTextureCoordinates(face_t *f, idWinding *w, patchMesh_t *pat
// parse a brush in brush primitive format
// =======================================================================================================================
//
void BrushPrimit_Parse(brush_t *b, bool newFormat, const idVec3 origin) {
void idEditorBrush::BrushPrimit_Parse(bool newFormat, const idVec3 origin) {
idEditorBrush *b = this;
face_t *f;
int i, j;
GetToken(true);
@@ -256,7 +257,7 @@ void BrushPrimit_Parse(brush_t *b, bool newFormat, const idVec3 origin) {
f->originalPlane = plane;
f->dirty = false;
//idWinding *w = Brush_MakeFaceWinding(b, f, true);
//idWinding *w = b->Brush_MakeFaceWinding(f, true);
idWinding w;
w.BaseForPlane( plane );
@@ -1135,7 +1136,8 @@ void Face_FlipTexture_BrushPrimit(face_t *f, bool y) {
#endif
}
void Brush_FlipTexture_BrushPrimit(brush_t *b, bool y) {
void idEditorBrush::Brush_FlipTexture_BrushPrimit(bool y) {
idEditorBrush *b = this;
for (face_t *f = b->brush_faces; f; f = f->next) {
Face_FlipTexture_BrushPrimit(f, y);
}