generate texture on init, allowing render to framebuffer, copying textures etc.
remove null define - replace by cstddef
added pixelbuffer transfer options