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

Function iIsValidDds

DevIL/src-IL/src/il_dds.cpp:138–149  ·  view source on GitHub ↗

Internal function to get the header and check it.

Source from the content-addressed store, hash-verified

136
137// Internal function to get the header and check it.
138ILboolean iIsValidDds()
139{
140 ILboolean IsValid;
141 DDSHEAD Head;
142
143 iGetDdsHead(&Head);
144 iseek(-(ILint)sizeof(DDSHEAD), IL_SEEK_CUR); // Go ahead and restore to previous state
145
146 IsValid = iCheckDds(&Head);
147
148 return IsValid;
149}
150
151
152// Internal function used to check if the HEADER is a valid .dds header.

Callers 2

ilIsValidDdsFFunction · 0.85
ilIsValidDdsLFunction · 0.85

Calls 2

iGetDdsHeadFunction · 0.85
iCheckDdsFunction · 0.85

Tested by

no test coverage detected