11#ifndef __SSKINOBJ_I__H__
12#define __SSKINOBJ_I__H__
14#include <interface/obj-ref-i.h>
15#include <interface/SRender-i.h>
27#define INTERFACE ISkinObj
31#include <interface/SobjectApi.h>
42 (CTHIS_
IRenderTarget * pRT, LPCRECT rcDraw, DWORD dwState, BYTE byAlpha) SCONST PURE;
54 (CTHIS_
IRenderTarget * pRT, LPCRECT rcDraw, DWORD dwState) SCONST PURE;
65 (CTHIS_
IRenderTarget * pRT, LPCRECT rcDraw,
int iState, BYTE byAlpha) SCONST PURE;
77 (CTHIS_
IRenderTarget * pRT, LPCRECT rcDraw,
int iState) SCONST PURE;
109 STDMETHOD_(
void,
SetAlpha)(THIS_ BYTE byAlpha) PURE;
Interface for rendering target objects.
Interface for Skin Objects.
int GetScale() SCONST PURE
Retrieves the scaling factor of the skin object.
int GetStates() SCONST PURE
Retrieves the number of states contained in the skin object.
BYTE GetAlpha() SCONST PURE
Retrieves the transparency of the skin object.
void DrawByIndex2(IRenderTarget *pRT, LPCRECT rcDraw, int iState, BYTE byAlpha) SCONST PURE
Draws the skin object to the specified render target with a given index and transparency.
void OnColorize(COLORREF cr) PURE
Adjusts the hue of the skin object based on a reference color.
void DrawByIndex(IRenderTarget *pRT, LPCRECT rcDraw, int iState) SCONST PURE
Draws the skin object to the specified render target with a given index.
void DrawByState(IRenderTarget *pRT, LPCRECT rcDraw, DWORD dwState) SCONST PURE
Draws the skin object to the specified render target with a given state.
SIZE GetSkinSize() SCONST PURE
Retrieves the default size of the skin object.
void SetAlpha(BYTE byAlpha) PURE
Sets the transparency of the skin object.
void SetScale(int scale) PURE
Sets the scaling factor of the skin object.
void DrawByState2(IRenderTarget *pRT, LPCRECT rcDraw, DWORD dwState, BYTE byAlpha) SCONST PURE
Draws the skin object to the specified render target with a given state and transparency.
ISkinObj * Scale(int nScale) PURE
Scales the skin object by a specified factor.