Cube map textue core.
More...
#include "CubeMapCore.h"
|
static CubeMapCoreSP | create () |
|
Cube map textue core.
To be used in conjunction with cube map or skybox shader.
Definition at line 40 of file CubeMapCore.h.
◆ CubeMapCore()
scg::CubeMapCore::CubeMapCore |
( |
| ) |
|
◆ ~CubeMapCore()
virtual scg::CubeMapCore::~CubeMapCore |
( |
| ) |
|
|
virtual |
◆ create()
static CubeMapCoreSP scg::CubeMapCore::create |
( |
| ) |
|
|
static |
◆ render()
virtual void scg::CubeMapCore::render |
( |
RenderState * |
renderState | ) |
|
|
virtual |
Render core, i.e., bind texture and post-multiply current texture matrix by local texture matrix. Pass inverse view matrix and skybox matrix (i.e., model-view-projection matrix without camera translation) to shader program.
Reimplemented from scg::TextureCore.
◆ renderPost()
virtual void scg::CubeMapCore::renderPost |
( |
RenderState * |
renderState | ) |
|
|
virtual |
Render core after traversing sub-tree, i.e., restore previous texture matrix and bind previous texture.
Reimplemented from scg::TextureCore.
◆ setCubeMap()
void scg::CubeMapCore::setCubeMap |
( |
GLsizei |
width, |
|
|
GLsizei |
height, |
|
|
const std::vector< unsigned char * > & |
rgbaData |
|
) |
| |
Create cube map texture from RGBA images with given parameters.
- Parameters
-
width | texture width |
height | texture height |
rgbaData | vector of 6 arrays of RGBA values for textures in directions +x, -x, +y, -y, +z, -z |
The documentation for this class was generated from the following file: