MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / packData

Method packData

Engine/source/afx/ce/afxModel.cpp:257–286  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

255}
256
257void afxModelData::packData(BitStream* stream)
258{
259 Parent::packData(stream);
260
261 PACKDATA_ASSET(Shape);
262 stream->writeString(sequence);
263 stream->write(seq_rate);
264 stream->write(seq_offset);
265 stream->write(alpha_mult);
266 stream->write(use_vertex_alpha);
267 stream->write(force_on_material_flags);
268 stream->write(force_off_material_flags);
269 stream->writeFlag(texture_filtering);
270 stream->write(fog_mult);
271
272 stream->writeString(remap_txr_tags);
273
274 stream->writeFlag(overrideLightingOptions);
275 stream->writeFlag(receiveSunLight);
276 stream->writeFlag(useAdaptiveSelfIllumination);
277 stream->writeFlag(useCustomAmbientLighting);
278 stream->writeFlag(customAmbientForSelfIllumination);
279 stream->write(customAmbientLighting);
280 stream->writeFlag(receiveLMLighting);
281
282 stream->write(shadowSize);
283 stream->write(shadowMaxVisibleDistance);
284 stream->write(shadowProjectionDistance);
285 stream->write(shadowSphereAdjust);
286}
287
288void afxModelData::unpackData(BitStream* stream)
289{

Callers

nothing calls this directly

Calls 3

writeStringMethod · 0.45
writeMethod · 0.45
writeFlagMethod · 0.45

Tested by

no test coverage detected