Terrain

Terrain

Constructors

this
this(GraphicsDevice graphicsDevice, TerrainHeader header, TextureArray textures)

Terrain constructor.

Members

Functions

dispose
void dispose()

Terrain destructor.

draw
void draw(float deltaTime, mat4 view, mat4 projection)
Undocumented in source. Be warned that the author may not have intended to support it.
drawWithShadow
void drawWithShadow(float deltaTime, mat4 view, mat4 projection, mat4 lightView, mat4 lightProjection)
Undocumented in source. Be warned that the author may not have intended to support it.
initialize
void initialize()

Initializes terrain.

loadFromHeightmap
void loadFromHeightmap(string heightmap)
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

blendMapTexture
Texture blendMapTexture [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
header
const(TerrainHeader) header [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
normalMap
Texture normalMap [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
shadowMapTexture
Texture shadowMapTexture [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.

Structs

TerrainHeader
struct TerrainHeader
Undocumented in source.

Inherited Members

From Drawable

m_graphicsDevice
GraphicsDevice m_graphicsDevice;
Undocumented in source.
m_shader
Shader m_shader;
Undocumented in source.
m_position
vec3 m_position;
Undocumented in source.
m_scale
vec3 m_scale;
Undocumented in source.
m_rotation
Quaternionf m_rotation;
Undocumented in source.
m_size
Size!int m_size;
Undocumented in source.
m_texture
Texture m_texture;
Undocumented in source.
m_isVisible
bool m_isVisible;
Undocumented in source.
m_vao
uint m_vao;
m_vertexBuffer
uint m_vertexBuffer;
m_indexBuffer
uint m_indexBuffer;
Undocumented in source.
draw
void draw(float deltaTime, mat4 view, mat4 projection)
Undocumented in source.
graphics
GraphicsDevice graphics [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
graphics
GraphicsDevice graphics [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
position
const(vec3) position [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
position
vec3 position [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
scale
float scale [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
scale
vec3 scale [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
rotation
Quaternionf rotation [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
size
const(Size!int) size [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
size
Size!int size [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
texture
Texture texture [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
texture
Texture texture [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
isVisible
bool isVisible [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
isVisible
bool isVisible [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
vertexBuffer
uint vertexBuffer [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
shader
Shader shader [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
shader
Shader shader [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.

Meta