Read-Write PixelFast
Blitz3D Forums/Blitz3D Programming/Read-Write PixelFast
| ||
why doesn't read & write pixel work right in full screen mode :( my mask isn't masking from 255,0,255 to nothing :( |
| ||
As far as I'm aware it works fine... example code might help us help you. |
| ||
Try this code out for writepixel, if you still have a problem let us know. The SetBuffer commands are very important. ts=512 ;Texture creation using WritePixel tex57=CreateTexture (ts,ts,1) SetBuffer TextureBuffer (tex57,0) For cdy= 0 To ts-1 For cdx= 0 To ts-1 rca=255 rcg=Rnd(100,255) ;If rcg<70 Then rcg=0 rcr=rcg rcb=rcg argb=0 ;clear color argb=(rca Shl 24) Or (rcr Shl 16) Or (rcg Shl 8) Or (rcb) ;If rcg<74 Then argb=0 ;just to be sure lots of black WritePixel cdx,cdy,argb Next Next SetBuffer BackBuffer() |
| ||
I don't really like releasing important, code :( but ywah im locking the buffers |
| ||
You don't have to release any important code. Just write a small example which demonstrates the problem. Twenty lines of code will probably be enough. The important thing is that it has to be a complete program which people can run and observe. |