|
void | initialize (IGraphicsDevice *device, ClipmapRenderer *clipmapRenderer) |
|
void | readBack () |
|
bool | getPositions (const Vector2 *mousePositions, const Matrix &inverseViewProjection, const size_t numPositions, Vector4 *worldPos, bool *positionValid, int rayPickId) |
|
float | getNearestTerrainSample (const Matrix &inverseProjection) |
| Returns the nearest sample in the query readback buffer.
|
|
float | getNearestTerrainSample2 (const Matrix &inverseProjection, const Matrix &viewMatrix) |
| Returns the nearest sample in the query readback buffer for two frames.
|
|
Definition at line 11 of file ClipmapDepthQuery.h.
◆ ClipmapDepthQuery()
Cogs::ClipmapDepthQuery::ClipmapDepthQuery |
( |
| ) |
|
◆ ~ClipmapDepthQuery()
Cogs::ClipmapDepthQuery::~ClipmapDepthQuery |
( |
| ) |
|
◆ getNearestTerrainSample()
float Cogs::ClipmapDepthQuery::getNearestTerrainSample |
( |
const Matrix & |
inverseProjection | ) |
|
Returns the nearest sample in the query readback buffer.
- Returns
- A floating point sample given in view space units, with positive numbers representing increasing distance from the camera.
Definition at line 124 of file ClipmapDepthQuery.cpp.
References Cogs::MapMode::Read.
◆ getNearestTerrainSample2()
float Cogs::ClipmapDepthQuery::getNearestTerrainSample2 |
( |
const Matrix & |
inverseProjection, |
|
|
const Matrix & |
viewMatrix |
|
) |
| |
Returns the nearest sample in the query readback buffer for two frames.
- Returns
- A floating point sample given in view space units, with positive numbers representing increasing distance from the camera.
Definition at line 187 of file ClipmapDepthQuery.cpp.
References Cogs::MapMode::Read.
◆ getPositions()
bool Cogs::ClipmapDepthQuery::getPositions |
( |
const Vector2 * |
mousePositions, |
|
|
const Matrix & |
inverseViewProjection, |
|
|
const size_t |
numPositions, |
|
|
Vector4 * |
worldPos, |
|
|
bool * |
positionValid, |
|
|
int |
rayPickId |
|
) |
| |
◆ initialize()
◆ readBack()
void Cogs::ClipmapDepthQuery::readBack |
( |
| ) |
|
◆ clipmapRenderer
◆ device
◆ hasReadBack
bool Cogs::ClipmapDepthQuery::hasReadBack = false |
|
private |
◆ prevViewMatrix
Matrix Cogs::ClipmapDepthQuery::prevViewMatrix |
|
private |
◆ prevViewPos
Vector4 Cogs::ClipmapDepthQuery::prevViewPos |
|
private |
◆ queryReadBackBuffer
The documentation for this struct was generated from the following files: