MCPcopy Create free account
hub / github.com/diasurgical/devilution / CelGetFrameStart

Function CelGetFrameStart

Source/engine.h:14–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12extern BOOL gbNotInView; // valid - if x/y are in bounds
13
14inline BYTE *CelGetFrameStart(BYTE *pCelBuff, int nCel)
15{
16 DWORD *pFrameTable;
17
18 pFrameTable = (DWORD *)pCelBuff;
19
20 return pCelBuff + SwapLE32(pFrameTable[nCel]);
21}
22
23#define LOAD_LE32(b) (((DWORD)(b)[3] << 24) | ((DWORD)(b)[2] << 16) | ((DWORD)(b)[1] << 8) | (DWORD)(b)[0])
24inline BYTE *CelGetFrame(BYTE *pCelBuff, int nCel, int *nDataSize)

Callers 4

InitMonsterGFXFunction · 0.85
SetTownerGPtrsFunction · 0.85
LoadMissileGFXFunction · 0.85
SetPlayerGPtrsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected