1
This commit is contained in:
Alex Yatskov 2016-12-31 17:08:04 -08:00
parent a5a0512101
commit ab32598727

16
book.h
View File

@ -24,6 +24,7 @@
#define BOOK_H
#include <stdio.h>
#include <eb/font.h>
/*
* Types
@ -40,12 +41,27 @@ typedef struct {
Book_Block text;
} Book_Entry;
typedef struct {
unsigned char bitmap[EB_SIZE_WIDE_FONT_48];
} Book_Glyph;
typedef struct {
Book_Glyph* glyphs;
int glyph_count;
int glyph_size;
int glyph_wide;
} Book_Font;
typedef struct {
char* title;
Book_Block copyright;
Book_Entry* entries;
int entry_count;
int entry_alloc;
Book_Font* fonts;
int font_count;
} Book_Subbook;
typedef struct {