38 #include "rom/lldesc.h" 39 #include "driver/gpio.h" 41 #include "freertos/FreeRTOS.h" 42 #include "freertos/queue.h" 114 using VGABaseController::setResolution;
116 void setResolution(
VGATimings const& timings,
int viewPortWidth = -1,
int viewPortHeight = -1,
bool doubleBuffered =
false);
181 void allocateViewPort();
182 void onSetupDMABuffer(lldesc_t
volatile * buffer,
bool isStartOfVertFrontPorch,
int scan,
bool isVisible,
int visibleRow);
185 void setPixelAt(PixelDesc
const & pixelDesc,
Rect & updateRect);
188 void drawEllipse(
Size const & size,
Rect & updateRect);
191 void clear(
Rect & updateRect);
194 void VScroll(
int scroll,
Rect & updateRect);
197 void HScroll(
int scroll,
Rect & updateRect);
203 void invertRect(
Rect const & rect,
Rect & updateRect);
206 void copyRect(
Rect const & source,
Rect & updateRect);
209 void swapFGBG(
Rect const & rect,
Rect & updateRect);
212 void rawDrawBitmap_Native(
int destX,
int destY,
Bitmap const * bitmap,
int X1,
int Y1,
int XCount,
int YCount);
215 void rawDrawBitmap_Mask(
int destX,
int destY,
Bitmap const * bitmap,
void * saveBackground,
int X1,
int Y1,
int XCount,
int YCount);
218 void rawDrawBitmap_RGBA2222(
int destX,
int destY,
Bitmap const * bitmap,
void * saveBackground,
int X1,
int Y1,
int XCount,
int YCount);
221 void rawDrawBitmap_RGBA8888(
int destX,
int destY,
Bitmap const * bitmap,
void * saveBackground,
int X1,
int Y1,
int XCount,
int YCount);
224 void rawFillRow(
int y,
int x1,
int x2,
RGB888 color);
226 void rawFillRow(
int y,
int x1,
int x2, uint8_t pattern);
228 void rawInvertRow(
int y,
int x1,
int x2);
230 void swapRows(
int yA,
int yB,
int x1,
int x2);
236 int getBitmapSavePixelSize() {
return 1; }
238 static void VSyncInterrupt(
void * arg);
242 static VGAController * s_instance;
244 volatile int16_t m_maxVSyncISRTime;
Represents a 24 bit RGB color.
This file contains fabgl::VGABaseController definition.
NativePixelFormat nativePixelFormat()
Represents the native pixel format used by this display.
This file contains fabgl::GPIOStream definition.
This file contains fabgl::BitmappedDisplayController definition.
Specifies the VGA timings. This is a modeline decoded.
Represents a glyph position, size and binary data.
This file contains some utility classes and functions.
void suspendBackgroundPrimitiveExecution()
Suspends drawings.
NativePixelFormat
This enum defines the display controller native pixel format.
Specifies various glyph painting options.
void resumeBackgroundPrimitiveExecution()
Resumes drawings after suspendBackgroundPrimitiveExecution().
Represents the VGA bitmapped controller.
This file contains FabGL library configuration settings, like number of supported colors...
static VGAController * instance()
Returns the singleton instance of VGAController class.
Represents a bidimensional size.
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 a 6 bit RGB color.