FrameBufferManager Class Reference
#include <FrameBufferManager.h>
![](../class_frame_buffer_manager.png)
# Public Member Functions | |
override bool | onEvent (ListenerObject eventFirer, uint16 eventCode) |
void | reset () |
Reset the manager's state. | |
void | setFrustum (CameraFrustum frustum) |
CameraFrustum | getFrustum () |
void | print (int16 x, int16 y) |
# Static Public Member Functions | |
static bool | drawPoint (PixelVector point, int32 color, uint8 bufferIndex, bool interlaced) |
static bool | drawLine (PixelVector fromPoint, PixelVector toPoint, int32 color, uint8 bufferIndex, bool interlaced) |
static bool | drawCircle (PixelVector center, int16 radius, int32 color, uint8 bufferIndex, bool interlaced) |
static bool | drawX (PixelVector center, int16 length, int32 color, uint8 bufferIndex, bool interlaced) |
static bool | drawCross (PixelVector center, int16 length, int32 color, uint8 bufferIndex, bool interlaced) |
static bool | drawSolidCircle (PixelVector center, int16 radius, int32 color, uint8 bufferIndex, bool interlaced) |
static bool | drawSolidRhumbus (PixelVector center, int16 radius, int32 color, uint8 bufferIndex, bool interlaced) |
# Protected Attributes | |
uint16 | drawnPixelsCounter |
Number of pixels drawn during the current cycle. | |
uint16 | maximumPixelsToDraw |
Maximum number of pixels to draw during each cycle. | |
uint32 | currentDrawingFrameBufferSet |
Frame buffers set using during the current game frame. |
# Additional Inherited Members | |
![]() | |
void | constructor () |
Class' constructor. | |
void | destructor () |
Class' destructor. | |
void | addEventListener (ListenerObject listener, uint16 eventCode) |
void | removeEventListener (ListenerObject listener, uint16 eventCode) |
void | removeEventListeners (uint16 eventCode) |
void | removeAllEventListeners () |
Remove all listener objects. | |
bool | hasActiveEventListeners () |
void | fireEvent (uint16 eventCode) |
void | sendMessageTo (ListenerObject receiver, uint32 message, uint32 delay, uint32 randomDelay) |
void | sendMessageToSelf (uint32 message, uint32 delay, uint32 randomDelay) |
void | discardAllMessages () |
Discard all messages, both to be sent and to be received. | |
void | discardMessages (uint32 message) |
virtual bool | handleMessage (Telegram telegram) |
![]() | |
VirtualList | events |
List of registered events. | |
int8 | eventFirings |
Counter that keeps track of the number of fired events to prevent race conditions in nested firings. |
# Detailed Description
Class FrameBufferManager
Inherits from Object
Implements various draw rutines that manipulate the frame buffers.
Definition at line 39 of file FrameBufferManager.h.
# Member Function Documentation
# drawCircle()
|
static |
Draw a circle.
- Parameters
-
center Circle's center radius Circle's radius color Color of the point to draw (only non black) bufferIndex Buffer set index for interlaced drawing interlaced If true, the drawing is interlaced
- Returns
- True if a pixel was written to the frame buffers
Definition at line 528 of file FrameBufferManager.c.
# drawCross()
|
static |
Draw a cross.
- Parameters
-
center Cross' center length Cross' arms length color Color of the point to draw (only non black) bufferIndex Buffer set index for interlaced drawing interlaced If true, the drawing is interlaced
- Returns
- True if a pixel was written to the frame buffers
Definition at line 750 of file FrameBufferManager.c.
# drawLine()
|
static |
Draw a line.
- Parameters
-
fromPoint Line's starting point toPoint Line's ending point color Color of the point to draw (only non black) bufferIndex Buffer set index for interlaced drawing interlaced If true, the drawing is interlaced
- Returns
- True if a pixel was written to the frame buffers
Definition at line 289 of file FrameBufferManager.c.
# drawPoint()
|
static |
Draw a single point.
- Parameters
-
point Screen coordinate where to draw the point color Color of the point to draw (only non black) bufferIndex Buffer set index for interlaced drawing interlaced If true, the drawing is interlaced
- Returns
- True if a pixel was written to the frame buffers
Definition at line 261 of file FrameBufferManager.c.
# drawSolidCircle()
|
static |
Draw a solid circle.
- Parameters
-
center Circle's center radius Circle's radius color Color of the point to draw (only non black) bufferIndex Buffer set index for interlaced drawing interlaced If true, the drawing is interlaced
- Returns
- True if a pixel was written to the frame buffers
Definition at line 801 of file FrameBufferManager.c.
# drawSolidRhumbus()
|
static |
Draw a solid rhombus.
- Parameters
-
center Rhombus' center radius Rhombus' radius color Color of the point to draw (only non black) bufferIndex Buffer set index for interlaced drawing interlaced If true, the drawing is interlaced
- Returns
- True if a pixel was written to the frame buffers
Definition at line 843 of file FrameBufferManager.c.
# drawX()
|
static |
Draw an X.
- Parameters
-
center X's center length X's arms length color Color of the point to draw (only non black) bufferIndex Buffer set index for interlaced drawing interlaced If true, the drawing is interlaced
- Returns
- True if a pixel was written to the frame buffers
Definition at line 692 of file FrameBufferManager.c.
# getFrustum()
CameraFrustum FrameBufferManager::getFrustum | ( | ) |
Retrieve the frustum where drawing is allowed.
- Returns
- 3D boundary when drawing is allowed
Definition at line 1208 of file FrameBufferManager.c.
# onEvent()
|
virtual |
Process an event that the instance is listen for.
- Parameters
-
eventFirer ListenerObject that signals the event eventCode Code of the firing event
- Returns
- False if the listener has to be removed; true to keep it
Reimplemented from ListenerObject.
Definition at line 1090 of file FrameBufferManager.c.
# print()
Print the manager's current status.
- Parameters
-
x Screen x coordinate where to print y Screen y coordinate where to print
Definition at line 1216 of file FrameBufferManager.c.
# reset()
secure void FrameBufferManager::reset | ( | ) |
Reset the manager's state.
Definition at line 1146 of file FrameBufferManager.c.
# setFrustum()
void FrameBufferManager::setFrustum | ( | CameraFrustum | frustum | ) |
Configure the frustum where drawing is allowed.
- Parameters
-
frustum 3D boundary when drawing is allowed
Definition at line 1158 of file FrameBufferManager.c.
# Member Data Documentation
# currentDrawingFrameBufferSet
|
protected |
Frame buffers set using during the current game frame.
Definition at line 50 of file FrameBufferManager.h.
# drawnPixelsCounter
|
protected |
Number of pixels drawn during the current cycle.
Definition at line 44 of file FrameBufferManager.h.
# maximumPixelsToDraw
|
protected |
Maximum number of pixels to draw during each cycle.
Definition at line 47 of file FrameBufferManager.h.
The documentation for this class was generated from the following files:
- VUEngine-Core/source/Hardware/FrameBufferManager.h
- VUEngine-Core/source/Hardware/FrameBufferManager.c