MCPcopy Create free account
hub / github.com/DentonW/DevIL / GetFaceFlag

Function GetFaceFlag

DevIL/src-IL/src/il_vtf.cpp:625–646  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

623
624
625ILuint GetFaceFlag(ILuint FaceNum)
626{
627 switch (FaceNum)
628 {
629 case 0:
630 return IL_CUBEMAP_POSITIVEX;
631 case 1:
632 return IL_CUBEMAP_NEGATIVEX;
633 case 2:
634 return IL_CUBEMAP_POSITIVEY;
635 case 3:
636 return IL_CUBEMAP_NEGATIVEY;
637 case 4:
638 return IL_CUBEMAP_POSITIVEZ;
639 case 5:
640 return IL_CUBEMAP_NEGATIVEZ;
641 case 6:
642 return IL_SPHEREMAP;
643 }
644
645 return IL_SPHEREMAP; // Should never reach here!
646}
647
648
649ILboolean VtfInitFacesMipmaps(ILimage *BaseImage, ILuint NumFaces, VTFHEAD *Header)

Callers 1

VtfInitFacesMipmapsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected