Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * File: rasterizer.h
- * Author: oink
- *
- * Created on November 26, 2014, 11:59 AM
- */
- #ifndef RASTERIZER_H
- #define RASTERIZER_H
- #ifdef __cplusplus
- extern "C" {
- #endif
- #include <3ds.h>
- #define RGB8(r, g, b) (u32)((((r) & 0xFF) << 8) | (((g) & 0xFF) << 16) | (((b) & 0xFF) << 24) | (0x00 << 0))
- void clearFrameBuffer(u8 *fb, u32 color);
- void pixel2D(u8* fb, u16 x, u16 y, u32 color);
- void fillBox2D(u8* fb, u16 x1, u16 x2, u16 w, u16 h, u32 color);
- void box2D(u8* fb, u16 x1, u16 x2, u16 w, u16 h, u32 color);
- void line2D(u8* fb, u16 x1, u16 y1, u16 x2, u16 y2, u32 color);
- #ifdef __cplusplus
- }
- #endif
- #endif /* RASTERIZER_H */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement