@brief ��Ⱦͼ��
| 434 | |
| 435 | /// @brief ��Ⱦͼ�� |
| 436 | bool Render4V(const char* name, float x1, float y1, float z1, float x2, float y2, float z2, |
| 437 | float x3, float y3, float z3, float x4, float y4, float z4)LNOEXCEPT |
| 438 | { |
| 439 | if (m_GraphType != GraphicsType::Graph2D) |
| 440 | { |
| 441 | LERROR("Render4V: ֻ��2D��Ⱦ������ִ�и÷���"); |
| 442 | return false; |
| 443 | } |
| 444 | |
| 445 | fcyRefPointer<ResSprite> p = m_ResourceMgr.FindSprite(name); |
| 446 | if (!p) |
| 447 | { |
| 448 | LERROR("Render4V: �Ҳ���ͼ����Դ'%m'", name); |
| 449 | return false; |
| 450 | } |
| 451 | |
| 452 | // ���û�� |
| 453 | updateGraph2DBlendMode(p->GetBlendMode()); |
| 454 | |
| 455 | f2dSprite* pSprite = p->GetSprite(); |
| 456 | pSprite->SetZ(0.5f); |
| 457 | pSprite->Draw(m_Graph2D, fcyVec3(x1, y1, z1), fcyVec3(x2, y2, z2), fcyVec3(x3, y3, z3), fcyVec3(x4, y4, z4), false); |
| 458 | return true; |
| 459 | } |
| 460 | |
| 461 | /// @brief ��Ⱦ���� |
| 462 | bool RenderTexture(ResTexture* tex, BlendMode blend, const f2dGraphics2DVertex vertex[])LNOEXCEPT |
nothing calls this directly
no test coverage detected