42#include "driver/gpio.h"
44#include "freertos/FreeRTOS.h"
45#include "freertos/queue.h"
117 using VGABaseController::setResolution;
119 void setResolution(
VGATimings const& timings,
int viewPortWidth = -1,
int viewPortHeight = -1,
bool doubleBuffered =
false);
193 void setRawPixel(
int x,
int y, uint8_t rgb) { VGA_PIXEL(x, y) = rgb; }
200 void allocateViewPort();
201 void onSetupDMABuffer(lldesc_t
volatile * buffer,
bool isStartOfVertFrontPorch,
int scan,
bool isVisible,
int visibleRow);
204 void setPixelAt(PixelDesc
const & pixelDesc,
Rect & updateRect);
207 void drawEllipse(
Size const & size,
Rect & updateRect);
210 void clear(
Rect & updateRect);
213 void VScroll(
int scroll,
Rect & updateRect);
216 void HScroll(
int scroll,
Rect & updateRect);
222 void invertRect(
Rect const & rect,
Rect & updateRect);
225 void copyRect(
Rect const & source,
Rect & updateRect);
228 void swapFGBG(
Rect const & rect,
Rect & updateRect);
231 void rawDrawBitmap_Native(
int destX,
int destY,
Bitmap const * bitmap,
int X1,
int Y1,
int XCount,
int YCount);
234 void rawDrawBitmap_Mask(
int destX,
int destY,
Bitmap const * bitmap,
void * saveBackground,
int X1,
int Y1,
int XCount,
int YCount);
237 void rawDrawBitmap_RGBA2222(
int destX,
int destY,
Bitmap const * bitmap,
void * saveBackground,
int X1,
int Y1,
int XCount,
int YCount);
240 void rawDrawBitmap_RGBA8888(
int destX,
int destY,
Bitmap const * bitmap,
void * saveBackground,
int X1,
int Y1,
int XCount,
int YCount);
243 void rawFillRow(
int y,
int x1,
int x2,
RGB888 color);
245 void rawFillRow(
int y,
int x1,
int x2, uint8_t pattern);
247 void rawInvertRow(
int y,
int x1,
int x2);
249 void swapRows(
int yA,
int yB,
int x1,
int x2);
255 int getBitmapSavePixelSize() {
return 1; }
257 static void VSyncInterrupt(
void * arg);
261 static VGAController * s_instance;
263 volatile int16_t m_maxVSyncISRTime;
void suspendBackgroundPrimitiveExecution()
Suspends drawings.
static VGAController * instance()
Returns the singleton instance of VGAController class.
void resumeBackgroundPrimitiveExecution()
Resumes drawings after suspendBackgroundPrimitiveExecution().
NativePixelFormat nativePixelFormat()
Represents the native pixel format used by this display.
void setRawPixel(int x, int y, uint8_t rgb)
Sets a raw pixel prepared using VGAController.createRawPixel.
void readScreen(Rect const &rect, RGB222 *destBuf)
Reads pixels inside the specified rectangle.
void writeScreen(Rect const &rect, RGB222 *srcBuf)
Writes pixels inside the specified rectangle.
Represents the VGA bitmapped controller.
This file contains fabgl::BitmappedDisplayController definition.
This file contains FabGL library configuration settings, like number of supported colors,...
This file contains some utility classes and functions.
NativePixelFormat
This enum defines the display controller native pixel format.
Represents a glyph position, size and binary data.
Represents a 6 bit RGB color.
Represents a 24 bit RGB color.
Represents a bidimensional size.
Specifies the VGA timings. This is a modeline decoded.
This file contains fabgl::GPIOStream definition.
Specifies various glyph painting options.
This file contains fabgl::VGABaseController definition.