From 1fabc50056826ba54ad2a613e5509f3047414cae Mon Sep 17 00:00:00 2001 From: Bad Diode Date: Fri, 28 May 2021 21:05:49 +0200 Subject: Rename source files for flat directory structure --- src/ppu.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 src/ppu.h (limited to 'src/ppu.h') diff --git a/src/ppu.h b/src/ppu.h new file mode 100644 index 0000000..0356b63 --- /dev/null +++ b/src/ppu.h @@ -0,0 +1,30 @@ +#ifndef UXNGBA_PPU_H +#define UXNGBA_PPU_H + +#include +#include + +/* +Copyright (c) 2021 Devine Lu Linvega +Copyright (c) 2021 Andrew Alderwick +Copyright (c) 2021 Bad Diode + +Permission to use, copy, modify, and distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE. +*/ + +typedef struct Ppu { + u32 *bg, *fg; + u16 hor, ver, pad, width, height; +} Ppu; + +int initppu(Ppu *p, u8 hor, u8 ver, u8 pad); +void putcolors(u8 *addr); +void putpixel(u32 *layer, u16 x, u16 y, u8 color); +void puticn(u32 *layer, u16 x, u16 y, u8 *sprite, u8 color, u8 flipx, u8 flipy); +void putchr(u32 *layer, u16 x, u16 y, u8 *sprite, u8 color, u8 flipx, u8 flipy); +#endif // UXNGBA_PPU_H -- cgit v1.2.1