vdr-plugin-softhddevice-drm-gles 1.4.0
Public Member Functions | Private Attributes | List of all members
cOglPixmap Class Reference

#include <openglosd.h>

Collaboration diagram for cOglPixmap:
Collaboration graph
[legend]

Public Member Functions

 cOglPixmap (std::shared_ptr< cOglThread > oglThread, int Layer, const cRect &ViewPort, const cRect &DrawPort=cRect::Null)
 
virtual ~cOglPixmap (void)
 
cOglFbFb (void)
 
int X (void)
 
int Y (void)
 
virtual bool IsDirty (void)
 
virtual void SetDirty (bool dirty=true)
 
virtual void SetLayer (int Layer)
 
virtual void SetAlpha (int Alpha)
 
virtual void SetTile (bool Tile)
 
virtual void SetViewPort (const cRect &Rect)
 
virtual void SetDrawPortPoint (const cPoint &Point, bool Dirty=true)
 
virtual void Clear (void)
 
virtual void Fill (tColor Color)
 
virtual void DrawImage (const cPoint &Point, const cImage &Image)
 
virtual void DrawImage (const cPoint &Point, int ImageHandle)
 
virtual void DrawScaledImage (const cPoint &Point, const cImage &Image, double FactorX=1.0f, double FactorY=1.0f, bool AntiAlias=false)
 
virtual void DrawScaledImage (const cPoint &Point, int ImageHandle, double FactorX=1.0f, double FactorY=1.0f, bool AntiAlias=false)
 
virtual void DrawPixel (const cPoint &Point, tColor Color)
 
virtual void DrawBitmap (const cPoint &Point, const cBitmap &Bitmap, tColor ColorFg=0, tColor ColorBg=0, bool Overlay=false)
 
virtual void DrawText (const cPoint &Point, const char *s, tColor ColorFg, tColor ColorBg, const cFont *Font, int Width=0, int Height=0, int Alignment=taDefault)
 
virtual void DrawRectangle (const cRect &Rect, tColor Color)
 
virtual void DrawEllipse (const cRect &Rect, tColor Color, int Quadrants=0)
 
virtual void DrawSlope (const cRect &Rect, tColor Color, int Type)
 
virtual void Render (const cPixmap *Pixmap, const cRect &Source, const cPoint &Dest)
 
virtual void Copy (const cPixmap *Pixmap, const cRect &Source, const cPoint &Dest)
 
virtual void Scroll (const cPoint &Dest, const cRect &Source=cRect::Null)
 
virtual void Pan (const cPoint &Dest, const cRect &Source=cRect::Null)
 
virtual void MarkViewPortDirty (const cRect &Rect)
 
virtual void SetClean (void)
 

Private Attributes

cOglFbfb
 
std::shared_ptr< cOglThreadoglThread
 
bool dirty
 

Detailed Description

Definition at line 591 of file openglosd.h.

Constructor & Destructor Documentation

◆ cOglPixmap()

cOglPixmap::cOglPixmap ( std::shared_ptr< cOglThread oglThread,
int  Layer,
const cRect &  ViewPort,
const cRect &  DrawPort = cRect::Null 
)

Definition at line 2340 of file openglosd.cpp.

References dirty, fb, LOGWARNING, and oglThread.

◆ ~cOglPixmap()

cOglPixmap::~cOglPixmap ( void  )
virtual

Definition at line 2361 of file openglosd.cpp.

References fb, and oglThread.

Member Function Documentation

◆ Clear()

void cOglPixmap::Clear ( void  )
virtual

Definition at line 2409 of file openglosd.cpp.

References fb, oglThread, and SetDirty().

◆ Copy()

void cOglPixmap::Copy ( const cPixmap *  Pixmap,
const cRect &  Source,
const cPoint &  Dest 
)
virtual

Definition at line 2618 of file openglosd.cpp.

References LOGWARNING.

◆ DrawBitmap()

void cOglPixmap::DrawBitmap ( const cPoint &  Point,
const cBitmap &  Bitmap,
tColor  ColorFg = 0,
tColor  ColorBg = 0,
bool  Overlay = false 
)
virtual

Definition at line 2475 of file openglosd.cpp.

References fb, oglThread, SetDirty(), and cOglFb::Width().

◆ DrawEllipse()

void cOglPixmap::DrawEllipse ( const cRect &  Rect,
tColor  Color,
int  Quadrants = 0 
)
virtual

Definition at line 2586 of file openglosd.cpp.

References fb, oglThread, SetDirty(), and cOglFb::Width().

◆ DrawImage() [1/2]

void cOglPixmap::DrawImage ( const cPoint &  Point,
const cImage &  Image 
)
virtual

Definition at line 2427 of file openglosd.cpp.

References DrawScaledImage().

◆ DrawImage() [2/2]

void cOglPixmap::DrawImage ( const cPoint &  Point,
int  ImageHandle 
)
virtual

Definition at line 2431 of file openglosd.cpp.

References DrawScaledImage().

◆ DrawPixel()

void cOglPixmap::DrawPixel ( const cPoint &  Point,
tColor  Color 
)
virtual

Definition at line 2465 of file openglosd.cpp.

References fb, oglThread, SetDirty(), and cOglFb::Width().

◆ DrawRectangle()

void cOglPixmap::DrawRectangle ( const cRect &  Rect,
tColor  Color 
)
virtual

Definition at line 2572 of file openglosd.cpp.

References fb, oglThread, SetDirty(), and cOglFb::Width().

◆ DrawScaledImage() [1/2]

virtual void cOglPixmap::DrawScaledImage ( const cPoint &  Point,
const cImage &  Image,
double  FactorX = 1.0f,
double  FactorY = 1.0f,
bool  AntiAlias = false 
)
virtual

Referenced by DrawImage().

◆ DrawScaledImage() [2/2]

virtual void cOglPixmap::DrawScaledImage ( const cPoint &  Point,
int  ImageHandle,
double  FactorX = 1.0f,
double  FactorY = 1.0f,
bool  AntiAlias = false 
)
virtual

◆ DrawSlope()

void cOglPixmap::DrawSlope ( const cRect &  Rect,
tColor  Color,
int  Type 
)
virtual

Definition at line 2600 of file openglosd.cpp.

References fb, oglThread, SetDirty(), and cOglFb::Width().

◆ DrawText()

void cOglPixmap::DrawText ( const cPoint &  Point,
const char *  s,
tColor  ColorFg,
tColor  ColorBg,
const cFont *  Font,
int  Width = 0,
int  Height = 0,
int  Alignment = taDefault 
)
virtual

Definition at line 2502 of file openglosd.cpp.

References fb, oglThread, SetDirty(), and cOglFb::Width().

◆ Fb()

cOglFb * cOglPixmap::Fb ( void  )
inline

Definition at line 604 of file openglosd.h.

References fb.

◆ Fill()

void cOglPixmap::Fill ( tColor  Color)
virtual

Definition at line 2418 of file openglosd.cpp.

References fb, oglThread, and SetDirty().

◆ IsDirty()

virtual bool cOglPixmap::IsDirty ( void  )
inlinevirtual

Definition at line 607 of file openglosd.h.

References dirty.

◆ MarkViewPortDirty()

void cOglPixmap::MarkViewPortDirty ( const cRect &  Rect)
virtual

Definition at line 2370 of file openglosd.cpp.

References SetDirty().

◆ Pan()

void cOglPixmap::Pan ( const cPoint &  Dest,
const cRect &  Source = cRect::Null 
)
virtual

Definition at line 2626 of file openglosd.cpp.

References LOGWARNING.

◆ Render()

void cOglPixmap::Render ( const cPixmap *  Pixmap,
const cRect &  Source,
const cPoint &  Dest 
)
virtual

Definition at line 2614 of file openglosd.cpp.

References LOGWARNING.

◆ Scroll()

void cOglPixmap::Scroll ( const cPoint &  Dest,
const cRect &  Source = cRect::Null 
)
virtual

Definition at line 2622 of file openglosd.cpp.

References LOGWARNING.

◆ SetAlpha()

void cOglPixmap::SetAlpha ( int  Alpha)
virtual

Definition at line 2385 of file openglosd.cpp.

References SetDirty().

◆ SetClean()

void cOglPixmap::SetClean ( void  )
virtual

Definition at line 2375 of file openglosd.cpp.

References SetDirty().

◆ SetDirty()

virtual void cOglPixmap::SetDirty ( bool  dirty = true)
inlinevirtual

◆ SetDrawPortPoint()

void cOglPixmap::SetDrawPortPoint ( const cPoint &  Point,
bool  Dirty = true 
)
virtual

Definition at line 2403 of file openglosd.cpp.

References SetDirty().

◆ SetLayer()

void cOglPixmap::SetLayer ( int  Layer)
virtual

Definition at line 2380 of file openglosd.cpp.

References SetDirty().

◆ SetTile()

void cOglPixmap::SetTile ( bool  Tile)
virtual

Definition at line 2393 of file openglosd.cpp.

References SetDirty().

◆ SetViewPort()

void cOglPixmap::SetViewPort ( const cRect &  Rect)
virtual

Definition at line 2398 of file openglosd.cpp.

References SetDirty().

◆ X()

int cOglPixmap::X ( void  )
inline

Definition at line 605 of file openglosd.h.

◆ Y()

int cOglPixmap::Y ( void  )
inline

Definition at line 606 of file openglosd.h.

Member Data Documentation

◆ dirty

bool cOglPixmap::dirty
private

Definition at line 595 of file openglosd.h.

Referenced by cOglPixmap(), IsDirty(), and SetDirty().

◆ fb

cOglFb* cOglPixmap::fb
private

◆ oglThread

std::shared_ptr<cOglThread> cOglPixmap::oglThread
private

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