Search:

Type: Posts; User: Gravity Games

Search: Search took 0.21 seconds.

  1. Re: Need Help with Rendering the screen (with volatile images)

    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...
  2. Re: Need Help with Rendering the screen (with volatile images)

    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,...
  3. Re: Need Help with Rendering the screen (with volatile images)

    It should be coming from here:


    public Main(){
    screen = createVolatileImage(Frame.realsize.width, Frame.realsize.height);
    start();
    }

    ...or here...
  4. Re: Need Help with Rendering the screen (with volatile images)

    Lines 32 and 33: if (screen.validate(getGraphicsConfiguration()) ==
    VolatileImage.IMAGE_INCOMPATIBLE)

    Line 68: renderOffscreen();

    EDIT: The screen image is returning as null....
  5. Re: Need Help with Rendering the screen (with volatile images)

    Well, everything seems to be pointing to the "screen" Image, but oddly enough, I set it to a new Volatile Image twice.
  6. Re: Need Help with Rendering the screen (with volatile images)

    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...
  7. Re: Need Help with Rendering the screen (with volatile images)

    Sure, but it's not much:
  8. Need Help with Rendering the screen (with volatile images)

    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;...
Results 1 to 8 of 8