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

Method Render4V

LuaSTGPlus/AppFrame.h:436–459  ·  view source on GitHub ↗

@brief ��Ⱦͼ��

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

FindSpriteMethod · 0.80
GetBlendModeMethod · 0.45
GetSpriteMethod · 0.45

Tested by

no test coverage detected