Re: [Plib-users] Texture with transparency
Brought to you by:
sjbaker
From: Steve B. <sjb...@ai...> - 2000-03-18 21:21:41
|
Michael Wessels wrote: > > Hi all, > > I will load a bmp as texture with the ssgTexture. Then I need to define > the color black as transparency that means all pixels of he image with > the color black must have a alpha-value 0. > Has anybody an code-example, which can do this work ? This isn't something I've tried - and certainly SSG can't do this directly. One thing you could do is steal a copy of the BMP texture loader from SSG and hack it to do what you want. SSG lets you load textures yourself and just pass it the OpenGL texture handle. The joy of OpenSource software is that you can do this kind of thing! -- Steve Baker http://web2.airmail.net/sjbaker1 sjb...@ai... (home) http://www.woodsoup.org/~sbaker sj...@ht... (work) |