mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-19 14:53:56 -07:00
37 lines
No EOL
541 B
C++
Executable file
37 lines
No EOL
541 B
C++
Executable file
#ifndef MINIPATCH_H
|
|
#define MINIPATCH_H
|
|
|
|
#include "res.h"
|
|
#include "Color.h"
|
|
#include "Vector3D.h"
|
|
|
|
struct STerrainVertex
|
|
{
|
|
CVector3D m_Position;
|
|
CVector3D m_Normal;
|
|
RGBColor m_Color;
|
|
};
|
|
|
|
|
|
class CMiniPatch
|
|
{
|
|
public:
|
|
CMiniPatch();
|
|
~CMiniPatch();
|
|
|
|
void Initialize (STerrainVertex *first_vertex);
|
|
|
|
Handle Tex1, Tex2;
|
|
Handle m_AlphaMap;
|
|
CMiniPatch *m_pRightNeighbor;
|
|
CPatch *m_pParrent;
|
|
unsigned char m_RenderStage;
|
|
unsigned int m_LastRenderedFrame;
|
|
|
|
unsigned char m_Rotation;
|
|
|
|
STerrainVertex *m_pVertices;
|
|
};
|
|
|
|
|
|
#endif |