LightsprintSDK 2021.08.08
rr::RRObject::LayerParameters Struct Reference

#include <RRObject.h>

Public Member Functions

 LayerParameters ()
 
RRBuffercreateBuffer (bool forceFloats=false, bool forceAlpha=false, const wchar_t *insertBeforeExtension=nullptr) const
 

Public Attributes

unsigned suggestedMapWidth
 
unsigned suggestedMapHeight
 
unsigned suggestedMinMapSize
 
unsigned suggestedMaxMapSize
 
float suggestedPixelsPerWorldUnit
 
RRString suggestedPath
 
RRString suggestedName
 
RRString suggestedExt
 
RRBufferType actualType
 
unsigned actualWidth
 
unsigned actualHeight
 
RRBufferFormat actualFormat
 
bool actualScaled
 
RRString actualFilename
 
bool actualBuildNonDirectional
 
bool actualBuildDirectional
 
bool actualBuildBentNormals
 

Detailed Description

Structure used by recommendLayerParameters().

Constructor & Destructor Documentation

◆ LayerParameters()

rr::RRObject::LayerParameters::LayerParameters ( )
inline

Member Function Documentation

◆ 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
forceFloatsCreates float buffer.
forceAlphaCreates buffer with alpha channel.
insertBeforeExtensionBuffer's filename is set to actualFilename with this string inserted before extension. May be nullptr.

Member Data Documentation

◆ 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

RRBufferType rr::RRObject::LayerParameters::actualType

◆ actualWidth

unsigned rr::RRObject::LayerParameters::actualWidth

◆ actualHeight

unsigned rr::RRObject::LayerParameters::actualHeight

◆ actualFormat

RRBufferFormat rr::RRObject::LayerParameters::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