Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Trusted Contributor
taylor-tomt
Posts: 231
Registered: ‎11-19-2010
My Device: Z10, Playbook

bbutil_render_text ?

I can't find the documentation for bbutil_render_text. Can someone point me to it?

 

Simple question:

 

Are the x and y values in screen pixels or are they in opengl ES coordinates (-1.0 to +1.0)?

Please use plain text.
Developer
BGmot
Posts: 1,068
Registered: ‎11-24-2011
My Device: PlayBook
My Carrier: x

Re: bbutil_render_text ?

bbutil_render_text() (and many other useful functions) is a curtesy of RIM and is defined inside bbutil.c which you can find in many Examples projects at github, take one from GoodCitizen for example.

Coordinates x and y are screen pixels.

Please use plain text.
Developer
useful
Posts: 26
Registered: ‎09-23-2012
My Device: Playbook, Z10LE
My Carrier: tnl

Re: bbutil_render_text ?

I see that you have a playbook.

For it can be used as an example HelloWorldDisplay.

I think this example is easier to understand.

It is in itself a form of NDK 2.1.0 Welcome -> Samples -> NDK Sample Project -> HelloWorldDisplay.

Please use plain text.