I've been having difficulties with Pixmaps in my game engine, so I decided to try isolating different parts of the code to figure out what was causing it
the following does nothing (I get a black window):
This makes no sense to me, there should be 4 white pixels there and there arent
The documentation is as always, utterly useless
What is the deal with pixmaps? how do I get them to actually show up? what is the mysterious command that I'm somehow missing here?
the following does nothing (I get a black window):
Graphics(800,600,0,0) TestPix:TPixmap=CreatePixmap(15,15,PF_RGBA8888) White% = (255 Shl 24)|(255 Shl 16)|(255 Shl 8)|255 Black% = (0 Shl 24)|(0 Shl 16)|(0 Shl 8)|0 For X = 0 To 14 For Y = 0 To 14 WritePixel(TestPix,X,Y,Black) Next Next WritePixel(TestPix,0,0,White) WritePixel(TestPix,0,14,White) WritePixel(TestPix,14,0,White) WritePixel(TestPix,14,14,White) DrawPixmap(TestPix,200,200) Flip Delay(4000)
This makes no sense to me, there should be 4 white pixels there and there arent
The documentation is as always, utterly useless
What is the deal with pixmaps? how do I get them to actually show up? what is the mysterious command that I'm somehow missing here?