MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / GetDesc

Method GetDesc

Source/Objects/reflectioncaptureobject.cpp:122–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120}
121
122void ReflectionCaptureObject::GetDesc(EntityDescription& desc) const {
123 Object::GetDesc(desc);
124
125 const size_t data_size = kLightProbeNumCoeffs * sizeof(float);
126 std::vector<char> data(data_size);
127
128 memcpy(&data[0], &avg_color, data_size);
129 desc.AddData(EDF_GI_COEFFICIENTS, data);
130}
131
132bool ReflectionCaptureObject::SetFromDesc(const EntityDescription& desc) {
133 bool ret = Object::SetFromDesc(desc);

Callers

nothing calls this directly

Calls 1

AddDataMethod · 0.80

Tested by

no test coverage detected