coastline 0.0.4
Loading...
Searching...
No Matches
screendraw.h
Go to the documentation of this file.
1#ifndef COASTLINE_SCREENDRAW_H
2#define COASTLINE_SCREENDRAW_H
3
4#include "common/types.h"
5
6#ifdef __cplusplus
7extern "C" {
8#endif
9
23void ClearScreen(s32 red, s32 green, s32 blue);
24
40void SetViewport(s32 x, s32 y, s32 width, s32 height, s32 setScissor);
41
57void SetupViewportAndScissor(s32 x, s32 y, s32 width, s32 height, s32 setScissor);
58
70
85void SetScissorRect(s32 x, s32 y, s32 width, s32 height);
86
98
116void DrawFilledRect(s32 x, s32 y, s32 width, s32 height, s32 red, s32 green, s32 blue);
117
132void DrawRdpOutlineRect(s32 x, s32 y, s32 width, s32 height);
133
149void DrawRdpBorderRect(s32 x, s32 y, s32 width, s32 height);
150
151#ifdef __cplusplus
152}
153#endif
154
155#endif /* COASTLINE_SCREENDRAW_H */
s32 g_dwScreenScaleShift
The shift from the size of the frame to the size of the frame buffer, 1 in high resolution.
void DrawRdpBorderRect(s32 x, s32 y, s32 width, s32 height)
Frame a rectangle of the screen, such as the rear-view mirror, with a dark border and light rings.
void RestoreCurrentViewport(void)
Load the viewport of the view being drawn again.
void SetupViewportAndScissor(s32 x, s32 y, s32 width, s32 height, s32 setScissor)
Set the scissor to a rectangle, and the viewport to the whole frame buffer (320 by 240 on N64).
void ClearScreen(s32 red, s32 green, s32 blue)
Add a fill of the whole frame with a colour to the display list.
void SetScissorRect(s32 x, s32 y, s32 width, s32 height)
Limit drawing to a rectangle, clipped to the frame.
void DrawFilledRect(s32 x, s32 y, s32 width, s32 height, s32 red, s32 green, s32 blue)
Fill a rectangle of the screen with a colour.
void SetViewport(s32 x, s32 y, s32 width, s32 height, s32 setScissor)
Set the view to a rectangle of the screen, and the scissor to it as well if asked.
void DrawRdpOutlineRect(s32 x, s32 y, s32 width, s32 height)
Outline a rectangle of the screen with lines a pixel wide on N64.
The integer and floating-point types of the console, for headers shared with Windows.
int s32
Definition ultratypes.h:25