2024-04-16 03:43:29 +00:00
|
|
|
/*
|
|
|
|
* $Logfile: /DescentIII/Main/grtext/grtextlib.h $
|
|
|
|
* $Revision: 2 $
|
|
|
|
* $Date: 4/27/98 3:46p $
|
|
|
|
* $Author: Samir $
|
|
|
|
*
|
2024-04-16 18:56:40 +00:00
|
|
|
*
|
2024-04-16 03:43:29 +00:00
|
|
|
*
|
|
|
|
* $Log: /DescentIII/Main/grtext/grtextlib.h $
|
2024-04-16 18:56:40 +00:00
|
|
|
*
|
2024-04-16 03:43:29 +00:00
|
|
|
* 2 4/27/98 3:46p Samir
|
|
|
|
* scaling fonts.
|
2024-04-16 18:56:40 +00:00
|
|
|
*
|
2024-04-16 03:43:29 +00:00
|
|
|
* 1 12/29/97 3:24p Samir
|
|
|
|
* Initial revision
|
2024-04-16 18:56:40 +00:00
|
|
|
*
|
2024-04-16 03:43:29 +00:00
|
|
|
* $NoKeywords: $
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef GRTEXTLIB_H
|
|
|
|
#define GRTEXTLIB_H
|
|
|
|
|
|
|
|
#include "grtext.h"
|
|
|
|
#include "pstypes.h"
|
|
|
|
|
2024-04-16 18:56:40 +00:00
|
|
|
typedef struct tCharBlt {
|
|
|
|
ushort ch;
|
|
|
|
ushort clipped; // if =1, use sx,sy,sw,sh
|
|
|
|
int x, y;
|
|
|
|
float dsw, dsh; // scale vertical and horiz.
|
|
|
|
int sx, sy; // source rectangle within character in pixels.
|
|
|
|
int sw, sh;
|
|
|
|
} tCharBlt;
|
2024-04-16 03:43:29 +00:00
|
|
|
|
|
|
|
// render a character
|
|
|
|
int grfont_BltChar(int font, tCharBlt *cbi);
|
|
|
|
|
|
|
|
#endif
|