#include <CharSet.h>
Class CharSet
Inherits from ListenerObject
Manages the color data of tile array and writes it to VRAM.
Definition at line 82 of file CharSet.h.
# CharSetROMSpec
# addChar()
void CharSet::addChar |
( |
uint32 | charToAddTo, |
|
|
const uint32 * | newChar ) |
Add the color provided color data to a CHAR.
- Parameters
-
charToAddTo | Index of the CHAR to add to |
newChar | Color data array for the CHAR |
Definition at line 169 of file CharSet.c.
# constructor()
Class' constructor
- Parameters
-
charSetSpec | Spec to use in the construction of the char set |
offset | Offset in CHAR space where the block allocated for this char set starts |
Definition at line 52 of file CharSet.c.
# decreaseUsageCount()
bool CharSet::decreaseUsageCount |
( |
| ) |
|
Decrease the usage count.
Definition at line 92 of file CharSet.c.
# get()
Get a charSet configured with the provided spec.
- Parameters
-
charSetSpec | Spec used to select or initialize a texture with |
- Returns
- CharSet initialized with the provided spec
Definition at line 27 of file CharSet.c.
# getFrame()
Retriev the current frame (frame * number of CHARs + number of CHARs) to write to CHAR memory.
- Returns
- The frame to write to CHAR memory
Definition at line 253 of file CharSet.c.
# getNumberOfChars()
uint16 CharSet::getNumberOfChars |
( |
| ) |
|
Retrieve the number of CHARs used by the char set.
- Returns
- Number of CHARs used by the char set
Definition at line 162 of file CharSet.c.
# getOffset()
Retrieve the offset within CHAR space.
- Returns
- Offset within CHAR space
Definition at line 148 of file CharSet.c.
# getSpec()
Retrieve the spec used in the construction of the char set.
- Returns
- Spec used in the construction of the char set
Definition at line 155 of file CharSet.c.
# getUsageCount()
int8 CharSet::getUsageCount |
( |
| ) |
|
Retrieve the usage count.
- Returns
- Usage count
Definition at line 104 of file CharSet.c.
# hasMultipleFrames()
bool CharSet::hasMultipleFrames |
( |
| ) |
|
Check if the CharSet has a non NULL array of frame offests.
- Returns
- True if the CharSet has an array of animation frames
Definition at line 111 of file CharSet.c.
# increaseUsageCount()
void CharSet::increaseUsageCount |
( |
| ) |
|
Increase the usage count.
Definition at line 85 of file CharSet.c.
# isOptimized()
bool CharSet::isOptimized |
( |
| ) |
|
Check if the char set is optimized.
- Returns
- True if the char set is optimized; false otherwise
Definition at line 125 of file CharSet.c.
# isShared()
bool CharSet::isShared |
( |
| ) |
|
Check if the char set is shared.
- Returns
- True if the char set is share; false otherwise
Definition at line 118 of file CharSet.c.
# putChar()
void CharSet::putChar |
( |
uint32 | charToReplace, |
|
|
const uint32 * | newChar ) |
Replace the color provided color data to a CHAR.
- Parameters
-
charToReplace | Index of the CHAR to replace |
newChar | Color data array for the CHAR |
Definition at line 185 of file CharSet.c.
# putPixel()
void CharSet::putPixel |
( |
const uint32 | charToReplace, |
|
|
const Pixel * | charSetPixel, |
|
|
BYTE | newPixelColor ) |
Replace a pixel in a CHAR.
- Parameters
-
charToReplace | Index of the CHAR to replace |
charSetPixel | Coordinate in CHAR space of the CHAR to replace |
newPixelColor | Color data for the pixel |
Definition at line 200 of file CharSet.c.
# release()
Release a charSet.
- Parameters
-
- Returns
- True if the char set is successfully deleted; false otherwise
Definition at line 41 of file CharSet.c.
# setFrame()
void CharSet::setFrame |
( |
uint16 | frame | ) |
|
Set the current frame (frame * number of CHARs + number of CHARs) to write to CHAR memory.
- Parameters
-
frame | The frame to write to CHAR memory |
Definition at line 227 of file CharSet.c.
# setOffset()
void CharSet::setOffset |
( |
uint16 | offset | ) |
|
Set the offset within CHAR space.
- Parameters
-
offset | Offset within CHAR space |
Definition at line 132 of file CharSet.c.
# write()
Write the tile graphical data to VRAM.
Definition at line 260 of file CharSet.c.
# charSetSpec
Spec used in the construction of the char set.
Definition at line 87 of file CharSet.h.
# frame
Indicator of the block inside the tiles array to write to DRAM.
Definition at line 93 of file CharSet.h.
# offset
Offset in CHAR space where the block allocated for this char set starts.
Definition at line 96 of file CharSet.h.
# tilesDisplacement
uint32 CharSet::tilesDisplacement |
|
protected |
# usageCount
Number of references to this char set instance.
Definition at line 102 of file CharSet.h.
# written
If true the graphical data is written to VRAM; false otherwise.
Definition at line 99 of file CharSet.h.
The documentation for this class was generated from the following files:
- VUEngine-Core/source/Component/VisualComponent/Sprite/Texture/CharSet/CharSet.h
- VUEngine-Core/source/Component/VisualComponent/Sprite/Texture/CharSet/CharSet.c