~ubuntu-branches/ubuntu/dapper/xscreensaver/dapper-updates

« back to all changes in this revision

Viewing changes to hacks/glx/font-ximage.h

  • Committer: Bazaar Package Importer
  • Author(s): Ralf Hildebrandt
  • Date: 2005-04-09 00:06:43 UTC
  • mfrom: (1.1.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20050409000643-z0abtifbt9s20pcc
Tags: 4.21-3
Patch by Joachim Breitner to check more frequently if DPMS kicked in (closes: #303374, #286664).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* font-ximage.c --- renders text to an XImage for use with OpenGL.
 
2
 * xscreensaver, Copyright (c) 2001 Jamie Zawinski <jwz@jwz.org>
 
3
 *
 
4
 * Permission to use, copy, modify, distribute, and sell this software and its
 
5
 * documentation for any purpose is hereby granted without fee, provided that
 
6
 * the above copyright notice appear in all copies and that both that
 
7
 * copyright notice and this permission notice appear in supporting
 
8
 * documentation.  No representations are made about the suitability of this
 
9
 * software for any purpose.  It is provided "as is" without express or 
 
10
 * implied warranty.
 
11
 */
 
12
 
 
13
#ifndef __FONT_XIMAGE_H__
 
14
# define __FONT_XIMAGE_H__
 
15
 
 
16
/* Returns an XImage structure containing the string rendered in the font.
 
17
   This XImage will be 32 bits per pixel, 8 each per R, G, and B, with the
 
18
   extra byte set to 0xFF.
 
19
 
 
20
   Foregroune and background are GL-style color specifiers: 4 floats from
 
21
   0.0-1.0.
 
22
 */
 
23
XImage *text_to_ximage (Screen *screen, Visual *visual,
 
24
                        const char *font,
 
25
                        const char *text_lines,
 
26
                        GLfloat *texture_fg,
 
27
                        GLfloat *texture_bg);
 
28
 
 
29
 
 
30
#endif /* __FONT_XIMAGE_H__ */