Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Home
Help
Search
Login
Register
www.jpct.net
»
jPCT-AE - a 3d engine for Android
»
Support
»
can framebuffer be smaller than sceen?
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: can framebuffer be smaller than sceen? (Read 2027 times)
MichaelJPCT
float
Posts: 267
can framebuffer be smaller than sceen?
«
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?
Logged
EgonOlsen
Administrator
quad
Posts: 12297
Re: can framebuffer be smaller than sceen?
«
Reply #1 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.
Logged
MichaelJPCT
float
Posts: 267
Re: can framebuffer be smaller than sceen?
«
Reply #2 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.
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
www.jpct.net
»
jPCT-AE - a 3d engine for Android
»
Support
»
can framebuffer be smaller than sceen?