coastline 0.0.4
Loading...
Searching...
No Matches
decaldraw.h
Go to the documentation of this file.
1#ifndef COASTLINE_DECALDRAW_H
2#define COASTLINE_DECALDRAW_H
3
13
14#include <PR/ultratypes.h>
15
16#ifdef __cplusplus
17extern "C" {
18#endif
19
32
45u8 ReadPixel4Bit(u8 *texels, s32 x, s32 y);
46
59
71
84void DrawLine4Bit(s32 x0, s32 y0, s32 x1, s32 y1);
85
97void SetPixel4Bit(s32 x, s32 y, u8 color);
98
111void FillRect4Bit(s32 x0, s32 y0, s32 x1, s32 y1);
112
125void StrokeDecalRectangle(s32 x0, s32 y0, s32 x1, s32 y1);
126
139void FillDecalRoundRect(s32 x0, s32 y0, s32 x1, s32 y1);
140
154
167void DrawDecalFilledEllipse(s32 x0, s32 y0, s32 x1, s32 y1);
168
181void DrawDecalEllipseOutline(s32 x0, s32 y0, s32 x1, s32 y1);
182
195void FillCircle4Bit(s32 x, s32 y, s32 radius, u8 fromScreen);
196
209
222void DrawDashedLine(s32 x0, s32 y0, s32 x1, s32 y1);
223
236void DrawDashedRectangle(s32 x0, s32 y0, s32 x1, s32 y1);
237
250void DrawDashedRoundedRect(s32 x0, s32 y0, s32 x1, s32 y1);
251
264void DrawDashedEllipse(s32 x0, s32 y0, s32 x1, s32 y1);
265
277void DrawDashedCircle(s32 x, s32 y, s32 radius);
278
291
302void SwapBytes(u8 *a, u8 *b);
303
320 s32 textureWidth, s32 textureHeight, s32 x, s32 y, s32 width, s32 height);
321
322#ifdef __cplusplus
323}
324#endif
325
326#endif /* COASTLINE_DECALDRAW_H */
void DrawDashedRoundedRect(s32 x0, s32 y0, s32 x1, s32 y1)
Draw the dashed outline of a rectangle with rounded corners.
void StrokeDecalRectangle(s32 x0, s32 y0, s32 x1, s32 y1)
Paint the outline of a rectangle with the brush.
void FillDecalRoundRect(s32 x0, s32 y0, s32 x1, s32 y1)
Fill a rectangle with rounded corners.
void FillRect4Bit(s32 x0, s32 y0, s32 x1, s32 y1)
Fill a rectangle, excluding its far column and row.
void FillCircle4Bit(s32 x, s32 y, s32 radius, u8 fromScreen)
Fill a circle.
void EmitScaledTextureRect(s32 textureWidth, s32 textureHeight, s32 x, s32 y, s32 width, s32 height)
Draw the texture already loaded over a rectangle of the screen, upside down: the decal being edited.
void DrawDecalFilledEllipse(s32 x0, s32 y0, s32 x1, s32 y1)
Fill the ellipse in a rectangle.
void FloodFill4Bit(s32 x, s32 y)
Fill the area of the color under a point with the color painted with.
void DrawDecalTextPreview(s32 x, s32 y)
Draw the text not yet painted on the screen, centered on a point, with its shadow when the text tool ...
void SetPixel4Bit(s32 x, s32 y, u8 color)
Write a texel of the decal being edited, unless it is outside the decal or the mask protects it.
void SwapBytes(u8 *a, u8 *b)
Swap two bytes.
void DrawLine4Bit(s32 x0, s32 y0, s32 x1, s32 y1)
Paint a line with the brush.
void DrawDashedRectangle(s32 x0, s32 y0, s32 x1, s32 y1)
Draw the dashed outline of a rectangle.
u8 GetPixel4Bit(s32 x, s32 y)
Read a texel of the decal being edited.
void DrawDecalCircleOutline(s32 x, s32 y, s32 radius)
Paint the outline of a circle with the brush.
void DrawDashedCircle(s32 x, s32 y, s32 radius)
Draw the dashed outline of a circle, the part over the decal only.
u8 ReadPixel4Bit(u8 *texels, s32 x, s32 y)
Read a texel of a decal the size of the one being edited.
void DrawDecalRoundedRectOutline(s32 x0, s32 y0, s32 x1, s32 y1)
Paint the outline of a rectangle with rounded corners with the brush.
void DrawDashedEllipse(s32 x0, s32 y0, s32 x1, s32 y1)
Draw the dashed outline of the ellipse in a rectangle.
void DrawDashedLine(s32 x0, s32 y0, s32 x1, s32 y1)
Draw the dashed line from the first point of a line to the cursor.
void StampTextOnDecal(s32 x, s32 y)
Paint the text into the decal, centered on a point, with its shadow when the text tool has it.
void DrawDecalEllipseOutline(s32 x0, s32 y0, s32 x1, s32 y1)
Paint the outline of the ellipse in a rectangle with the brush.
Integer and floating-point types of libultra.
int s32
Definition ultratypes.h:25
unsigned char u8
Definition ultratypes.h:18