logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

s3d_draw_string - draw a simple string

Author

SimonWunderlich
           Author of s3d

s3d                                                                                           S3D_DRAW_STRING(3)

Description

       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);

Name

       s3d_draw_string - draw a simple string

Synopsis

#include<s3d.h>ints3d_draw_string(constchar*str,float*xlen);

See Also