|
wavelength 1.0.0
|
Base of the platform renderer, the owner of the display and of the frame. More...
#include <rndrenderer.h>


Public Member Functions | |
| RndRenderer () | |
| Set an opaque grey of 0.3, a display of 640 by 480 at 16 bits, and a timer ceiling of 50. | |
| virtual void | Init () |
| Read the rnd section of the configuration. | |
| virtual void | Terminate () |
| Shut down the display. | |
| virtual void | SetClearColor (const Color &color) |
| Set the colour the frame is cleared to. | |
| virtual void | SetShowTimers (int bShow, int nMaxMs) |
| Show or hide the timer overlay. | |
| virtual void | SetShowStats (int bShow) |
| Show or hide the statistics overlay. | |
| virtual void | SetShowRate (int bShow) |
| Show or hide the frame rate overlay. | |
| virtual void | DumpStats () |
| Write the drawing statistics. | |
| virtual void | ScreenDump (const char *pszName) |
| Save the frame to an image file. | |
| virtual void | DrawRect (const Rect &rect, const Color &color) |
| Fill a rectangle of the screen. | |
| virtual float | DrawString (const char *pszText, const Vector2 &pos, const Vector2 &charSize, const Color &color) |
| Draw text with the line font. | |
| virtual void | BeginFrame () |
| Open a frame. | |
| virtual void | EndFrame () |
| Close the frame BeginFrame() opened and present it. | |
| virtual void | ClearAndFlip () |
| Clear the back buffer and present it outside a frame. | |
| virtual void | RestoreFrameBufferTarget () |
| Point drawing at the back buffer again. | |
| virtual float | AspectRatio () |
| Report the height of a pixel relative to its width. | |
| virtual bool | SupportsTextures () |
| Report whether the renderer reads texture files. | |
| const Color & | GetClearColor () const |
| int | GetFrameCount () const |
| int | GetScreenHeight () const |
| int | GetScreenWidth () const |
| int | GetTimerMaxMs () const |
Protected Attributes | |
| Color | mClearColor |
| int | mScreenWidth |
| int | mScreenHeight |
| int | mScreenBpp |
| int | mTimerMaxMs |
| int | mFrameCount |
| int | mShowTimers |
| int | mShowStats |
| int | mShowRate |
Base of the platform renderer, the owner of the display and of the frame.
The RTTI includes the class name. Ps is the one subclass, and its single instance at 0x0043ba00 is the renderer TheRnd addresses. Most of the base bodies are empty.
| RndRenderer::RndRenderer | ( | ) |
Set an opaque grey of 0.3, a display of 640 by 480 at 16 bits, and a timer ceiling of 50.
|
virtual |
Read the rnd section of the configuration.
The section sets the display size and depth, the overlays, and the clear colour.
Reimplemented in Ps.
|
virtual |
Shut down the display.
The base body is empty.
Reimplemented in Ps.
|
virtual |
Set the colour the frame is cleared to.
| color | The colour. |
Reimplemented in Ps.
|
virtual |
Show or hide the timer overlay.
| bShow | Non-zero to show the overlay. |
| nMaxMs | The time the overlay's scale spans, in milliseconds. |
|
virtual |
Show or hide the statistics overlay.
| bShow | Non-zero to show the overlay. |
|
virtual |
Show or hide the frame rate overlay.
| bShow | Non-zero to show the overlay. |
|
virtual |
Write the drawing statistics.
The base body is empty.
Reimplemented in Ps.
|
virtual |
Save the frame to an image file.
The base body is empty.
| pszName | The base name of the file. |
Reimplemented in Ps.
Fill a rectangle of the screen.
The base body is empty.
| rect | The rectangle in pixels. |
| color | The colour. |
Reimplemented in Ps.
|
virtual |
Draw text with the line font.
The base body draws nothing and reports the top of the text.
| pszText | The text. A newline starts a line. |
| pos | The top left corner in pixels. |
| charSize | The size of a character in pixels. |
| color | The colour. |
Reimplemented in Ps.
|
virtual |
Open a frame.
The base body counts the frame in mFrameCount.
Reimplemented in Ps.
|
virtual |
Close the frame BeginFrame() opened and present it.
The base body is empty.
Reimplemented in Ps.
|
virtual |
Clear the back buffer and present it outside a frame.
The base body is empty. The name is inferred.
Reimplemented in Ps.
|
virtual |
Point drawing at the back buffer again.
The base body is empty. The name is inferred.
Reimplemented in Ps.
|
virtual |
Report the height of a pixel relative to its width.
The base reports the display height over the display width.
Reimplemented in Ps.
|
virtual |
Report whether the renderer reads texture files.
The base reports false. The name is inferred.
Reimplemented in Ps.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |
Colour the frame is cleared to.
|
protected |
Display width in pixels.
|
protected |
Display height in pixels.
|
protected |
Display depth in bits per pixel.
|
protected |
Time the timer overlay's scale spans, in milliseconds.
|
protected |
Frames opened by BeginFrame().
|
protected |
Non-zero to show the timer overlay.
|
protected |
Non-zero to show the statistics overlay.
|
protected |
Non-zero to show the frame rate overlay.