MCPcopy Create free account
hub / github.com/beefytech/Beef / ModelDef_SetTextures

Function ModelDef_SetTextures

BeefySysLib/gfx/ModelDef.cpp:120–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118}
119
120BF_EXPORT void BF_CALLTYPE ModelDef_SetTextures(ModelDef* modelDef, int32 meshIdx, int32 primitivesIdx, char** paths, int32 pathCount)
121{
122 auto& prims = modelDef->mMeshes[meshIdx].mPrimitives[primitivesIdx];
123 prims.mTexPaths.Clear();
124 for (int i = 0; i < pathCount; i++)
125 prims.mTexPaths.Add(paths[i]);
126}
127
128BF_EXPORT bool BF_CALLTYPE ModelDef_RayIntersect(ModelDef* modelDef, const Matrix4& worldMtx, const Vector3& origin, const Vector3& vec, Vector3& outIntersect, float& outDistance)
129{

Callers

nothing calls this directly

Calls 2

ClearMethod · 0.45
AddMethod · 0.45

Tested by

no test coverage detected