TinyGPU
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | List of all members
DisplayDriver< RGB_T > Class Template Referenceabstract

Abstract base class for display drivers. More...

#include <DisplayDriver.h>

Inheritance diagram for DisplayDriver< RGB_T >:
Inheritance graph
[legend]

Public Member Functions

virtual ~DisplayDriver ()=default
 
virtual bool begin ()=0
 
virtual void end ()
 
virtual bool writeData (ISurface< RGB_T > &surface)=0
 

Protected Member Functions

virtual bool setAddressWindow (size_t x, size_t y, size_t w, size_t h)=0
 

Detailed Description

template<typename RGB_T = RGB565>
class tinygpu::DisplayDriver< RGB_T >

Abstract base class for display drivers.

Defines the interface for initializing the display, setting the address window, and writing pixel data from a Surface. Specific display drivers (e.g. SPI, SDL) should inherit from this and implement the virtual methods.

Constructor & Destructor Documentation

◆ ~DisplayDriver()

virtual ~DisplayDriver ( )
virtualdefault

Member Function Documentation

◆ begin()

virtual bool begin ( )
pure virtual

◆ end()

virtual void end ( )
inlinevirtual

Reimplemented in DisplayDriverSDL< RGB_T >.

◆ setAddressWindow()

virtual bool setAddressWindow ( size_t  x,
size_t  y,
size_t  w,
size_t  h 
)
protectedpure virtual

◆ writeData()

virtual bool writeData ( ISurface< RGB_T > &  surface)
pure virtual

Implemented in DisplayDriverSDL< RGB_T >.


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