3#ifndef GAME_CLIENT_RENDER_H
4#define GAME_CLIENT_RENDER_H
102 void ApplyColors(
bool CustomColoredSkin,
int ColorBody,
int ColorFeet)
105 if(CustomColoredSkin)
144 Texture.Invalidate();
148 Texture.Invalidate();
279 void DrawSprite(
float x,
float y,
float Size)
const;
280 void DrawSprite(
float x,
float y,
float ScaledWidth,
float ScaledHeight)
const;
306 void RenderTileRectangle(
int RectX,
int RectY,
int RectW,
int RectH,
unsigned char IndexIn,
unsigned char IndexOut,
float Scale,
ColorRGBA Color,
int RenderFlags)
const;
311 void CalcScreenParams(
float Aspect,
float Zoom,
float *pWidth,
float *pHeight);
312 void MapScreenToWorld(
float CenterX,
float CenterY,
float ParallaxX,
float ParallaxY,
313 float ParallaxZoom,
float OffsetX,
float OffsetY,
float Aspect,
float Zoom,
float *pPoints);
Definition: animstate.h:9
Definition: datafile.h:24
Definition: mapitems.h:403
Definition: mapitems.h:391
Definition: mapitems.h:373
Definition: gameclient.h:130
std::function< void()> m_RefreshCallback
Definition: render.h:183
void SetRefreshCallback(const std::function< void()> &RefreshCallback)
Definition: render.h:195
const CSkinDescriptor & SkinDescriptor() const
Definition: render.h:194
CSkinDescriptor m_SkinDescriptor
Definition: render.h:182
CManagedTeeRenderInfo(const CTeeRenderInfo &TeeRenderInfo, const CSkinDescriptor &SkinDescriptor)
Definition: render.h:186
const CTeeRenderInfo & TeeRenderInfo() const
Definition: render.h:193
CTeeRenderInfo m_TeeRenderInfo
Definition: render.h:181
CTeeRenderInfo & TeeRenderInfo()
Definition: render.h:192
int m_NumPoints
Definition: render.h:232
int NumPointsMax() const
Definition: render_map.cpp:100
int NumPoints() const override
Definition: render_map.cpp:95
int m_StartPoint
Definition: render.h:231
CEnvPoint * m_pPoints
Definition: render.h:234
int m_NumPointsMax
Definition: render.h:233
int StartPoint() const
Definition: render_map.cpp:90
CEnvPointBezier_upstream * m_pPointsBezierUpstream
Definition: render.h:236
const CEnvPointBezier * GetBezier(int Index) const override
Definition: render_map.cpp:116
CEnvPointBezier * m_pPointsBezier
Definition: render.h:235
const CEnvPoint * GetPoint(int Index) const override
Definition: render_map.cpp:105
void SetPointsRange(int StartPoint, int NumPoints)
Definition: render_map.cpp:84
CMapBasedEnvelopePointAccess(class CDataFileReader *pReader)
Definition: render_map.cpp:25
Definition: mapitems.h:295
Definition: mapitems.h:224
bool m_BotDecoration
Definition: render.h:52
bool operator!=(const CSixup &Other) const
Definition: render.h:57
bool operator==(const CSixup &Other) const
Definition: render.cpp:79
void Reset()
Definition: render.cpp:69
char m_aaSkinPartNames[protocol7::NUM_SKINPARTS][protocol7::MAX_SKIN_LENGTH]
Definition: render.h:51
bool m_XmasHat
Definition: render.h:53
CSixup m_aSixup[NUM_DUMMIES]
Definition: render.h:59
bool operator!=(const CSkinDescriptor &Other) const
Definition: render.h:65
bool operator==(const CSkinDescriptor &Other) const
Definition: render.cpp:40
unsigned m_Flags
Definition: render.h:44
bool IsValid() const
Definition: render.cpp:35
void Reset()
Definition: render.cpp:25
@ FLAG_SIX
Definition: render.h:41
@ FLAG_SEVEN
Definition: render.h:42
CSkinDescriptor()
Definition: render.cpp:20
char m_aSkinName[MAX_SKIN_LENGTH]
Definition: render.h:46
void Reset()
Definition: skin.cpp:113
IGraphics::CTextureHandle m_Body
Definition: skin.h:18
void Reset()
Definition: skin.cpp:8
CSkinMetrics m_Metrics
Definition: skin.h:87
ColorRGBA m_BloodColor
Definition: skin.h:35
CSkinTextures m_OriginalSkin
Definition: skin.h:33
CSkinTextures m_ColorableSkin
Definition: skin.h:34
Definition: mapitems.h:527
Definition: mapitems.h:536
ColorRGBA m_BotColor
Definition: render.h:167
bool m_aUseCustomColors[protocol7::NUM_SKINPARTS]
Definition: render.h:161
void Reset()
Definition: render.h:140
ColorRGBA m_BloodColor
Definition: render.h:163
IGraphics::CTextureHandle m_aColorableTextures[protocol7::NUM_SKINPARTS]
Definition: render.h:160
IGraphics::CTextureHandle m_aOriginalTextures[protocol7::NUM_SKINPARTS]
Definition: render.h:159
const IGraphics::CTextureHandle & PartTexture(int Part) const
Definition: render.h:169
ColorRGBA m_aColors[protocol7::NUM_SKINPARTS]
Definition: render.h:162
int m_HatSpriteIndex
Definition: render.h:166
IGraphics::CTextureHandle m_HatTexture
Definition: render.h:164
IGraphics::CTextureHandle m_BotTexture
Definition: render.h:165
void Apply(const CSkin *pSkin)
Definition: render.h:94
void Reset()
Definition: render.h:76
bool Valid() const
Definition: render.h:132
ColorRGBA m_BloodColor
Definition: render.h:123
void ApplyColors(bool CustomColoredSkin, int ColorBody, int ColorFeet)
Definition: render.h:102
bool m_CustomColoredSkin
Definition: render.h:122
CTeeRenderInfo()
Definition: render.h:71
bool m_GotAirJump
Definition: render.h:128
CSkin::CSkinMetrics m_SkinMetrics
Definition: render.h:120
ColorRGBA m_ColorBody
Definition: render.h:125
bool m_FeetFlipped
Definition: render.h:130
CSkin::CSkinTextures m_ColorableRenderSkin
Definition: render.h:118
CSkin::CSkinTextures m_OriginalRenderSkin
Definition: render.h:117
int m_TeeRenderFlags
Definition: render.h:129
ColorRGBA m_ColorFeet
Definition: render.h:126
CSixup m_aSixup[NUM_DUMMIES]
Definition: render.h:175
float m_Size
Definition: render.h:127
Definition: mapitems.h:520
Definition: mapitems.h:238
Definition: mapitems.h:553
static constexpr const float DARKEST_LGT
Definition: color.h:178
virtual const CEnvPointBezier * GetBezier(int Index) const =0
virtual ~IEnvelopePointAccess()=default
virtual int NumPoints() const =0
virtual const CEnvPoint * GetPoint(int Index) const =0
Definition: graphics.h:201
void Invalidate()
Definition: graphics.h:214
bool IsValid() const
Definition: graphics.h:211
Definition: graphics.h:184
Definition: textrender.h:314
@ NUM_DUMMIES
Definition: enums.h:8
@ MAX_SKIN_LENGTH
Definition: protocol.h:100
@ NUM_SKINPARTS
Definition: protocol7.h:36
@ MAX_SKIN_LENGTH
Definition: protocol7.h:63
void(* ENVELOPE_EVAL)(int TimeOffsetMillis, int Env, ColorRGBA &Result, size_t Channels, void *pUser)
Definition: render.h:249
@ TEE_EFFECT_SPARKLE
Definition: render.h:203
@ TEE_NO_WEAPON
Definition: render.h:202
@ TEE_EFFECT_FROZEN
Definition: render.h:201
@ SPRITE_FLAG_FLIP_X
Definition: render.h:210
@ OVERLAYRENDERFLAG_TEXT
Definition: render.h:217
@ TILERENDERFLAG_EXTEND
Definition: render.h:215
@ SPRITE_FLAG_FLIP_Y
Definition: render.h:209
@ LAYERRENDERFLAG_OPAQUE
Definition: render.h:212
@ LAYERRENDERFLAG_TRANSPARENT
Definition: render.h:213
Definition: client_data.h:29
Definition: client_data7.h:32