ApertureOS
Functions | Variables
graphics.c File Reference
#include "graphics.h"
#include "managers.h"
#include "utils/common.h"
#include "globals.h"
#include "font.h"
Include dependency graph for graphics.c:

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_WriteStr (const char *str, int yOff, int xOff)
 Write a string to the screen. 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_WriteFloat (float val, uint32_t decimalCount, int xOff, int yOff)
 Write a float to the screen. More...
 
void graphics_SetPixel (uint32_t x, uint32_t y, uint32_t val)
 Set the value of a pixel. More...
 
void graphics_DrawBuffer (void *buffer, uint32_t x, uint32_t y, uint32_t w, uint32_t h)
 Draw a buffer to the screen. More...
 

Variables

char * frameBufferA
 
char * frameBufferB
 
uint32_t * backBuffer
 
size_t buffer_size
 
uint32_t pitch
 
uint32_t width
 
uint32_t height
 
uint8_t bpp
 
char tmpBuf [16]
 

Variable Documentation

uint32_t* backBuffer
uint8_t bpp
size_t buffer_size
char* frameBufferA
char * frameBufferB
uint32_t height
uint32_t pitch
char tmpBuf[16]
uint32_t width