OpenCPN Partial API docs
Loading...
Searching...
No Matches
pi_TexFont.h File Reference

OpenGL Texture Font System. More...

Go to the source code of this file.

Classes

struct  TexGlyphInfo
 
class  TexFont
 

Macros

#define DEGREE_GLYPH   127
 
#define MIN_GLYPH   32
 
#define MAX_GLYPH   128
 
#define NUM_GLYPHS   (MAX_GLYPH - MIN_GLYPH)
 
#define COLS_GLYPHS   16
 
#define ROWS_GLYPHS   ((NUM_GLYPHS / COLS_GLYPHS) + 1)
 
#define DECL_EXP
 

Detailed Description

OpenGL Texture Font System.

Provides bitmap font rendering using OpenGL textures for weather data visualization. Key features:

Font Management:

  • Bitmap font generation from system fonts
  • ASCII character support with degree symbol
  • Single texture atlas packing (16x8 grid)
  • Optional glyph blurring for anti-aliasing

Rendering Capabilities:

  • Hardware-accelerated text rendering
  • Text extent calculations
  • Cached glyph metrics
  • Basic string layout

The system is optimized for OpenGL-based text rendering in the GRIB plugin's overlay displays and data visualization components.

Definition in file pi_TexFont.h.

Macro Definition Documentation

◆ COLS_GLYPHS

#define COLS_GLYPHS   16

Definition at line 52 of file pi_TexFont.h.

◆ DECL_EXP

#define DECL_EXP

Definition at line 59 of file pi_TexFont.h.

◆ DEGREE_GLYPH

#define DEGREE_GLYPH   127

Definition at line 46 of file pi_TexFont.h.

◆ MAX_GLYPH

#define MAX_GLYPH   128

Definition at line 48 of file pi_TexFont.h.

◆ MIN_GLYPH

#define MIN_GLYPH   32

Definition at line 47 of file pi_TexFont.h.

◆ NUM_GLYPHS

#define NUM_GLYPHS   (MAX_GLYPH - MIN_GLYPH)

Definition at line 50 of file pi_TexFont.h.

◆ ROWS_GLYPHS

#define ROWS_GLYPHS   ((NUM_GLYPHS / COLS_GLYPHS) + 1)

Definition at line 53 of file pi_TexFont.h.