| 145 | } |
| 146 | |
| 147 | DrawNode* 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 | |
| 160 | Sprite* BasicTest::grossini() |
| 161 | { |
no test coverage detected