#if !defined(AFX_DPATCH_H__26C6B083_CE5B_420B_836B_1DDA733C04CE__INCLUDED_)
#define AFX_DPATCH_H__26C6B083_CE5B_420B_836B_1DDA733C04CE__INCLUDED_
-#include "StdAfx.h" // Added by ClassView
-#if _MSC_VER > 1000
-#pragma once
-#endif // _MSC_VER > 1000
+#include <list>
typedef struct
{
float lightmap[2];
} drawVert_t;
-class Patch;
+namespace scene
+{
+ class Node;
+}
#define MAX_PATCH_WIDTH 16
#define MAX_PATCH_HEIGHT 16
class DPatch
{
public:
- list<DPatch> Split(bool rows, bool cols);
+ std::list<DPatch> Split(bool rows, bool cols);
void Transpose();
void Invert();
DPatch* MergePatches(patch_merge_t merge_info, DPatch* p1, DPatch* p2);
patch_merge_t IsMergable(DPatch* other);
bool ResetTextures(const char *oldTextureName, const char *newTextureName);
- void RemoveFromRadiant(void);
scene::Node* QER_brush;
- void LoadFromBrush(scene::Node* brush);
- void BuildInRadiant(void* entity = NULL);
+ void LoadFromBrush(scene::Node& brush);
+ void BuildInRadiant(scene::Node* entity = NULL);
void SetTexture(const char* textureName);
char texture[256];
int width, height;