Flutter Engine
The Flutter Engine
|
#include <BufferWriter.h>
Public Member Functions | |
VertexColor ()=default | |
VertexColor (const SkPMColor4f &color, bool wideColor) | |
void | set (const SkPMColor4f &color, bool wideColor) |
size_t | size () const |
Friends | |
template<typename T > | |
VertexWriter & | operator<< (VertexWriter &, const T &) |
VertexColor is a helper for writing colors to a vertex buffer. It outputs either four bytes or or four float32 channels, depending on the wideColor parameter. Note that the GP needs to have been constructed with the correct attribute type for colors, to match the usage here.
Definition at line 340 of file BufferWriter.h.
|
default |
|
inlineexplicit |
Definition at line 344 of file BufferWriter.h.
|
inline |
Definition at line 348 of file BufferWriter.h.
|
inline |
Definition at line 357 of file BufferWriter.h.
|
friend |
Definition at line 277 of file BufferWriter.h.