|
JubeatPlus 3.9.11
|
Draws hold markers from a sixteen-entry panel array. More...
#include <HoldMarkerRender.h>


Instance Methods | |
| (instancetype) | - init:isPad:gameAreaDelay: |
| Builds a renderer bound to a texture. | |
| (void) | - renderHoldLine:start:vector:trans:alpha:frame:addLength: |
| Draws one hold tail between two panels. | |
| (void) | - renderHoldMarker: |
| Draws every panel's hold marker. | |
| (void) | - renderHoldMarker:end: |
| Draws one panel's hold marker. | |
Draws hold markers from a sixteen-entry panel array.
| - (instancetype) init: | (nullable Texture2D *) | tex | |
| isPad: | (BOOL) | isPad | |
| gameAreaDelay: | (int) | gameAreaDelay |
Builds a renderer bound to a texture.
| tex | The sprite sheet to draw from. Held weakly — the store is objc_storeWeak , not objc_storeStrong , which the ivar's own encoding does not record. |
| isPad | Whether to use the pad's metrics. |
| gameAreaDelay | The play area's frame delay. |
| - (void) renderHoldLine: | (CGPoint) | endPoint | |
| start: | (CGPoint) | startPoint | |
| vector: | (int) | vector | |
| trans: | (char) | trans | |
| alpha: | (float) | alpha | |
| frame: | (int) | frame | |
| addLength: | (int) | addLength |
Draws one hold tail between two panels.
The tail runs either vertically or horizontally depending on vector , and the rectangle is built differently in each of the four arms. **An out-of-range vector draws with uninitialised geometry** rather than drawing nothing; see TYPES_PENDING.md.
| endPoint | The tail's leading point. The selector leaves this argument unnamed; the caller passes the marker's own panel here and the far end as start: , which is the reverse of what the keyword suggests. |
| startPoint | The other end. |
| vector | Which of the four directions the tail runs in. Only 0 to 3 are handled. |
| trans | The texture transform. |
| alpha | The opacity. |
| frame | Which sprite of the tail animation to draw. |
| addLength | How far past the panel the tail extends. |
| - (void) renderHoldMarker: | (nullable HoldMarkerInfo *) | markers |
Draws every panel's hold marker.
| markers | A sixteen-entry array, one per panel of the grid. |
| - (void) renderHoldMarker: | (HoldMarkerInfo) | marker | |
| end: | (int) | end |
Draws one panel's hold marker.
Three states draw: pressed, retracting and released. A zero state draws nothing at all.
| marker | The panel's state, passed by value. |
| end | The panel's index, 0 to 15. |