MCPcopy Create free account
hub / github.com/DISTRHO/DPF / getFormat

Method getFormat

dgl/src/OpenGL3.cpp:566–577  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

564
565#ifdef DGL_USE_GLES
566ImageFormat OpenGLImage::getFormat() const noexcept
567{
568 switch (format)
569 {
570 case kImageFormatBGR:
571 return kImageFormatRGB;
572 case kImageFormatBGRA:
573 return kImageFormatRGBA;
574 default:
575 return format;
576 }
577}
578
579const char* OpenGLImage::getRawData() const noexcept
580{

Callers 4

setupOpenGLImageFunction · 0.45
onDisplayMethod · 0.45
setupOpenGLImageFunction · 0.45
onDisplayMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected