Re: gl_putbox( )

Search this archive.

From: Matan Ziv-Av (matan@svgalib.org)
Date: Sun 23 Apr 2000 - 22:35:38 IDT


On Sun, 23 Apr 2000, Andreas Brosten wrote:

> I have some problem with the gl_putbox() funktion.
> if I have an image "image.pxm" in the program directory,
> i write like this:
> #include "image.pxm"
> ...
> ...
> int main()
> {
>  ...
>  ...
>  putbox(1,1,50,50,image_name);// if the size is 50*50
>  ...
>  ... } 
> Ok, a 50*50 image is drawn on the screen, but it's hardly the
> image I would like to see. The image I get looks like some randomed
> out pixels in different colors. Do I hade the wrong palette? In
> case, how do I correct it? and how do I set a color to "none"
> (Transparent). That's all for this time =) Thanx, and bye !

Did you set the palette correctly? 
Is the image in the format that gl_putbox expects (as is explained in
the man page)?


-- 
Matan Ziv-Av.                         matan@svgalib.org


This archive was generated by hypermail 2.1.4 : Wed 21 Jan 2004 - 22:10:23 IST