Oolite 1.91.0.7646-241128-10e222e
Loading...
Searching...
No Matches
OOBreakPatternEntity(Private) Category Reference

Instance Methods

(void) - setInnerColorComponents:outerColorComponents:
 

Detailed Description

Definition at line 34 of file OOBreakPatternEntity.m.

Method Documentation

◆ setInnerColorComponents:outerColorComponents:

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

Extends class OOBreakPatternEntity.

Definition at line 1 of file OOBreakPatternEntity.m.

98 :(GLfloat[4])color1 outerColorComponents:(GLfloat[4])color2
99{
100 GLfloat *colors[2] = { color1, color2 };
101
102 for (NSUInteger i = 0; i < _vertexCount; i++)
103 {
104 GLfloat *color = colors[i & 1];
105 memcpy(&_vertexColor[i], color, sizeof (GLfloat) * 4);
106 }
107}

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