2022-06-02 10:16:25 +02:00
|
|
|
#ifndef __VHEX_DISPLAY_DRAW_PIXEL__
|
|
|
|
# define __VHEX_DISPLAY_DRAW_PIXEL__
|
|
|
|
|
|
|
|
#include <vhex/display/types.h>
|
|
|
|
#include <vhex/display/shader.h>
|
|
|
|
|
|
|
|
//---
|
|
|
|
// User-level API
|
|
|
|
//---
|
|
|
|
|
|
|
|
/* dpixel() : draw a pixel in screen */
|
2022-06-10 21:28:51 +02:00
|
|
|
extern void dpixel(int x, int y, int color);
|
2022-06-02 10:16:25 +02:00
|
|
|
|
|
|
|
//---
|
|
|
|
// Kernel-level API
|
|
|
|
//---
|
|
|
|
|
|
|
|
/* dpixel_render() : drawing algorithm */
|
2022-06-15 20:40:43 +02:00
|
|
|
extern void dpixel_render(dsurface_t *surface, int x, int y, int c);
|
2022-06-02 10:16:25 +02:00
|
|
|
|
|
|
|
#endif /* __VHEX_DISPLAY_DRAW_PIXEL__ */
|