Michael wrote:
>I have loaded a texture with the following function
>
> // Load of a BMP-Image with the Library PLIB
> void FDS_Load_Image_BMP(char *filename)
> {
> tex_list = new ssgTexture ( filename ) ;
> }
>
>I works well.
>
>But now I have to know the width and height of the texture and the
>raster, in order to manipulate the alpha values. How can I get these
>informations?
>
tex_list->getHandle() gives you the OpenGL handle
glGetTexLevelParameter and glGetTexImage returns what you need
|