DrawNode* BasicTest::shape()
{
auto shape = DrawNode::create();
static Vec2 triangle[3];
triangle[0] = Vec2(-100, -100);
triangle[1] = Vec2(100, -100);
triangle[2] = Vec2(0, 100);
static Color4F green(0, 1, 0, 1);
// shape->drawPolygon(triangle, 3, green, 0, green);
if (1) // set 0 if you want see the working drawSolidCircle
{
// always a retagle (should be a "circle")
shape->drawDot(Vec2(50, 50), 40, green);
}
else //works
{
shape->drawSolidCircle(Vec2(50, 50), 40, 0, 48, green);
}
//Control shapes (show the look =>always circles)
auto shapeControl = DrawNode::create();
shapeControl->drawDot(Vec2(50, 50), 40, green);
shapeControl->drawSolidCircle(Vec2(50, 250), 40, 0,48,green);
addChild(shapeControl);
return shape;
}
Sprite* BasicTest::grossini()
{
auto grossini = Sprite::create(s_pathGrossini);
grossini->setScale(10.5);
return grossini;
}
Works not on Axmol 2.x and also not on Axmol 3
For retest: ClippingNodeTest.cpp changes:
Replace on ClippingNodeTest.cpp methods:
DrawNode* BasicTest::shape() andSprite* BasicTest::grossini()with this lines:DrawNode::drawDot should be a circle like the green circle left bottom
=> but is a rectangle:
DrawNode::drawSolidCircle works: (looks like the green circle left top)