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
»
How to draw a rotated UI image?
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: How to draw a rotated UI image? (Read 1769 times)
tao
byte
Posts: 16
How to draw a rotated UI image?
«
on:
March 17, 2014, 03:30:40 am »
Hi,
In my game all UI images are drawn using FrameBuffer.blit() method. Can I add rotation to these images? From the api docs i don't find blit() has such feature... Or, any idea how to draw a rotated UI images?
Many thanks!
Logged
EgonOlsen
Administrator
quad
Posts: 12297
Re: How to draw a rotated UI image?
«
Reply #1 on:
March 17, 2014, 07:10:41 am »
Not with blit. You can use the Overlay class for this.
Logged
tao
byte
Posts: 16
Re: How to draw a rotated UI image?
«
Reply #2 on:
March 17, 2014, 01:55:53 pm »
Thanks, I'll give a try.
Btw, what's the implementation difference between Overlay and blit()? Do both create a plane facing to camera? Also, If I have the same number of Overlays and blit calls which one is more heavy?
Logged
EgonOlsen
Administrator
quad
Posts: 12297
Re: How to draw a rotated UI image?
«
Reply #3 on:
March 17, 2014, 03:05:01 pm »
Overlay is heavier, because it creates real Object3D instances. blit() is simpler but more limited. If blit is sufficient, use blit and use Overlay only if you have to.
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
www.jpct.net
»
jPCT-AE - a 3d engine for Android
»
Support
»
How to draw a rotated UI image?