#include <RRObject.h>
◆ LayerParameters()
rr::RRObject::LayerParameters::LayerParameters |
( |
| ) |
|
|
inline |
◆ createBuffer()
RRBuffer * rr::RRObject::LayerParameters::createBuffer |
( |
bool |
forceFloats = false , |
|
|
bool |
forceAlpha = false , |
|
|
const wchar_t * |
insertBeforeExtension = nullptr |
|
) |
| const |
Creates buffer from actualXxx fields (filled by RRObject::recommendLayerParameters()).
If DXT format is recommended, RGB or RGBA is created instead, because solver can't store directly to DXT. User may change format later by buffer->setFormat(actualFormat).
- Parameters
-
forceFloats | Creates float buffer. |
forceAlpha | Creates buffer with alpha channel. |
insertBeforeExtension | Buffer's filename is set to actualFilename with this string inserted before extension. May be nullptr. |
◆ suggestedMapWidth
unsigned rr::RRObject::LayerParameters::suggestedMapWidth |
◆ suggestedMapHeight
unsigned rr::RRObject::LayerParameters::suggestedMapHeight |
◆ suggestedMinMapSize
unsigned rr::RRObject::LayerParameters::suggestedMinMapSize |
◆ suggestedMaxMapSize
unsigned rr::RRObject::LayerParameters::suggestedMaxMapSize |
◆ suggestedPixelsPerWorldUnit
float rr::RRObject::LayerParameters::suggestedPixelsPerWorldUnit |
◆ suggestedPath
RRString rr::RRObject::LayerParameters::suggestedPath |
If not set, default directory is used.
◆ suggestedName
RRString rr::RRObject::LayerParameters::suggestedName |
If not set, object's name is used.
◆ suggestedExt
RRString rr::RRObject::LayerParameters::suggestedExt |
If not set, "png" is used for textures, "rrbuffer" for vertex buffers.
◆ actualType
◆ actualWidth
unsigned rr::RRObject::LayerParameters::actualWidth |
◆ actualHeight
unsigned rr::RRObject::LayerParameters::actualHeight |
◆ actualFormat
◆ actualScaled
bool rr::RRObject::LayerParameters::actualScaled |
◆ actualFilename
RRString rr::RRObject::LayerParameters::actualFilename |
Set to suggestedPath + suggestedName + suggestedExt.
◆ actualBuildNonDirectional
bool rr::RRObject::LayerParameters::actualBuildNonDirectional |
not yet used outside Gamebryo
◆ actualBuildDirectional
bool rr::RRObject::LayerParameters::actualBuildDirectional |
not yet used outside Gamebryo
◆ actualBuildBentNormals
bool rr::RRObject::LayerParameters::actualBuildBentNormals |
not yet used outside Gamebryo