MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / clone_uv

Method clone_uv

src/SB/Game/zEntCruiseBubble.cpp:1206–1222  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1204 }
1205
1206 bool uv_animated_model::clone_uv(RwTexCoords*& coords, S32& size, RpAtomic* m) const
1207 {
1208 RwTexCoords* c;
1209 if (!this->get_uv(c, size, m))
1210 {
1211 return false;
1212 }
1213
1214 coords = (RwTexCoords*)xMemAlloc(gActiveHeap, size * 8, 0);
1215 if (coords == NULL)
1216 {
1217 return false;
1218 }
1219
1220 memcpy(coords, c, size * 8); // [memcpy]
1221 return true;
1222 }
1223
1224 bool uv_animated_model::get_uv(RwTexCoords*& coords, S32& size, RpAtomic* m) const
1225 {

Callers 1

initMethod · 0.95

Calls 3

get_uvMethod · 0.95
memcpyFunction · 0.85
xMemAllocFunction · 0.50

Tested by

no test coverage detected