Buffer Does Not Exist (4 lines)

Blitz3D Forums/Blitz3D Beginners Area/Buffer Does Not Exist (4 lines)

octothorpe(Posted 2005) [#1]
The CreateTexture() docs state:

256: Store texture in vram. In some circumstances, this makes for much faster dynamic textures - ie. when using CopyRect between two textures.

But I can't get CopyRect() working on textures. What am I doing wrong?
graphics3d 640, 480
font = loadtexture("textures\gui\default_font.bmp", 9+256) ; 9+256=default+vram
overlay = createtexture(256, 256, 9+256)                   ; 9+256=default+vram
copyrect 1,1,1,1,1,1,font,overlay
Buffer Does Not Exist


SoggyP(Posted 2005) [#2]
Hello.

Imagebuffer() or Texturebuffer() in copyrect?

Goodbye


octothorpe(Posted 2005) [#3]
Ahh. Thank you! :)
copyrect 1,1,1,1,1,1,texturebuffer(font),texturebuffer(overlay)