mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0028095: Draw Harness, ViewerTest - use RGBA format instead of BGRA within vreadpixel
OpenGl_Workspace::BufferDump() now implicitly converts RGBA dump into requested BGR, BGRA and RGB image. DRAW command dversion is improved to report OpenGL variant used (desktop or ES); reporting of version of MSVC is corrected for VC14 and above; reporting of HAVE_OPENCL option is removed. Usage of command vdump is corrected in some tests to specify extension .png for an image file. Compiler warning is eliminated in OpenGl_Text.cxx (OpenGL ES mode only).
This commit is contained in:
@@ -53,6 +53,16 @@ public:
|
||||
return !aUnion.myChar[0];
|
||||
}
|
||||
|
||||
//! Auxiliary method for swapping bytes between RGB and BGR formats.
|
||||
//! This method modifies the image data but does not change pixel format!
|
||||
//! Method will fail if pixel format is not one of the following:
|
||||
//! - ImgRGB32 / ImgBGR32
|
||||
//! - ImgRGBA / ImgBGRA
|
||||
//! - ImgRGB / ImgBGR
|
||||
//! - ImgRGBF / ImgBGRF
|
||||
//! - ImgRGBAF / ImgBGRAF
|
||||
Standard_EXPORT static bool SwapRgbaBgra (Image_PixMap& theImage);
|
||||
|
||||
public: // high-level API
|
||||
|
||||
inline ImgFormat Format() const
|
||||
|
Reference in New Issue
Block a user