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] - Rev 5

Compare with Previous | Blame | View Log

/*
Bare metal OpenCores GFX IP driver for Wishbone bus.
 
Anton Fosselius, Per Lenander 2012
  */
 
#ifndef ORGFX_BITMAP_FONT_H
#define ORGFX_BITMAP_FONT_H
 
#include "orgfx_tileset.h"
#include <wchar.h>
 
typedef struct orgfx_bitmap_font
{
    orgfx_tileset *glyphs;
    unsigned int glyphSpacing;
    unsigned int spaceWidth;
} orgfx_bitmap_font;
 
orgfx_bitmap_font orgfx_make_bitmap_font(orgfx_tileset* glyphs,
                                         unsigned int glyphSpacing,
                                         unsigned int spaceWidth);
 
void orgfx_put_bitmap_text(orgfx_bitmap_font* font,
                           unsigned int x0, unsigned int y0,
                           const wchar_t *str);
 
#endif // orgfx_BITMAP_FONT_H
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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