www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: MichaelJPCT on September 03, 2016, 06:16:01 pm

Title: can framebuffer be smaller than sceen?
Post by: MichaelJPCT on September 03, 2016, 06:16:01 pm
i have an idea that i want to keep the game window's aspect ratio, for example 16:9, while the screen of device is usually not accurately 16:9.
can i have a framebuffer smaller than the screen and keep some black margins around the framebuffer?
Title: Re: can framebuffer be smaller than sceen?
Post by: EgonOlsen on September 03, 2016, 09:09:44 pm
I think it can, but I'm not sure that would be displayed. It might be a better idea to render into a NPOT-texture and blit that instead.
Title: Re: can framebuffer be smaller than sceen?
Post by: MichaelJPCT on September 04, 2016, 02:01:51 am
i tried creating a smaller framebuffer , the app just couldn't start.
so your suggested way may be the only way.