@brief ��Ⱦͼ��
| 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 |
nothing calls this directly
no test coverage detected