|
ApertureOS
|
Functions | |
| void | graphics_Initialize (void) |
| Initialize the graphics library. More... | |
| void | graphics_SwapBuffer (void) |
| Copy the backbuffer contents to the display buffer. More... | |
| void | graphics_Clear (void) |
| Clear the backbuffer. More... | |
| void | graphics_SetPixel (uint32_t x, uint32_t y, uint32_t val) |
| Set the value of a pixel. More... | |
| void | graphics_WriteUInt32 (uint32_t val, int base, int xOff, int yOff) |
| Write a uint32_t to the screen. More... | |
| void | graphics_WriteUInt64 (uint64_t val, int base, int xOff, int yOff) |
| Write a uint64_t to the screen. More... | |
| void | graphics_WriteStr (const char *str, int xOff, int yOff) |
| Write a string to the screen. More... | |
| void | graphics_WriteFloat (float val, uint32_t decimalCount, int xOff, int yOff) |
| Write a float to the screen. More... | |
| void | graphics_DrawBuffer (void *buffer, uint32_t x, uint32_t y, uint32_t width, uint32_t height) |
| Draw a buffer to the screen. More... | |
Variables | |
| unsigned char | letters [95][13] |
| A bitmap font. More... | |
| void graphics_Clear | ( | void | ) |
Clear the backbuffer.
| void graphics_DrawBuffer | ( | void * | buffer, |
| uint32_t | x, | ||
| uint32_t | y, | ||
| uint32_t | width, | ||
| uint32_t | height | ||
| ) |
Draw a buffer to the screen.
| buffer | The RGBA source from which to draw |
| x | The X coordinate for the top left corner of the output |
| y | The Y coordinate for the top left corner of the output |
| width | The width of the image to show |
| height | The height of the image to show |
| void graphics_Initialize | ( | void | ) |
Initialize the graphics library.
Note: Requires virtual memory management and FPU
| void graphics_SetPixel | ( | uint32_t | x, |
| uint32_t | y, | ||
| uint32_t | val | ||
| ) |
Set the value of a pixel.
| x | The X pixel position |
| y | The Y pixel position |
| val | The BGRA pixel value |
| void graphics_SwapBuffer | ( | void | ) |
Copy the backbuffer contents to the display buffer.
| void graphics_WriteFloat | ( | float | val, |
| uint32_t | decimalCount, | ||
| int | xOff, | ||
| int | yOff | ||
| ) |
Write a float to the screen.
| val | The value to write |
| decimalCount | The number of decimal places to include |
| xOff | The X coordinate for the top left corner of the output |
| yOff | The Y coordinate for the top left corner of the output |
| void graphics_WriteStr | ( | const char * | str, |
| int | xOff, | ||
| int | yOff | ||
| ) |
Write a string to the screen.
| str | The string to write |
| xOff | The X coordinate for the top left corner of the output |
| yOff | The Y coordinate for the top left corner of the output |
| void graphics_WriteUInt32 | ( | uint32_t | val, |
| int | base, | ||
| int | xOff, | ||
| int | yOff | ||
| ) |
Write a uint32_t to the screen.
| val | The value to write |
| base | The base in which the value should be printed |
| xOff | The X coordinate for the top left corner of the output |
| yOff | The Y coordinate for the top left corner of the output |
| void graphics_WriteUInt64 | ( | uint64_t | val, |
| int | base, | ||
| int | xOff, | ||
| int | yOff | ||
| ) |
Write a uint64_t to the screen.
| val | The value to write |
| base | The base in which the value should be printed |
| xOff | The X coordinate for the top left corner of the output |
| yOff | The Y coordinate for the top left corner of the output |
| unsigned char letters[95][13] |
A bitmap font.
1.8.9.1