This documentation is automatically generated from the openFrameworks source code using doxygen and refers to the most recent release, version 0.12.0.
Classes |
Public Member Functions |
Static Public Member Functions |
Protected Member Functions |
Static Protected Member Functions |
Protected Attributes |
Static Protected Attributes |
List of all members
ofCubeMap Class Reference
#include <ofCubeMap.h>
Classes | |
class | Data |
struct | ofCubeMapSettings |
Public Member Functions | |
ofCubeMap () | |
ofCubeMap (const ofCubeMap &mom) | |
ofCubeMap (ofCubeMap &&mom) | |
~ofCubeMap () | |
bool | load (const of::filesystem::path &apath, int aFaceResolution, bool aBFlipY=true) |
bool | load (const of::filesystem::path &apath, int aFaceResolution, bool aBFlipY, int aIrradianceRes, int aPreFilterRes) |
bool | load (ofCubeMapSettings aSettings) |
ofCubeMap & | operator= (const ofCubeMap &mom) |
Copy a given ofCubeMap into this cube map. | |
ofCubeMap & | operator= (ofCubeMap &&mom) |
void | clear () |
void | draw () |
void | drawCubeMap () |
void | drawIrradiance () |
void | drawPrefilteredCube (float aRoughness) |
bool | isEnabled () |
const bool | isEnabled () const |
void | setEnabled (bool ab) |
bool | hasCubeMap () |
bool | hasPrefilteredMap () |
bool | hasIrradianceMap () |
int | getFaceResolution () |
GLuint | getTextureId () |
bool | isHdr () |
void | setExposure (float aExposure) |
float | getExposure () |
void | setUseBrdfLutTexture (bool ab) |
bool | isUsingLutBrdfTexture () |
GLuint | getIrradianceMapId () |
GLuint | getPrefilterMapId () |
Static Public Member Functions | |
static GLenum | getTextureTarget () |
static bool | hasActiveCubeMap () |
static std::shared_ptr< ofCubeMap::Data > | getActiveData () |
static void | clearTextureData (std::shared_ptr< ofCubeMap::Data > adata) |
static void | regenerateAllTextures () |
static const ofTexture & | getBrdfLutTexture () |
Protected Member Functions | |
void | _drawCubeStart (GLuint aCubeMapId) |
void | _drawCubeEnd () |
void | _checkSetup () |
void | _createCubeMap (ofTexture &aSrcTex) |
GLuint | _createFloatCubeMap (ofTexture &aSrcTex, int aSrcRes) |
void | _equiRectToCubeMap (GLuint &aCubeTexId, ofTexture &aSrcTex, int aSrcRes, bool aBConvertToNonFloat) |
void | _createIrradianceMap (GLuint aSrcCubeFid, bool aBMakeCache, const of::filesystem::path &aCachePath) |
bool | _loadIrradianceMap (const of::filesystem::path &aCachePath) |
void | _createPrefilteredCubeMap (GLuint aSrcCubeFid, int aSrcRes, bool aBMakeCache, const of::filesystem::path &aCachePath) |
bool | _loadPrefilterMap (const of::filesystem::path &aCachePath) |
void | _configureCubeTextures (GLuint aCubeMapId, bool abLinearMipLinear) |
void | _initEmptyTextures (GLuint aCubeMapId, int aSize) |
void | _initEmptyTextures (GLuint aCubeMapId, GLuint aInternalFormat, int aSize, int aNumMipMaps) |
void | _allocateCubeMesh () |
std::vector< glm::mat4 > | _getViewMatrices (const glm::vec3 &apos) |
bool | _loadRenderShader () |
bool | _loadEquiRectToCubeMapShader () |
GLuint | getTexStorageFormat () |
GLuint | getTexStorageFormat (GLuint aInternalFormat) |
GLuint | getGlTypeFromInternalFormat () |
GLuint | getGlTypeFromInternalFormat (GLuint aInternalFormat) |
int | getNumPixelChannels () |
Static Protected Member Functions | |
static void | _createBrdfLUT () |
Protected Attributes | |
std::shared_ptr< ofCubeMap::Data > | data |
GLuint | texFormat = GL_RGB |
glm::mat4 | projectionMat |
ofShader | shaderEquiRectToCubeMap |
ofShader | shaderRender |
ofShader | shaderIrradianceMap |
ofShader | shaderPreFilterMap |
Static Protected Attributes | |
static ofTexture | sBrdfLutTex |
static ofVboMesh | sCubeMesh |
static ofShader | shaderBrdfLUT |
Constructor & Destructor Documentation
◆ ofCubeMap() [1/3]
ofCubeMap::ofCubeMap | ( | ) |
◆ ofCubeMap() [2/3]
ofCubeMap::ofCubeMap | ( | const ofCubeMap & | mom | ) |
◆ ofCubeMap() [3/3]
ofCubeMap::ofCubeMap | ( | ofCubeMap && | mom | ) |
◆ ~ofCubeMap()
ofCubeMap::~ofCubeMap | ( | ) |
Member Function Documentation
◆ _allocateCubeMesh()
|
protected |
◆ _checkSetup()
|
protected |
◆ _configureCubeTextures()
|
protected |
◆ _createBrdfLUT()
|
staticprotected |
◆ _createCubeMap()
|
protected |
◆ _createFloatCubeMap()
|
protected |
◆ _createIrradianceMap()
|
protected |
◆ _createPrefilteredCubeMap()
|
protected |
◆ _drawCubeEnd()
|
protected |
◆ _drawCubeStart()
|
protected |
◆ _equiRectToCubeMap()
|
protected |
◆ _getViewMatrices()
|
protected |
◆ _initEmptyTextures() [1/2]
|
protected |
◆ _initEmptyTextures() [2/2]
|
protected |
◆ _loadEquiRectToCubeMapShader()
|
protected |
◆ _loadIrradianceMap()
|
protected |
◆ _loadPrefilterMap()
|
protected |
◆ _loadRenderShader()
|
protected |
◆ clear()
void ofCubeMap::clear | ( | ) |
◆ clearTextureData()
|
static |
◆ draw()
void ofCubeMap::draw | ( | ) |
◆ drawCubeMap()
void ofCubeMap::drawCubeMap | ( | ) |
◆ drawIrradiance()
void ofCubeMap::drawIrradiance | ( | ) |
◆ drawPrefilteredCube()
void ofCubeMap::drawPrefilteredCube | ( | float | aRoughness | ) |
◆ getActiveData()
|
static |
◆ getBrdfLutTexture()
|
static |
◆ getExposure()
|
inline |
◆ getFaceResolution()
|
inline |
◆ getGlTypeFromInternalFormat() [1/2]
|
protected |
◆ getGlTypeFromInternalFormat() [2/2]
|
protected |
◆ getIrradianceMapId()
|
inline |
◆ getNumPixelChannels()
|
protected |
◆ getPrefilterMapId()
|
inline |
◆ getTexStorageFormat() [1/2]
|
protected |
◆ getTexStorageFormat() [2/2]
|
protected |
◆ getTextureId()
GLuint ofCubeMap::getTextureId | ( | ) |
◆ getTextureTarget()
|
static |
◆ hasActiveCubeMap()
|
static |
◆ hasCubeMap()
bool ofCubeMap::hasCubeMap | ( | ) |
◆ hasIrradianceMap()
bool ofCubeMap::hasIrradianceMap | ( | ) |
◆ hasPrefilteredMap()
bool ofCubeMap::hasPrefilteredMap | ( | ) |
◆ isEnabled() [1/2]
|
inline |
◆ isEnabled() [2/2]
|
inline |
◆ isHdr()
bool ofCubeMap::isHdr | ( | ) |
◆ isUsingLutBrdfTexture()
|
inline |
◆ load() [1/3]
bool ofCubeMap::load | ( | const of::filesystem::path & | apath, |
int | aFaceResolution, | ||
bool | aBFlipY, | ||
int | aIrradianceRes, | ||
int | aPreFilterRes | ||
) |
\load an image and convert to cube map.
- Parameters
-
apath path to the image to load. aFaceResolution resolution of the cube map image sides. aBFlipY flip the images upside down. aIrradianceRes resolution of the irradiance map. (default is 32). aPreFilterRes resolution of the prefiltered map. (default is 128).
◆ load() [2/3]
bool ofCubeMap::load | ( | const of::filesystem::path & | apath, |
int | aFaceResolution, | ||
bool | aBFlipY = true |
||
) |
\load an image and convert to cube map.
- Parameters
-
apath path to the image to load. aFaceResolution resolution of the cube map image sides. aBFlipY flip the images upside down.
◆ load() [3/3]
bool ofCubeMap::load | ( | ofCubeMapSettings | aSettings | ) |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ regenerateAllTextures()
|
static |
◆ setEnabled()
|
inline |
◆ setExposure()
void ofCubeMap::setExposure | ( | float | aExposure | ) |
◆ setUseBrdfLutTexture()
void ofCubeMap::setUseBrdfLutTexture | ( | bool | ab | ) |
Member Data Documentation
◆ data
|
protected |
◆ projectionMat
|
protected |
◆ sBrdfLutTex
|
staticprotected |
◆ sCubeMesh
|
staticprotected |
◆ shaderBrdfLUT
|
staticprotected |
◆ shaderEquiRectToCubeMap
|
protected |
◆ shaderIrradianceMap
|
protected |
◆ shaderPreFilterMap
|
protected |
◆ shaderRender
|
protected |
◆ texFormat
|
protected |
The documentation for this class was generated from the following files:
- /Users/icq4ever/Desktop/oF0120/libs/openFrameworks/gl/ofCubeMap.h
- /Users/icq4ever/Desktop/oF0120/libs/openFrameworks/gl/ofCubeMap.cpp