MCPcopy Create free account
hub / github.com/9chu/LuaSTGPlus / Render

Method Render

LuaSTGPlus/AppFrame.h:341–358  ·  view source on GitHub ↗

@brief ��Ⱦͼ��

Source from the content-addressed store, hash-verified

339
340 /// @brief ��Ⱦͼ��
341 bool Render(ResSprite* p, float x, float y, float rot = 0, float hscale = 1, float vscale = 1, float z = 0.5)LNOEXCEPT
342 {
343 LASSERT(p);
344 if (m_GraphType != GraphicsType::Graph2D)
345 {
346 LERROR("Render: ֻ��2D��Ⱦ������ִ�и÷���");
347 return false;
348 }
349
350 // ���û��
351 updateGraph2DBlendMode(p->GetBlendMode());
352
353 // ��Ⱦ
354 f2dSprite* pSprite = p->GetSprite();
355 pSprite->SetZ(z);
356 pSprite->Draw2(m_Graph2D, fcyVec2(x, y), fcyVec2(hscale, vscale), rot, false);
357 return true;
358 }
359
360 /// @brief ��Ⱦ����
361 bool Render(ResAnimation* p, int ani_timer, float x, float y, float rot = 0, float hscale = 1, float vscale = 1)LNOEXCEPT

Callers

nothing calls this directly

Calls 5

GetIntervalMethod · 0.80
GetCountMethod · 0.80
FindSpriteMethod · 0.80
GetBlendModeMethod · 0.45
GetSpriteMethod · 0.45

Tested by

no test coverage detected