Pyrogenesis  trunk
Classes | Macros | Typedefs | Functions | Variables
PatchRData.cpp File Reference
#include "precompiled.h"
#include <set>
#include <algorithm>
#include <numeric>
#include "graphics/GameView.h"
#include "graphics/LightEnv.h"
#include "graphics/LOSTexture.h"
#include "graphics/Patch.h"
#include "graphics/ShaderManager.h"
#include "graphics/Terrain.h"
#include "graphics/TextRenderer.h"
#include "lib/alignment.h"
#include "lib/allocators/arena.h"
#include "maths/MathUtil.h"
#include "ps/CLogger.h"
#include "ps/Game.h"
#include "ps/Profile.h"
#include "ps/Pyrogenesis.h"
#include "ps/World.h"
#include "ps/GameSetup/Config.h"
#include "renderer/AlphaMapCalculator.h"
#include "renderer/PatchRData.h"
#include "renderer/TerrainRenderer.h"
#include "renderer/Renderer.h"
#include "renderer/WaterManager.h"
#include "simulation2/Simulation2.h"
#include "simulation2/components/ICmpWaterManager.h"
Include dependency graph for PatchRData.cpp:

Classes

struct  STileBlend
 Represents a blend for a single tile, texture and shape. More...
 
struct  STileBlend::DecreasingPriority
 
struct  STileBlend::CurrentTile
 
struct  STileBlendStack
 Represents the ordered collection of blends drawn on a particular tile. More...
 
struct  SBlendLayer
 Represents a batched collection of blends using the same texture. More...
 
struct  SBlendLayer::Tile
 
struct  SBlendBatch
 Helper structure for RenderBlends. More...
 
struct  SBlendStackItem
 Helper structure for RenderBlends. More...
 

Macros

#define POOLED_BATCH_MAP(Key, Value)   std::map<Key, Value, std::less<Key>, ProxyAllocator<std::pair<Key const, Value>, Allocators::DynamicArena > >
 

Typedefs

typedef std::pair< std::vector< GLint, ProxyAllocator< GLint, Allocators::DynamicArena > >, std::vector< void *, ProxyAllocator< void *, Allocators::DynamicArena > > > BatchElements
 

Functions

template<typename M >
M::mapped_type & PooledMapGet (M &m, const typename M::key_type &k, Allocators::DynamicArena &arena)
 
template<typename M >
M::mapped_type & PooledPairGet (M &m, const typename M::key_type &k, Allocators::DynamicArena &arena)
 
typedef POOLED_BATCH_MAP (CVertexBuffer *, BatchElements) IndexBufferBatches
 
typedef POOLED_BATCH_MAP (CVertexBuffer *, IndexBufferBatches) VertexBufferBatches
 
typedef POOLED_BATCH_MAP (CTerrainTextureEntry *, VertexBufferBatches) TextureBatches
 

Variables

const ssize_t BlendOffsets [9][2]
 

Macro Definition Documentation

#define POOLED_BATCH_MAP (   Key,
  Value 
)    std::map<Key, Value, std::less<Key>, ProxyAllocator<std::pair<Key const, Value>, Allocators::DynamicArena > >

Typedef Documentation

typedef std::pair<std::vector<GLint, ProxyAllocator<GLint, Allocators::DynamicArena > >, std::vector<void*, ProxyAllocator<void*, Allocators::DynamicArena > > > BatchElements

Function Documentation

typedef POOLED_BATCH_MAP ( CVertexBuffer ,
BatchElements   
)
typedef POOLED_BATCH_MAP ( CVertexBuffer ,
IndexBufferBatches   
)
typedef POOLED_BATCH_MAP ( CTerrainTextureEntry ,
VertexBufferBatches   
)
template<typename M >
M::mapped_type& PooledMapGet ( M &  m,
const typename M::key_type &  k,
Allocators::DynamicArena arena 
)
template<typename M >
M::mapped_type& PooledPairGet ( M &  m,
const typename M::key_type &  k,
Allocators::DynamicArena arena 
)

Variable Documentation

const ssize_t BlendOffsets[9][2]
Initial value:
= {
{ 0, -1 },
{ -1, -1 },
{ -1, 0 },
{ -1, 1 },
{ 0, 1 },
{ 1, 1 },
{ 1, 0 },
{ 1, -1 },
{ 0, 0 }
}