Author Topic: Interface adaptation for different screens  (Read 2937 times)

Offline Vziuh

  • byte
  • *
  • Posts: 13
    • View Profile
Interface adaptation for different screens
« on: August 11, 2011, 01:08:34 pm »
   Hi everyone, i found that there is alot of different screens for android device
here's the  list:

240 x 320
240 x 640
320 x 480
480 x 854
540 x 960
640 x 960
 
320 x 240
400 x 240
800 x 480
800 x 600
1024 x 600
1280 x 800
1366 x 768

   I decide to make all my interface pictures for biggest screen from this list: 1366 x 768,
and if game will be started on android devise with smaller screen,  all pictures will be resized and adopted to screen dimension.

   At the moment I’m using    frame_buffer.blit method to output all images and rescale them.
My question is, if this method is fast enough or it’s better to redraw image in smaller RGB array and crate smaller texture.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Interface adaptation for different screens
« Reply #1 on: August 11, 2011, 01:12:32 pm »
It's fine that way. The gpu doesn't care if it has to scale 1-1 or 1-something.

Offline Vziuh

  • byte
  • *
  • Posts: 13
    • View Profile
Re: Interface adaptation for different screens
« Reply #2 on: August 11, 2011, 01:16:24 pm »
ok, thanks, i'll use this method than