libc8
CHIP-8 utility library
Loading...
Searching...
No Matches
graphics.c File Reference
#include "graphics.h"
#include "private/exception.h"
#include <stdio.h>

Functions

uint8_t * c8_get_pixel (C8_Display *display, int x, int y)
 Get the value of (x,y) from display
 

Detailed Description

Backend-agnostic graphics-related functions

Function Documentation

◆ c8_get_pixel()

uint8_t * c8_get_pixel ( C8_Display display,
int  x,
int  y 
)

Get the value of (x,y) from display

Parameters
displayC8_Display to get pixel from
xthe x value
ythe y value
Returns
pointer to value of (x,y) in display