Skinner::cSkinnerTexturePainter class

Public functions

auto StartRender() -> void
Call before doing an editing action on this texture.
auto EndRender() -> void
Call to finish an editing action on this texture.
auto SetColorWriteEnable(bool red, bool green, bool blue, bool alpha) -> void
Sets which channels will be written in the next painting operation; those with false will not change.
auto SetMaterial(uint32_t materialID) -> void
auto AddCustomParams(int index, const Math::ColorRGBA& param) -> void
auto AddRaster(int index, RenderWare::Raster* raster) -> void
auto Clear(const Math::ColorRGB& color, float alpha) -> void
Removes all contents of this texture and replaces them with a clear background of the specified color.
auto PaintRegion(const Vector2& uv1, const Vector2& uv2, int index = -1) -> void
auto GetRaster() -> RenderWare::Raster*
Returns the underlying raster of this texture.
auto LoadMaterial() -> RenderWare::CompiledState*

Public variables

App::cViewer* mpViewer
uint32_t mMaterialID
int mFlags
Math::ColorRGBA mCustomParams
RenderWare::Raster* mSrcRasters
int mNumParams
int mNumRasters
int field_4C
Graphics::RenderTargetID mRenderTargetID
int mWidth
int mHeight
RenderWare::Raster* mpRaster

Function documentation

void Skinner::cSkinnerTexturePainter::SetColorWriteEnable(bool red, bool green, bool blue, bool alpha)

Sets which channels will be written in the next painting operation; those with false will not change.

Parameters
red
green
blue
alpha

void Skinner::cSkinnerTexturePainter::Clear(const Math::ColorRGB& color, float alpha)

Removes all contents of this texture and replaces them with a clear background of the specified color.

Parameters
color
alpha