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
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