MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / GetBitmapAndPalette

Function GetBitmapAndPalette

legacy/D3Launch/D3Launch.cpp:547–551  ·  view source on GitHub ↗

Loads a bitmap and palette from a given resource ID

Source from the content-addressed store, hash-verified

545
546// Loads a bitmap and palette from a given resource ID
547BOOL GetBitmapAndPalette(UINT nIDResource, CBitmap *bitmap, CPalette *pal) {
548 LPCTSTR lpszResourceName = (LPCTSTR)nIDResource;
549
550 return (GetBitmapAndPalette(lpszResourceName, bitmap, pal));
551}
552
553// Loads a bitmap and palette from a given resource name
554BOOL GetBitmapAndPalette(LPCTSTR lpszResourceName, CBitmap *bitmap, CPalette *pal) {

Callers 3

LoadMethod · 0.85
AnimLoadMethod · 0.85
InitInstanceMethod · 0.85

Calls 2

SetPaletteEntryFunction · 0.85
DeleteObjectMethod · 0.80

Tested by

no test coverage detected