hansi raber - 2008-09-12

hey!

i'm trying to "in between the gl rendering" export some parts to pdf. something like this:

if( exportPdf ){
    graphicsGL.beginRaw( createGraphics( width, height, PDF, pdfExportFile ) );   // graphicsGL is an GLGraphicsOffscreen object
    render( graphicsGL, 1 );  // that does some drawing rendering at a certain scale factor
    graphicsGL.endRaw();
    open( pdfExportFile ); // launch the file
    exportPdf = false;
}

that works fine, except that any images i draw inside render() don't show up in the pdf output.
i'm not sure if this question belongs here, i could propably also ask the pdf export guys, but i think it's an issue with either
a. the texture pixels not being updated correctly
b. GLGraphicsOffscreen handles the rendering of textures differently than usual and thats why they don't show up inside the pdf

i've been trying to work around this for hours now, but i usually end up with my app crashing (because of some opengl funkyness) or with a blank pdf :(

hansi.