A CPU seamless cube map.
More...
Inherits G3D::ReferenceCountedObject.
|
template<class T , class ... ArgTypes> |
static shared_ptr< T > | createShared (ArgTypes &&... args) |
| Like std::make_shared, but works for protected constructors. More...
|
|
A CPU seamless cube map.
- See also
- G3D:Image, G3D::Texture
◆ CubeMap()
G3D::CubeMap::CubeMap |
( |
const Array< shared_ptr< Image3 >> & |
face, |
|
|
const Color3 & |
readMultiplyFirst, |
|
|
const Color3 & |
readAddSecond |
|
) |
| |
|
protected |
◆ bilinear()
◆ create()
- Parameters
-
face | All faces must have the same dimensions. |
gamma | Apply this gamma: L = p^gamma after reading back values (before bilinear interpolation, and before scale and bias) |
◆ createShared()
template<class T , class ... ArgTypes>
static shared_ptr<T> G3D::ReferenceCountedObject::createShared |
( |
ArgTypes &&... |
args | ) |
|
|
inlinestaticprotectedinherited |
Like std::make_shared, but works for protected constructors.
Call as createShared<myclass>.
◆ format()
const class ImageFormat* G3D::CubeMap::format |
( |
| ) |
const |
◆ nearest()
◆ pixelCoord()
Returns a pixel coordinate in m_faceArray[face].
◆ size()
int G3D::CubeMap::size |
( |
| ) |
const |
The size of one face, in pixels, based on the input (not counting padding used for seamless cube mapping.
◆ m_faceArray
Image3 G3D::CubeMap::m_faceArray[6] |
|
protected |
◆ m_fSize
float G3D::CubeMap::m_fSize |
|
protected |
◆ m_iSize
int G3D::CubeMap::m_iSize |
|
protected |