OpenCores
URL https://opencores.org/ocsvn/orsoc_graphics_accelerator/orsoc_graphics_accelerator/trunk

Subversion Repositories orsoc_graphics_accelerator

[/] [orsoc_graphics_accelerator/] [trunk/] [sw/] [drivers/] [gfx/] [bare/] [orgfx_bitmap_font.h] - Blame information for rev 5

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 5 maiden
/*
2
Bare metal OpenCores GFX IP driver for Wishbone bus.
3
 
4
Anton Fosselius, Per Lenander 2012
5
  */
6
 
7
#ifndef ORGFX_BITMAP_FONT_H
8
#define ORGFX_BITMAP_FONT_H
9
 
10
#include "orgfx_tileset.h"
11
#include <wchar.h>
12
 
13
typedef struct orgfx_bitmap_font
14
{
15
    orgfx_tileset *glyphs;
16
    unsigned int glyphSpacing;
17
    unsigned int spaceWidth;
18
} orgfx_bitmap_font;
19
 
20
orgfx_bitmap_font orgfx_make_bitmap_font(orgfx_tileset* glyphs,
21
                                         unsigned int glyphSpacing,
22
                                         unsigned int spaceWidth);
23
 
24
void orgfx_put_bitmap_text(orgfx_bitmap_font* font,
25
                           unsigned int x0, unsigned int y0,
26
                           const wchar_t *str);
27
 
28
#endif // orgfx_BITMAP_FONT_H

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.