blitting without a world

Started by raft, July 12, 2010, 01:40:20 AM

Previous topic - Next topic

raft

i've noticed that blitting doesnt work without a world. is this intentional ? if so i can live with a dummy empty world.
i've planned to use that for blitting menu

this works as expected
buffer.clear(Color.BLACK);

world.renderScene(buffer);
world.draw(buffer);
world.drawWireframe(buffer, Color.WHITE);
buffer.update();

// blit something

buffer.displayGLOnly();


but this does not
buffer.clear(Color.BLACK);

// blit something

buffer.displayGLOnly();



EgonOlsen

#1
It's a kind of design flaw of the gl renderers that exists from the beginning and that i still couldn't get rid of in a satisfying manner. It's documented in the description of blit as well. Actually, it's sufficient if you do this world.renderScene...buffer.update-cycle once before blitting.

EgonOlsen

i've uploaded a version of jPCT (http://www.jpct.net/download/beta/jpct.jar) and AE (http://www.jpct.net/jpct-ae/download/alpha/jpct_ae.jar) that should not need this anymore. Maybe you can give it a try and report back!?

raft

thank you, the desktop version just blits ok now ;D i dont have a menu in AE so i cant test it now. i'll report when i have one