View Single Post
  #1  
Old 04-09-2009, 08:51 AM
Penguin Penguin is offline
Member
 
Join Date: Mar 2009
Posts: 14
wxImage to Texture

Hi,

I'm using wxPython to get a screenshot from a hidden window how it is described here.

Now I want to use the screenshot image as a texture on a Vizard object (e.g. a plane) without writing it to the harddisk and read it again with viz.addTexture() because this would be slow for repetitive image generation with short time intervals.

Is there a way to load the wxImage direct to a texture? Maybe using viz.addTextureFromBuffer() in some kind?
Reply With Quote