MCPcopy Create free account
hub / github.com/davideberly/GeometricTools / Draw

Method Draw

GTE/Graphics/GraphicsEngine.cpp:58–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58uint64_t GraphicsEngine::Draw(Visual* visual)
59{
60 LogAssert(visual != nullptr, "Input visual is null.");
61 auto const& vbuffer = visual->GetVertexBuffer();
62 auto const& ibuffer = visual->GetIndexBuffer();
63 auto const& effect = visual->GetEffect();
64 if (vbuffer && ibuffer && effect)
65 {
66 return DrawPrimitive(vbuffer, ibuffer, effect);
67 }
68 return 0;
69}
70
71uint64_t GraphicsEngine::Draw(std::vector<Visual*> const& visuals)
72{

Callers 15

UpdateFacesMethod · 0.45
DrawPrimitiveMethod · 0.45
OnDisplayMethod · 0.45
OnIdleMethod · 0.45
OnIdleMethod · 0.45
DrawScreenOverlayMethod · 0.45
OnIdleMethod · 0.45
OnIdleMethod · 0.45
OnIdleMethod · 0.45
OnIdleMethod · 0.45
OnIdleMethod · 0.45
DrawScreenOverlayMethod · 0.45

Calls 4

TypesetMethod · 0.80
GetTranslateMethod · 0.80
GetVertexBufferMethod · 0.45
GetIndexBufferMethod · 0.45

Tested by 1

OnDisplayMethod · 0.36