Public Types | Public Member Functions | Static Public Member Functions
cv::GlFont Class Reference

OpenGL Font. More...

#include <opengl_interop.hpp>

List of all members.

Public Types

enum  Weight {
  WEIGHT_LIGHT = 300, WEIGHT_NORMAL = 400, WEIGHT_SEMIBOLD = 600, WEIGHT_BOLD = 700,
  WEIGHT_BLACK = 900
}
enum  Style { STYLE_NORMAL = 0, STYLE_ITALIC = 1, STYLE_UNDERLINE = 2 }

Public Member Functions

void draw (const char *str, int len) const
const std::string & family () const
int height () const
Weight weight () const
Style style () const

Static Public Member Functions

static Ptr< GlFontget (const std::string &family, int height=12, Weight weight=WEIGHT_NORMAL, Style style=STYLE_NORMAL)

Detailed Description

OpenGL Font.


Member Enumeration Documentation

Enumerator:
WEIGHT_LIGHT 
WEIGHT_NORMAL 
WEIGHT_SEMIBOLD 
WEIGHT_BOLD 
WEIGHT_BLACK 
Enumerator:
STYLE_NORMAL 
STYLE_ITALIC 
STYLE_UNDERLINE 

Member Function Documentation

static Ptr<GlFont> cv::GlFont::get ( const std::string &  family,
int  height = 12,
Weight  weight = WEIGHT_NORMAL,
Style  style = STYLE_NORMAL 
) [static]
void cv::GlFont::draw ( const char *  str,
int  len 
) const
const std::string& cv::GlFont::family ( ) const
int cv::GlFont::height ( ) const

The documentation for this class was generated from the following file: