Re: [Plib-users] Texture with transparency
Brought to you by:
sjbaker
From: Dave M. <dp...@ef...> - 2000-03-16 22:09:23
|
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 |