LibreOffice Module vcl (master)  1
Classes | Public Member Functions | List of all members
OpenGLCompatibleDC Class Reference

#include <gdiimpl.hxx>

Inheritance diagram for OpenGLCompatibleDC:
[legend]
Collaboration diagram for OpenGLCompatibleDC:
[legend]

Classes

struct  Texture
 

Public Member Functions

 OpenGLCompatibleDC (SalGraphics &rGraphics, int x, int y, int width, int height)
 
virtual std::unique_ptr< TexturegetAsMaskTexture () const override
 Obtain the texture in format for WinSalGraphicsImplBase::DrawTextMask(). More...
 
OpenGLTexturegetOpenGLTexture () const
 
bool copyToTexture (Texture &aTexture) const
 Copy bitmap data to the texture. Texture must be initialized and the correct size to hold the bitmap. More...
 
- Public Member Functions inherited from CompatibleDC
virtual ~CompatibleDC ()
 
HDC getCompatibleHDC ()
 
SalTwoRect getTwoRect () const
 
long getBitmapWidth () const
 
long getBitmapHeight () const
 
void fill (sal_uInt32 color)
 Reset the DC with the defined color. More...
 
virtual bool wantsTextColorWhite () const
 Return true if text glyphs should be drawn as white instead of black. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from CompatibleDC
static std::unique_ptr< CompatibleDCcreate (SalGraphics &rGraphics, int x, int y, int width, int height)
 
- Protected Member Functions inherited from CompatibleDC
 CompatibleDC (SalGraphics &rGraphics, int x, int y, int width, int height, bool disable=true)
 
- Protected Attributes inherited from CompatibleDC
HDC mhCompatibleDC
 The compatible DC that we create for our purposes. More...
 
HBITMAP mhBitmap
 DIBSection that we use for the GDI drawing, and later obtain. More...
 
HBITMAP mhOrigBitmap
 Return the previous bitmap to undo the SelectObject. More...
 
sal_uInt32 * mpData
 DIBSection data. More...
 
SalTwoRect maRects
 Mapping between the GDI position and OpenGL, to use for OpenGL drawing. More...
 
WinSalGraphicsImplBasempImpl
 The SalGraphicsImpl where we will draw. If null, we ignore the drawing, it means it happened directly to the DC... More...
 

Detailed Description

Definition at line 24 of file opengl/win/gdiimpl.hxx.

Constructor & Destructor Documentation

OpenGLCompatibleDC::OpenGLCompatibleDC ( SalGraphics rGraphics,
int  x,
int  y,
int  width,
int  height 
)

Member Function Documentation

bool OpenGLCompatibleDC::copyToTexture ( Texture aTexture) const

Copy bitmap data to the texture. Texture must be initialized and the correct size to hold the bitmap.

virtual std::unique_ptr<Texture> OpenGLCompatibleDC::getAsMaskTexture ( ) const
overridevirtual

Obtain the texture in format for WinSalGraphicsImplBase::DrawTextMask().

Reimplemented from CompatibleDC.

OpenGLTexture* OpenGLCompatibleDC::getOpenGLTexture ( ) const

The documentation for this class was generated from the following file: