/** Class that creates (and destroys) a compatible Device Context.
ThisistobeusedforGDIdrawingintoaDIBthatwelateruseforadifferent drawingmethod,suchasatextureforOpenGLdrawingorsurfaceforSkiadrawing.
*/ class SkiaCompatibleDC
{ /// The compatible DC that we create for our purposes.
HDC mhCompatibleDC;
/// Mapping between the GDI position and OpenGL, to use for OpenGL drawing.
SalTwoRect maRects;
/// DIBSection that we use for the GDI drawing, and later obtain.
HBITMAP mhBitmap;
/// Return the previous bitmap to undo the SelectObject.
HBITMAP mhOrigBitmap;
/// DIBSection data.
sal_uInt32* mpData;
/// The SalGraphicsImpl where we will draw. If null, we ignore the drawing, it means it happened directly to the DC...
WinSalGraphicsImplBase* mpImpl;
public:
SkiaCompatibleDC(WinSalGraphics& rGraphics, int x, int y, int width, int height);
~SkiaCompatibleDC();
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.