MCPcopy Create free account
hub / github.com/MapServer/MapServer / drawRasterBuffer

Method drawRasterBuffer

mapoglrenderer.cpp:234–239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

232}
233
234void OglRenderer::drawRasterBuffer(rasterBufferObj *overlay, double opacity, int srcX, int srcY, int dstX, int dstY, int width, int height)
235{
236 // todo to support all alpha and srcx/y this needs to be done by creating a texture
237 makeCurrent();
238 glDrawPixels(width, height, GL_BGRA, GL_UNSIGNED_BYTE, overlay->data.rgba.pixels);
239}
240
241void OglRenderer::setTransparency(double transparency)
242{

Callers 1

msMergeRasterBufferOglFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected