18 #ifndef INCLUDED_PATCHRDATA
19 #define INCLUDED_PATCHRDATA
119 void AddBlend(std::vector<SBlendVertex>& blendVertices, std::vector<u16>& blendIndices,
static const ssize_t water_cell_size
static void RenderBases(const std::vector< CPatchRData * > &patches, const CShaderDefines &context, ShadowMap *shadow, bool isDummyShader=false, const CShaderProgramPtr &dummy=CShaderProgramPtr())
void RenderWater(CShaderProgramPtr &shader)
const CBoundingBoxAligned & GetWaterBounds() const
CBoundingBoxAligned m_WaterBounds
static void PrepareShader(const CShaderProgramPtr &shader, ShadowMap *shadow)
CPatchRData(CPatch *patch, CSimulation2 *simulation)
Class ShadowMap: Maintain the shadow map texture and perform necessary OpenGL setup, including matrix calculations.
CVertexBuffer::VBChunk * m_VBWaterIndices
VBChunk: describes a portion of this vertex buffer.
CVertexBuffer::VBChunk * m_VBBlends
void AddBlend(std::vector< SBlendVertex > &blendVertices, std::vector< u16 > &blendIndices, u16 i, u16 j, u8 shape, CTerrainTextureEntry *texture)
Public API for simulation system.
void BuildSide(std::vector< SSideVertex > &vertices, CPatchSideFlags side)
std::vector< SSplat > m_BlendSplats
void Update(CSimulation2 *simulation)
CTerrainTextureEntry * m_Texture
void RenderSides(CShaderProgramPtr &shader)
static void RenderBlends(const std::vector< CPatchRData * > &patches, const CShaderDefines &context, ShadowMap *shadow, bool isDummyShader=false, const CShaderProgramPtr &dummy=CShaderProgramPtr())
Represents a mapping of name strings to value strings, for use with #if and #ifdef and similar condit...
CVertexBuffer::VBChunk * m_VBBase
CVertexBuffer::VBChunk * m_VBBlendIndices
std::vector< SSplat > m_Splats
void RenderPriorities(CTextRenderer &textRenderer)
CVertexBuffer::VBChunk * m_VBSides
CSimulation2 * m_Simulation
CVertexBuffer::VBChunk * m_VBWater
CVertexBuffer::VBChunk * m_VBBaseIndices
static void RenderStreams(const std::vector< CPatchRData * > &patches, const CShaderProgramPtr &shader, int streamflags)
Helper structure for RenderBlends.
shared_ptr< CShaderProgram > CShaderProgramPtr
cassert(sizeof(SBaseVertex)==28)