Blender V2.61 - r43446
Functions

blf_glyph.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <ft2build.h>
#include "MEM_guardedalloc.h"
#include "DNA_vec_types.h"
#include "DNA_userdef_types.h"
#include "BLI_blenlib.h"
#include "BIF_gl.h"
#include "BLF_api.h"
#include "blf_internal_types.h"
#include "blf_internal.h"

Go to the source code of this file.

Functions

GlyphCacheBLFblf_glyph_cache_find (FontBLF *font, int size, int dpi)
GlyphCacheBLFblf_glyph_cache_new (FontBLF *font)
void blf_glyph_cache_clear (FontBLF *font)
void blf_glyph_cache_free (GlyphCacheBLF *gc)
static void blf_glyph_cache_texture (FontBLF *font, GlyphCacheBLF *gc)
GlyphBLFblf_glyph_search (GlyphCacheBLF *gc, unsigned int c)
GlyphBLFblf_glyph_add (FontBLF *font, unsigned int index, unsigned int c)
void blf_glyph_free (GlyphBLF *g)
static void blf_texture_draw (float uv[2][2], float dx, float y1, float dx1, float y2)
static void blf_texture5_draw (const float shadow_col[4], float uv[2][2], float x1, float y1, float x2, float y2)
static void blf_texture3_draw (const float shadow_col[4], float uv[2][2], float x1, float y1, float x2, float y2)
int blf_glyph_render (FontBLF *font, GlyphBLF *g, float x, float y)

Detailed Description

Definition in file blf_glyph.c.


Function Documentation

GlyphBLF* blf_glyph_add ( FontBLF font,
unsigned int  index,
unsigned int  c 
) [read]
void blf_glyph_cache_clear ( FontBLF font)
GlyphCacheBLF* blf_glyph_cache_find ( FontBLF font,
int  size,
int  dpi 
) [read]
void blf_glyph_cache_free ( GlyphCacheBLF gc)
GlyphCacheBLF* blf_glyph_cache_new ( FontBLF font) [read]
static void blf_glyph_cache_texture ( FontBLF font,
GlyphCacheBLF gc 
) [static]
void blf_glyph_free ( GlyphBLF g)

Definition at line 287 of file blf_glyph.c.

References GlyphBLF::bitmap, and MEM_freeN().

Referenced by blf_glyph_cache_clear(), and blf_glyph_cache_free().

int blf_glyph_render ( FontBLF font,
GlyphBLF g,
float  x,
float  y 
)
GlyphBLF* blf_glyph_search ( GlyphCacheBLF gc,
unsigned int  c 
) [read]
static void blf_texture3_draw ( const float  shadow_col[4],
float  uv[2][2],
float  x1,
float  y1,
float  x2,
float  y2 
) [static]

Definition at line 342 of file blf_glyph.c.

References blf_texture_draw(), and MakeCursor::color.

Referenced by blf_glyph_render().

static void blf_texture5_draw ( const float  shadow_col[4],
float  uv[2][2],
float  x1,
float  y1,
float  x2,
float  y2 
) [static]

Definition at line 316 of file blf_glyph.c.

References blf_texture_draw(), and MakeCursor::color.

Referenced by blf_glyph_render().

static void blf_texture_draw ( float  uv[2][2],
float  dx,
float  y1,
float  dx1,
float  y2 
) [static]

Definition at line 297 of file blf_glyph.c.

Referenced by blf_glyph_render(), blf_texture3_draw(), and blf_texture5_draw().