bresenham.h

来自「Simple Cube plotting using frame buffers」· C头文件 代码 · 共 17 行

H
17
字号
#ifndef BRESENHAM_H_#define BRESENHAM_H_#ifdef __cplusplusextern "C" {	void setPixel(uint32_t* surface, uint32_t x,  uint32_t y, uint32_t stride);	void drawLine(uint32_t* surface, uint32_t x1, uint32_t y1, uint32_t x2, uint32_t y2, uint32_t stride);}#endif#ifndef __cplusplus	void setPixel(uint32_t* restrict surface, uint32_t x,  uint32_t y, uint32_t stride);	void drawLine(uint32_t* restrict surface, uint32_t x1, uint32_t y1, uint32_t x2, uint32_t y2, uint32_t stride);#endif	#endif /*BRESENHAM_H_*/

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?