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

Function CelBlitFrame

Source/engine.cpp:45–55  ·  view source on GitHub ↗

* @brief Blit a given CEL frame to the given buffer * @param pBuff Target buffer * @param pCelBuff Cel data * @param nCel CEL frame number * @param nWidth Width of sprite */

Source from the content-addressed store, hash-verified

43 * @param nWidth Width of sprite
44 */
45void CelBlitFrame(BYTE *pBuff, BYTE *pCelBuff, int nCel, int nWidth)
46{
47 int nDataSize;
48 BYTE *pRLEBytes;
49
50 assert(pCelBuff != NULL);
51 assert(pBuff != NULL);
52
53 pRLEBytes = CelGetFrame(pCelBuff, nCel, &nDataSize);
54 CelBlitSafe(pBuff, pRLEBytes, nDataSize, nWidth);
55}
56
57/**
58 * @brief Same as CelDraw but with the option to skip parts of the top and bottom of the sprite

Callers 2

scrollrt_draw_dungeonFunction · 0.85
CelDrawFunction · 0.85

Calls 2

CelGetFrameFunction · 0.85
CelBlitSafeFunction · 0.85

Tested by

no test coverage detected