s3d_draw_string(3)

s3d_draw_string3

Draw a simple string

Usage

#include <s3d.h>

int s3d_draw_string(const char *str, float *xlen);

Overview

Renders the string str with in Truetype format with the height 1, returns the length of the rendered string in *xlen (or set len=NULL to disable this).

 char str="hello world!";
 float len;
 s3d_select_font("vera");
 s3d_draw_string(str, len);
 // not interested in the length? do that: s3d_draw_string(str, NULL);

Releases

8 releases since Debian 6.0 (Squeeze); the text changed 1 time.

  1. 6.0
  2. 7–13

Author

Simon Wunderlich

Author of s3d

From s3d-doc 0.2.2.1-7 in Debian 13 (Trixie). Parsed by carta from the page's man source.