Per vertex colors
FossilOrigin-Name: 3632a7239a1926291c9162ba892d2315038a178a31652618df991c0ee549b5b5
This commit is contained in:
parent
e0e41e991a
commit
cdf559f8e3
3 changed files with 18 additions and 30 deletions
|
@ -19,6 +19,7 @@ OF_ASSUME_NONNULL_BEGIN
|
|||
|
||||
typedef struct OF_BOXABLE {
|
||||
float x, y;
|
||||
float r, g, b, a;
|
||||
} O3DVertex;
|
||||
|
||||
@protocol O3DRenderer <OFObject>
|
||||
|
@ -31,8 +32,8 @@ typedef struct OF_BOXABLE {
|
|||
refreshRate: (float)refreshRate
|
||||
options: (nullable OFDictionary *)options;
|
||||
- (void)beginFrame;
|
||||
- (void)setColor: (OFColor *)color;
|
||||
- (void)drawPolygonVertices: (const O3DVertex *)vertices count: (size_t)count;
|
||||
- (void)drawPolygonWithVertices: (const O3DVertex *)vertices
|
||||
count: (size_t)count;
|
||||
- (void)endFrame;
|
||||
@end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue