Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Brainsaw

#1
Support / Re: Blitting Problem
December 28, 2013, 09:59:14 PM
Thanks, that did the job. I moved the code from the end of the "onDrawFrame" method to the line before the "framebuffer.display()" call. Now the controls are visible (though it's better to play the game with a gamepad ;) ).
#2
Support / Blitting Problem
December 28, 2013, 07:38:09 PM
  Hello,

I am pretty new to Android development though I have some experience in programming. I am trying to write an Android client for my current project "the Sky of Verdun" (http://dustbin-online.de/sov.php), and I have run into a problem: I am trying to blit 2 images as controller, and the first image is OK, but the second doesn't show up:


  // Flight state, user controls a plane. m_Width and m_Height are the framebuffer width and height values.
  // m_Ctrl is a texture for the control stick, m_Fire is a firebutton
  case 3:
    m_FrameBuffer.blit(m_Fire, 0, 0, m_Width - 143, m_Height - 143, 128, 128, true);
    m_FrameBuffer.blit(m_Ctrl, 0, 0,      15      , m_Height - 271, 256, 256, true);
  break;


In this case only the fire button shows up, if I swap the lines only the controller shows up. Does anyone have an idea or a hint? Thanks.