TDME2 1.9.121
|
Environment mapping. More...
#include <tdme/engine/subsystems/environmentmapping/EnvironmentMappingRenderer.h>
Public Member Functions | |
EnvironmentMappingRenderer (Engine *engine, int32_t width, int32_t height) | |
Public constructor. More... | |
~EnvironmentMappingRenderer () | |
Destructor. More... | |
int32_t | getWidth () |
int32_t | getHeight () |
int32_t | getRenderPassMask () |
void | setRenderPassMask (int32_t renderPassMask) |
Set up render pass mask. More... | |
int64_t | getTimeRenderUpdateFrequency () |
void | setTimeRenderUpdateFrequency (int64_t frequency) |
Set up render update time frequency. More... | |
int32_t | getCubeMapTextureId () |
Private Member Functions | |
void | initialize () |
Init frame buffer. More... | |
void | reshape (int32_t width, int32_t height) |
Reshape frame buffers. More... | |
void | dispose () |
Disposes this shadow mapping. More... | |
void | render (const Vector3 &position) |
Renders given objects in to environment cube map. More... | |
Private Attributes | |
Engine * | engine { nullptr } |
Camera * | camera { nullptr } |
int | width { -1 } |
int | height { -1 } |
array< Vector3, 6 > | forwardVectors |
array< Vector3, 6 > | sideVectors |
array< array< FrameBuffer *, 6 >, 2 > | frameBuffers |
array< int32_t, 2 > | cubeMapTextureIds { 0, 0 } |
int64_t | timeRenderLast { -1LL } |
int | reflectionCubeMapTextureIdx { 0 } |
int | renderCubeMapTextureIdx { 0 } |
int64_t | timeRenderUpdateFrequency { 100LL } |
int32_t | renderPassMask { Entity::RENDERPASS_ALL - Entity::RENDERPASS_WATER } |
Engine::DecomposedEntities | visibleDecomposedEntities |
Static Private Attributes | |
static STATIC_DLL_IMPEXT GeometryBuffer * | geometryBuffer = nullptr |
Friends | |
class | tdme::engine::EnvironmentMapping |
EnvironmentMappingRenderer | ( | Engine * | engine, |
int32_t | width, | ||
int32_t | height | ||
) |
Public constructor.
engine | engine |
width | width |
height | height |
Definition at line 52 of file EnvironmentMappingRenderer.cpp.
Destructor.
Definition at line 96 of file EnvironmentMappingRenderer.cpp.
|
private |
Disposes this shadow mapping.
Definition at line 127 of file EnvironmentMappingRenderer.cpp.
|
inline |
Definition at line 138 of file EnvironmentMappingRenderer.h.
|
inline |
Definition at line 101 of file EnvironmentMappingRenderer.h.
|
inline |
Definition at line 108 of file EnvironmentMappingRenderer.h.
|
inline |
Definition at line 123 of file EnvironmentMappingRenderer.h.
|
inline |
Definition at line 94 of file EnvironmentMappingRenderer.h.
|
private |
Init frame buffer.
Definition at line 100 of file EnvironmentMappingRenderer.cpp.
|
private |
Renders given objects in to environment cube map.
position | position |
Definition at line 138 of file EnvironmentMappingRenderer.cpp.
|
private |
Reshape frame buffers.
width | width |
height | height |
Definition at line 123 of file EnvironmentMappingRenderer.cpp.
|
inline |
Set up render pass mask.
renderPassMask | render pass mask |
Definition at line 116 of file EnvironmentMappingRenderer.h.
|
inline |
Set up render update time frequency.
frequency | frequency in milliseconds |
Definition at line 131 of file EnvironmentMappingRenderer.h.
|
friend |
Definition at line 32 of file EnvironmentMappingRenderer.h.
|
private |
Definition at line 36 of file EnvironmentMappingRenderer.h.
|
private |
Definition at line 45 of file EnvironmentMappingRenderer.h.
|
private |
Definition at line 35 of file EnvironmentMappingRenderer.h.
|
private |
Definition at line 39 of file EnvironmentMappingRenderer.h.
|
private |
Definition at line 41 of file EnvironmentMappingRenderer.h.
|
staticprivate |
Definition at line 49 of file EnvironmentMappingRenderer.h.
|
private |
Definition at line 38 of file EnvironmentMappingRenderer.h.
|
private |
Definition at line 47 of file EnvironmentMappingRenderer.h.
|
private |
Definition at line 48 of file EnvironmentMappingRenderer.h.
|
private |
Definition at line 51 of file EnvironmentMappingRenderer.h.
|
private |
Definition at line 40 of file EnvironmentMappingRenderer.h.
|
private |
Definition at line 46 of file EnvironmentMappingRenderer.h.
|
private |
Definition at line 50 of file EnvironmentMappingRenderer.h.
|
private |
Definition at line 52 of file EnvironmentMappingRenderer.h.
|
private |
Definition at line 37 of file EnvironmentMappingRenderer.h.