texture problem?

Blitz3D Forums/Blitz3D Programming/texture problem?

(tu) sinu(Posted 2005) [#1]
when loading a texture with the flags 1,2,4 or 5 everything is fine when texturing a sprite with it but when i create a texture with the flags 2 or 4,5 and texture a sprite the alpha or mask doesn't work and the texture is invisible or has the black showing?
what im doing is copyrect from the imagebuffer to the newly created texture on the texturebuffer so i won't need to load the texture.
Any help or is it a bug? using version 1.90
ps post some code when i get to my own comp.


jfk EO-11110(Posted 2005) [#2]
As soon as you edit the texturebuffer, the current Alpha Channel Data is lost. So you need to restore it, or you may use writepixelfast to copy from imagebuffer to texturebuffer.


(tu) sinu(Posted 2005) [#3]
so i can just do a readpixelfast from the imagebuffer and then writepixelfast to the texturebuffer() without losing alpha channel data?

how do i go about restoring it without the above, i can't find a way to set the flags for the texture after modifying it?