2010-07-03から1日間の記事一覧

iPhone(iOS) SDKでゲーム(2)

今回は、ポリゴンの描画。 こんな感じで描画すると。 - (void)drawRect:(CGRect)rect { CGContextRef c = UIGraphicsGetCurrentContext(); // CGContextRetain(c); CGContextSetRGBFillColor (c, 0.0f, 0.0f, 1.0f, 1.0f); CGContextSetRGBStrokeColor(c, 1.…