Well, I'm completely stumped. I can't seem to figure out why the variable keeps coming up null. Some of the docs I've read say I need to set up a GraphicsConfigurations object, some say I don't. I've...
Type: Posts; User: Gravity Games
Well, I'm completely stumped. I can't seem to figure out why the variable keeps coming up null. Some of the docs I've read say I need to set up a GraphicsConfigurations object, some say I don't. I've...
Yes, I have read the API doc. The problem still seems to be this line:
if (screen.validate(getGraphicsConfiguration()) == VolatileImage.IMAGE_INCOMPATIBLE){
The screen variable returns as null,...
It should be coming from here:
public Main(){
screen = createVolatileImage(Frame.realsize.width, Frame.realsize.height);
start();
}
...or here...
Lines 32 and 33: if (screen.validate(getGraphicsConfiguration()) ==
VolatileImage.IMAGE_INCOMPATIBLE)
Line 68: renderOffscreen();
EDIT: The screen image is returning as null....
Well, everything seems to be pointing to the "screen" Image, but oddly enough, I set it to a new Volatile Image twice.
Just read the doc here: VolatileImage (Java Platform SE 6)
After trying to tweak my code, I'm still confused, and I'm still getting errors
Code:
package...
Sure, but it's not much:
I'm experimenting with image scaling and volatile images, but whatever I try, I can't seem to get my code to actually draw anything.
Code:
package gravitygamesinteractive.scorpioengine.main;...