AERMRE 1.5.1
AER modding framework for Hyper Light Drifter.
draw.h
Go to the documentation of this file.
1
36#ifndef AER_DRAW_H
37#define AER_DRAW_H
38
39#include <stdbool.h>
40#include <stdint.h>
41
42/* ----- PUBLIC FUNCTIONS ----- */
43
60
74void AERDrawSetCurrentAlpha(float alpha);
75
96void AERDrawSprite(int32_t spriteIdx,
97 uint32_t frame,
98 float x,
99 float y,
100 float scale,
101 uint32_t blend);
102
140void AERDrawSpriteAdv(int32_t spriteIdx,
141 uint32_t frame,
142 int32_t left,
143 int32_t top,
144 int32_t width,
145 int32_t height,
146 float x,
147 float y,
148 float scaleX,
149 float scaleY,
150 float angle,
151 uint32_t blendNW,
152 uint32_t blendNE,
153 uint32_t blendSE,
154 uint32_t blendSW,
155 float alpha);
156
173void AERDrawLine(float x1, float y1, float x2, float y2, uint32_t color);
174
197void AERDrawLineAdv(float x1,
198 float y1,
199 float x2,
200 float y2,
201 float width,
202 uint32_t color1,
203 uint32_t color2);
204
223void AERDrawEllipse(float left,
224 float top,
225 float right,
226 float bottom,
227 uint32_t color,
228 bool outline);
229
253void AERDrawEllipseAdv(float left,
254 float top,
255 float right,
256 float bottom,
257 uint32_t colorCenter,
258 uint32_t colorEdge,
259 bool outline);
260
281void AERDrawTriangle(float x1,
282 float y1,
283 float x2,
284 float y2,
285 float x3,
286 float y3,
287 uint32_t color,
288 bool outline);
289
317void AERDrawTriangleAdv(float x1,
318 float y1,
319 float x2,
320 float y2,
321 float x3,
322 float y3,
323 uint32_t color1,
324 uint32_t color2,
325 uint32_t color3,
326 bool outline);
327
346void AERDrawRectangle(float left,
347 float top,
348 float right,
349 float bottom,
350 uint32_t color,
351 bool outline);
352
380void AERDrawRectangleAdv(float left,
381 float top,
382 float right,
383 float bottom,
384 uint32_t colorNW,
385 uint32_t colorNE,
386 uint32_t colorSE,
387 uint32_t colorSW,
388 bool outline);
389
412void AERDrawText(const char* text,
413 float x,
414 float y,
415 uint32_t width,
416 float scale,
417 uint32_t color);
418
459void AERDrawTextAdv(const char* text,
460 float x,
461 float y,
462 int32_t height,
463 uint32_t width,
464 float scaleX,
465 float scaleY,
466 float angle,
467 uint32_t colorNW,
468 uint32_t colorNE,
469 uint32_t colorSE,
470 uint32_t colorSW,
471 float alpha);
472
473#endif /* AER_DRAW_H */
void AERDrawLine(float x1, float y1, float x2, float y2, uint32_t color)
Draw a line to the screen.
void AERDrawSetCurrentAlpha(float alpha)
Set the current global draw alpha.
void AERDrawSpriteAdv(int32_t spriteIdx, uint32_t frame, int32_t left, int32_t top, int32_t width, int32_t height, float x, float y, float scaleX, float scaleY, float angle, uint32_t blendNW, uint32_t blendNE, uint32_t blendSE, uint32_t blendSW, float alpha)
Draw a sprite to the screen.
void AERDrawEllipseAdv(float left, float top, float right, float bottom, uint32_t colorCenter, uint32_t colorEdge, bool outline)
Draw an ellipse to the screen.
void AERDrawRectangle(float left, float top, float right, float bottom, uint32_t color, bool outline)
Draw a rectangle to the screen.
void AERDrawLineAdv(float x1, float y1, float x2, float y2, float width, uint32_t color1, uint32_t color2)
Draw a line to the screen.
void AERDrawTriangleAdv(float x1, float y1, float x2, float y2, float x3, float y3, uint32_t color1, uint32_t color2, uint32_t color3, bool outline)
Draw a triangle to the screen.
float AERDrawGetCurrentAlpha(void)
Query the current global draw alpha.
void AERDrawText(const char *text, float x, float y, uint32_t width, float scale, uint32_t color)
Draw text to the screen.
void AERDrawSprite(int32_t spriteIdx, uint32_t frame, float x, float y, float scale, uint32_t blend)
Draw a sprite to the screen.
void AERDrawEllipse(float left, float top, float right, float bottom, uint32_t color, bool outline)
Draw an ellipse to the screen.
void AERDrawTriangle(float x1, float y1, float x2, float y2, float x3, float y3, uint32_t color, bool outline)
Draw a triangle to the screen.
void AERDrawRectangleAdv(float left, float top, float right, float bottom, uint32_t colorNW, uint32_t colorNE, uint32_t colorSE, uint32_t colorSW, bool outline)
Draw a rectangle to the screen.
void AERDrawTextAdv(const char *text, float x, float y, int32_t height, uint32_t width, float scaleX, float scaleY, float angle, uint32_t colorNW, uint32_t colorNE, uint32_t colorSE, uint32_t colorSW, float alpha)
Draw text to the screen.