MCPcopy Create free account
hub / github.com/axmolengine/axmol / shape

Method shape

tests/cpp-tests/Source/ClippingNodeTest/ClippingNodeTest.cpp:147–158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145}
146
147DrawNode* BasicTest::shape()
148{
149 auto shape = DrawNode::create();
150 static Vec2 triangle[3];
151 triangle[0] = Vec2(-100, -100);
152 triangle[1] = Vec2(100, -100);
153 triangle[2] = Vec2(0, 100);
154
155 static Color4F green(0, 1, 0, 1);
156 shape->drawPolygon(triangle, 3, green, 0, green);
157 return shape;
158}
159
160Sprite* BasicTest::grossini()
161{

Callers 2

stencilMethod · 0.80
contentMethod · 0.80

Calls 3

createFunction · 0.85
Vec2Function · 0.50
drawPolygonMethod · 0.45

Tested by

no test coverage detected