mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-25 16:50:50 +01:00
Kandinsky now uses KDSetPixel for framebuffer access
This commit is contained in:
@@ -3,8 +3,8 @@
|
||||
|
||||
#include <kandinsky/color.h>
|
||||
#include <kandinsky/line.h>
|
||||
#include <kandinsky/pixel.h>
|
||||
#include <kandinsky/rect.h>
|
||||
#include <kandinsky/referential.h>
|
||||
#include <kandinsky/text.h>
|
||||
#include <kandinsky/types.h>
|
||||
|
||||
|
||||
@@ -4,18 +4,18 @@
|
||||
#include <stdint.h>
|
||||
#include <kandinsky/config.h>
|
||||
|
||||
#if (KD_BITS_PER_PIXEL & (KD_BITS_PER_PIXEL - 1))
|
||||
#error KD_BITS_PER_PIXEL should be a power of two!
|
||||
// PoT implies that all pixels are byte-aligned
|
||||
#endif
|
||||
#if KD_BITS_PER_PIXEL <= 8
|
||||
#warning KD_BITS_PER_PIXEL
|
||||
#warning 8 bpp
|
||||
typedef uint8_t KDColor;
|
||||
/*
|
||||
#elif KD_BITS_PER_PIXEL <= 16
|
||||
#elif KD_BITS_PER_PIXEL == 16
|
||||
typedef uint16_t KDColor;
|
||||
#elif KD_BITS_PER_PIXEL <= 32
|
||||
#elif KD_BITS_PER_PIXEL == 32
|
||||
typedef uint32_t KDColor;
|
||||
#elif KD_BITS_PER_PIXEL <= 64
|
||||
#elif KD_BITS_PER_PIXEL == 64
|
||||
typedef uint64_t KDColor;
|
||||
*/
|
||||
#else
|
||||
#error KD_BITS_PER_PIXEL is too large!
|
||||
#endif
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
#ifndef KANDINSKY_LINE_H
|
||||
#define KANDINSKY_LINE_H
|
||||
|
||||
#include <kandinsky/color.h>
|
||||
#include <kandinsky/types.h>
|
||||
|
||||
void KDDrawLine(KDPoint p1, KDPoint p2);
|
||||
void KDDrawLine(KDPoint p1, KDPoint p2);//, KDColor c);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user