MCPcopy Create free account
hub / github.com/JACoders/OpenJK / G2API_SetRootSurface

Function G2API_SetRootSurface

code/rd-vanilla/G2_API.cpp:888–901  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

886
887
888qboolean G2API_SetRootSurface(CGhoul2Info_v &ghlInfo, const int modelIndex, const char *surfaceName)
889{
890 G2ERROR(ghlInfo.IsValid(),"Invalid ghlInfo");
891 G2ERROR(surfaceName,"Invalid surfaceName");
892 if (G2_SetupModelPointers(ghlInfo))
893 {
894 G2ERROR(modelIndex>=0&&modelIndex<ghlInfo.size(),"Bad Model Index");
895 if (modelIndex>=0&&modelIndex<ghlInfo.size())
896 {
897 return G2_SetRootSurface(ghlInfo, modelIndex, surfaceName);
898 }
899 }
900 return qfalse;
901}
902
903int G2API_AddSurface(CGhoul2Info *ghlInfo, int surfaceNumber, int polyNumber, float BarycentricI, float BarycentricJ, int lod )
904{

Callers

nothing calls this directly

Calls 4

G2_SetupModelPointersFunction · 0.70
G2_SetRootSurfaceFunction · 0.70
IsValidMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected