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

Method load

2dlib/surface.cpp:215–220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

213}
214
215void grSurface::load(int handle) {
216 /* just load the bitmap from the handle info */
217 ASSERT(m_SurfInit);
218
219 grSurface::load((char *)bm_data(handle, 0), bm_w(handle, 0), bm_h(handle, 0), bm_bpp(handle), bm_format(handle));
220}
221
222void grSurface::load(char *data, int w, int h, int bpp, int format) {
223 // copy defined bitmap given as arguments to this surface, with correct bpp translation.

Callers

nothing calls this directly

Calls 5

bm_dataFunction · 0.85
bm_wFunction · 0.85
bm_hFunction · 0.85
bm_bppFunction · 0.85
bm_formatFunction · 0.85

Tested by

no test coverage detected