mirror of
https://git.mirrors.martin98.com/https://github.com/google/draco
synced 2025-06-04 11:25:44 +08:00

* Create template for spec pages * Adapt syntax-table styles to Bootstrap * Reposition type/size annotations at col 86 (and update README.md) * Let Bootstrap style breadcrumb trails * Unrelated: abstract footer to an _include
22 lines
885 B
Markdown
22 lines
885 B
Markdown
|
|
## Attributes Decoder
|
|
|
|
### DecodeAttributesDecoderData()
|
|
|
|
~~~~~
|
|
DecodeAttributesDecoderData(buffer) {
|
|
num_attributes varUI32
|
|
point_attribute_ids_.resize(num_attributes);
|
|
for (i = 0; i < num_attributes; ++i) {
|
|
att_type UI8
|
|
data_type UI8
|
|
components_count UI8
|
|
normalized UI8
|
|
custom_id UI16
|
|
Initialize GeometryAttribute ga
|
|
att_id = pc->AddAttribute(new PointAttribute(ga));
|
|
point_attribute_ids_[i] = att_id;
|
|
}
|
|
~~~~~
|
|
{:.draco-syntax }
|