MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / GetObjectImage

Function GetObjectImage

Descent3/objinfo.cpp:310–315  ·  view source on GitHub ↗

Given an object handle, returns an index to that object's model

Source from the content-addressed store, hash-verified

308
309// Given an object handle, returns an index to that object's model
310int GetObjectImage(int handle) {
311 if (Object_info[handle].type == OBJ_NONE)
312 return -1;
313 else
314 return (Object_info[handle].render_handle);
315}
316
317// Given an object, renders the representation of this object
318void DrawObject(object *obj) {

Callers 1

DrawPictureMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected