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

Method protectedSetSurfaceTexture

Engine/source/T3D/convexShape.cpp:260–271  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

258}
259
260bool ConvexShape::protectedSetSurfaceTexture(void *object, const char *index, const char *data)
261{
262 ConvexShape *shape = static_cast< ConvexShape* >(object);
263
264 surfaceMaterial surface;
265
266 surface._setMaterial(StringTable->insert(data));
267
268 shape->mSurfaceTextures.push_back(surface);
269
270 return false;
271}
272
273ConvexShape::ConvexShape()
274 :

Callers

nothing calls this directly

Calls 3

_setMaterialMethod · 0.80
insertMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected