PrintingSprite Class Reference
#include <PrintingSprite.h>
![](../class_printing_sprite.png)
# Public Types | |
typedef const PrintingSpriteSpec | PrintingSpriteROMSpec |
# Public Member Functions | |
void | constructor (Entity owner, const PrintingSpriteSpec *printingSpriteSpec) |
override int16 | doRender (int16 index) |
void | reset () |
Reset the sprite's rendering configuration. | |
void | setPrintingBgmapSegment (int8 printingBgmapSegment) |
void | setGValues (int16 gx, int16 gy, int16 gp) |
void | setMValues (int16 mx, int16 my, int16 mp) |
void | setSize (uint16 width, uint16 height) |
# Private Attributes | |
int8 | printingBgmapSegment |
BGMAP segment used for printing. | |
![]() | |
int16 | paramTableRow |
Offset that keeps track of where to continue writing in param table. | |
uint32 | param |
ParamTableEffectMethod | applyParamTableEffect |
Pointer to function that implements the param table based effects. | |
BgmapTextureSource | bgmapTextureSource |
Texture's configuration in BGMAP space. |
# Additional Inherited Members | |
![]() | |
typedef const BgmapSpriteSpec | BgmapSpriteROMSpec |
![]() | |
void | constructor (Entity owner, const BgmapSpriteSpec *bgmapSpriteSpec) |
override bool | onEvent (ListenerObject eventFirer, uint16 eventCode) |
override ClassPointer | getBasicType () |
override void | loadTexture (ClassPointer textureClass, bool listenForRewriting) |
override bool | hasSpecialEffects () |
override void | processEffects (int32 maximumParamTableRowsToComputePerCall) |
override void | setMultiframe (uint16 frame) |
override void | setRotation (const Rotation *rotation) |
override void | setScale (const PixelScale *scale) |
override int32 | getTotalPixels () |
void | configureTexture () |
Configure the sprite's texture. | |
void | setMode (uint16 display, uint16 mode) |
void | setParam (uint32 param) |
uint32 | getParam () |
int16 | getParamTableRow () |
void | invalidateParamTable () |
Force the rewrite of the sprite's param table during the next rendering cycle. | |
bool | onTextureRewritten (ListenerObject eventFirer) |
void | applyAffineTransformations () |
Start rewriting the sprite's param table for affine transformations. | |
void | applyHbiasEffects () |
Start rewriting the sprite's param table for hbias effects. |
# Detailed Description
Class BgmapTexture
Inherits from Texture
Enables the Printer class to output text to the screen.
Definition at line 45 of file PrintingSprite.h.
# Member Typedef Documentation
# PrintingSpriteROMSpec
typedef const PrintingSpriteSpec PrintingSpriteROMSpec |
A PrintingSprite spec that is stored in ROM
Definition at line 34 of file PrintingSprite.h.
# Member Function Documentation
# constructor()
void PrintingSprite::constructor | ( | Entity | owner, |
const PrintingSpriteSpec * | printingSpriteSpec ) |
Definition at line 28 of file PrintingSprite.c.
# doRender()
Render the sprite by configuring the DRAM assigned to it by means of the provided index.
- Parameters
-
index Determines the region of DRAM that this sprite is allowed to configure
- Returns
- The index that determines the region of DRAM that this sprite manages
Reimplemented from BgmapSprite.
Definition at line 51 of file PrintingSprite.c.
# reset()
void PrintingSprite::reset | ( | ) |
Reset the sprite's rendering configuration.
Definition at line 70 of file PrintingSprite.c.
# setGValues()
Set the G values to be written to the WORLD's entry mananged by the sprite.
- Parameters
-
gx GX coordinate of the WORLD used to display the text gy GY coordinate of the WORLD used to display the text gp GP coordinate of the WORLD used to display the text
Definition at line 100 of file PrintingSprite.c.
# setMValues()
Set the M values to be written to the WORLD's entry mananged by the sprite.
- Parameters
-
mx MX coordinate of BGMAP area to be used to display the text my MY coordinate of BGMAP area to be used to display the text mp MP coordinate of BGMAP area to be used to display the text
Definition at line 111 of file PrintingSprite.c.
# setPrintingBgmapSegment()
void PrintingSprite::setPrintingBgmapSegment | ( | int8 | printingBgmapSegment | ) |
Set the BGMAP segment used for printing.
- Parameters
-
printingBgmapSegment BGMAP segment to use for printing
Definition at line 88 of file PrintingSprite.c.
# setSize()
Set the size of the WORLD to by used to display the text
- Parameters
-
width Width of the WORLD to by used to display the text height Height of the WORLD to by used to display the text
Definition at line 120 of file PrintingSprite.c.
# Member Data Documentation
# printingBgmapSegment
|
private |
BGMAP segment used for printing.
Definition at line 48 of file PrintingSprite.h.
The documentation for this class was generated from the following files:
- VUEngine-Core/source/Component/VisualComponent/Sprite/BgmapSprite/PrintingSprite/PrintingSprite.h
- VUEngine-Core/source/Component/VisualComponent/Sprite/BgmapSprite/PrintingSprite/PrintingSprite.c