URL
https://opencores.org/ocsvn/orsoc_graphics_accelerator/orsoc_graphics_accelerator/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 5 |
Rev 8 |
#ifndef ORGFX_VECTOR_FONT_H
|
#ifndef ORGFX_VECTOR_FONT_H
|
#define ORGFX_VECTOR_FONT_H
|
#define ORGFX_VECTOR_FONT_H
|
|
|
#include "orgfx.h"
|
#include "orgfx.h"
|
#include <wchar.h>
|
#include <wchar.h>
|
|
|
typedef struct Bezier_write
|
typedef struct Bezier_write
|
{
|
{
|
orgfx_point2 start;
|
orgfx_point2 start;
|
orgfx_point2 control;
|
orgfx_point2 control;
|
orgfx_point2 end;
|
orgfx_point2 end;
|
int fillInside;
|
int fillInside;
|
} Bezier_write;
|
} Bezier_write;
|
|
|
typedef struct Triangle_write
|
typedef struct Triangle_write
|
{
|
{
|
orgfx_point2 p0;
|
orgfx_point2 p0;
|
orgfx_point2 p1;
|
orgfx_point2 p1;
|
orgfx_point2 p2;
|
orgfx_point2 p2;
|
} Triangle_write;
|
} Triangle_write;
|
|
|
typedef struct Glyph{
|
typedef struct Glyph{
|
int advance_x;
|
int advance_x;
|
int index;
|
int index;
|
int bezier_n_writes;
|
int bezier_n_writes;
|
Bezier_write* bezier;
|
Bezier_write* bezier;
|
int triangle_n_writes;
|
int triangle_n_writes;
|
Triangle_write* triangle;
|
Triangle_write* triangle;
|
} Glyph;
|
} Glyph;
|
|
|
typedef struct orgfx_vector_font{
|
typedef struct orgfx_vector_font{
|
int index_list_size;
|
int index_list_size;
|
Glyph** index_list;
|
Glyph** index_list;
|
int size;
|
int size;
|
Glyph *glyph;
|
Glyph *glyph;
|
} orgfx_vector_font;
|
} orgfx_vector_font;
|
|
|
orgfx_vector_font orgfx_make_vector_font(Glyph *glyphlist, int size, Glyph **glyphindexlist, int glyphindexlistsize);
|
orgfx_vector_font orgfx_make_vector_font(Glyph *glyphlist,
|
|
int size,
|
|
Glyph **glyphindexlist,
|
|
int glyphindexlistsize);
|
int orgfx_init_vector_font(orgfx_vector_font font);
|
int orgfx_init_vector_font(orgfx_vector_font font);
|
|
|
|
void orgfx_put_vector_char(orgfx_vector_font* font, wchar_t text);
|
void orgfx_vf_write(orgfx_vector_font* font, const wchar_t *text, int xoffset, int yoffset, int color);
|
void orgfx_put_vector_text(orgfx_vector_font* font,
|
void orgfx_vf_write_char(orgfx_vector_font* font, wchar_t text, int xoffset, int yoffset, float scale);
|
orgfx_point3 offset,
|
|
orgfx_point3 scale,
|
|
orgfx_point3 rotation,
|
|
const wchar_t *str,
|
|
unsigned int color);
|
|
|
#endif
|
#endif
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.