(Feat): Initial Commit.
This commit is contained in:
44
include/font.h
Normal file
44
include/font.h
Normal file
@@ -0,0 +1,44 @@
|
||||
/**
|
||||
* @file font.h
|
||||
* @brief Bitmap font data for ASCII 3D Renderer
|
||||
* @author ASCII3D Project
|
||||
* @version 1.0.0
|
||||
*/
|
||||
|
||||
#ifndef ASCII3D_FONT_H
|
||||
#define ASCII3D_FONT_H
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief Get the font glyph data for a character
|
||||
* @param c Character to look up (A-Z, a-z, 0-9)
|
||||
* @return Pointer to 7-byte glyph data, or NULL if not found
|
||||
*/
|
||||
const unsigned char *font_get_glyph(char c);
|
||||
|
||||
/**
|
||||
* @brief Check if a pixel is set in a glyph
|
||||
* @param glyph Pointer to glyph data
|
||||
* @param x X coordinate (0-4)
|
||||
* @param y Y coordinate (0-6)
|
||||
* @return true if pixel is set, false otherwise
|
||||
*/
|
||||
bool font_pixel_set(const unsigned char *glyph, int x, int y);
|
||||
|
||||
/**
|
||||
* @brief Check if character is renderable
|
||||
* @param c Character to check
|
||||
* @return true if character can be rendered
|
||||
*/
|
||||
bool font_is_renderable(char c);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* ASCII3D_FONT_H */
|
||||
Reference in New Issue
Block a user