New In This Release

Local Navigation

Graphics

OpenGL ES 2.0

OpenGL® ES 2.0 is supported with the addition of the GL20 interface that is defined in the net.rim.device.api.opengles package. OpenGL ES 2.0 is also supported in the GLField class. Improvements in the GLUtils class, and a new set of utility methods are designed to help you use OpenGL ES 1.1 and 2.0. The GLUtils class is implemented in the net.rim.device.api.opengles package.

You can now load an EncodedImage as a texture for a 3D object, a portion of a EncodedImage or Bitmap into a texture. You can also load shader programs.

Back To Top

OpenVG 1.1

The VGUtils class provides a set of utility methods that are designed to make it easy for you to use OpenVG™. The VGUtils class is implemented in the net.rim.device.api.openvg package.

You can create a VGImage from a region of a Bitmap or EncodedImage. You can create a VGPath from SVG path data, and use a simpler method to create linear or radial gradient paths. You can also append path segments to a VGPath, create text in a VGPath or a VGImage by specifying the text to create and the font to use. You can draw text as image glyphs or path glyphs, and control if text glyph outlines are filled, stroked, or both, and measure text without drawing it. You can load image data from a region of a Bitmap or EncodedImage into a region of a VGImage.

Back To Top

Math utilities

Matrix3f and Matrix4f classes in the net.rim.device.api.math package were enhanced with methods to help you work with and create various types of matrices used by OpenGL® ES and OpenVG™. The Matrix3f.shear() method transforms a matrix to incorporate a specified amount of shear along two axes.

The createBillboard(), createLookAt(), createOrthographic(), createPerspective(), and createReflection() methods on Matrix4f, are designed to make it easy to construct matrices you might require when using OpenGL ES.

Back To Top
Next topic: Security

Was this information helpful? Send us your comments.