help for writepixel in texture!!

BlitzMax Modules Forums/MiniB3D/help for writepixel in texture!!

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

my method for manipolation ioff texturee:

i create a pixmap
and save pixmap and load a texture!
but it is slowwwww




box=createcube()
Global image:TPixmap = CreatePixmap:TPixmap(256,256,PF_RGBA8888) ' with alpha

Function manipolation_texture()

Local nx:Int,ny:Int



For nx= 0 To 255

For ny= 0 To 255

WritePixel(image , nx , ny ,rnd(65000))

Next

Next

SavePixmapPNG( image,"salva_immagine.png")

EntityTexture box,LoadTexture:ttexture("salva_immagine.png")

End Function