emailconfirmed, nsInternRO, nsInternRW, Administrators
3,356
edits
(created) |
m (→Quartz 2D) |
||
Line 70: | Line 70: | ||
<source lang="objc"> | <source lang="objc"> | ||
- (void)drawRect:(NSRect)rect | - (void)drawRect:(NSRect)rect { | ||
{ | CGContextRef myContext = [[NSGraphicsContext currentContext] graphicsPort]; | ||
CGContextRef myContext = [[NSGraphicsContext | |||
// ********** Your drawing code here ********** | // ********** Your drawing code here ********** | ||
CGContextSetRGBFillColor (myContext, 1, 0, 0, 1); | CGContextSetRGBFillColor (myContext, 1, 0, 0, 1); | ||
Line 85: | Line 83: | ||
<br/> | <br/> | ||
=== Open GL === | === Open GL === | ||
* Komplexes, dreidimensionale Strukturen | * Komplexes, dreidimensionale Strukturen |