Oolite
Loading...
Searching...
No Matches
OOBreakPatternEntity(Private) Category Reference

Instance Methods

(void) - setInnerColorComponents:outerColorComponents:

Detailed Description

Definition at line 33 of file OOBreakPatternEntity.m.

Method Documentation

◆ setInnerColorComponents:outerColorComponents:

- (void) setInnerColorComponents: (GLfloat) color1[4]
outerColorComponents: (GLfloat) color2[4] 

Extends class OOBreakPatternEntity.

Definition at line 91 of file OOBreakPatternEntity.m.

91 :(GLfloat[4])color1 outerColorComponents:(GLfloat[4])color2
92{
93 GLfloat* colors[2] = { color1, color2 };
94
95 for (NSUInteger i = 0; i < _vertexCount; i++) {
96 GLfloat* color = colors[i & 1];
97 memcpy(&_vertexColor[i], color, sizeof(GLfloat) * 4);
98 }
99}

Referenced by OOBreakPatternEntity::initWithPolygonSides:startAngle:aspectRatio:, and OOBreakPatternEntity::setInnerColor:outerColor:.

Here is the caller graph for this function:

The documentation for this category was generated from the following file: