PbReadColor Function

Reads an RGBA color value from a protobuf message.

void PbReadColor(Handle pb, const char[] field, int buffer[4], int index)

Parameters

Handle pb

protobuf handle.

const char[] field

Field name.

int[4] buffer

Destination color buffer.

int index

Index into repeated field.

Errors

Invalid or incorrect Handle, non-existent field, or incorrect field type.