SpriteBatch
--------------------------------------------------------------------------------
Nokia Developer 2011
Introduction
--------------------------------------------------------------------------------
"SpriteBatch" kind of an interface for rendering Sprite-kind-of object's
easily and effectively with the selected rendering backend.
SpriteBatch implementations for OpenGL ES 1.1, OpenGL ES 2.0 and
OpenVG. Project contains SpriteBatch interface, Rendering backend-
specific code, and Qt specific test-projects for easy deployment.
The actual implementations can be ran on any device supporting
the according backend (GLES11, GLES2 and OpenVG)
The recommended implementation is QtOpenGL; it integrates nicely with
Qt SDK and is supported on both desktop and mobile platforms.
Compatibility
--------------------------------------------------------------------------------
- OpenGL ES 1.1 has been tested on Symbian^3 Qt 4.7.3, Harmattan,
and Windows Desktop with PowerVR GLES11 emulation.
- OpenGL ES 2.0 has been tested on Symbian^3 Qt 4.7.3, Harmattan,
and Windows Desktop with PowerVR GLES2 emulation
- QtOpenGL, OpenVG and QPainter have been tested on Symbian^3 Qt 4.7.3.
Required software
--------------------------------------------------------------------------------
QtSDK
Building
--------------------------------------------------------------------------------
Open the .PRO file to the QtCreator, select your target and build.
NOTE: For desktop build, you must provide an OpenGL/OpenVG
libraries for the project.
Directories
--------------------------------------------------------------------------------
This example is structured as follows
graphics
Just a single image which is packaged in each of the test projects
src_general
Platform independent SpriteBatch interface (single class: h/cpp)
src_gles2spritebatch
OpenGL ES 2.0 implementation of the interface.
src_gles2spritebatchtest
OpenGL ES 2.0 specific Qt project for testing the implementation.
src_gles11spritebatch
OpenGL ES 1.1 implementation of the interface.
src_gles11spritebatchtest
OpenGL ES 1.1 specific Qt project for testing the implementation.
src_openvgspritebatch
OpenVG 1.0/1.1 implementation of the interface.
src_openvgspritebatchtest
OpenVG 1.0/1.1 specific Qt project for testing the implementation.
src_qpainterspritebatch
QPaiinter implementation. QPainter is available on all Qt platforms, but
it does not support color tinting in the API and it is slower than specific
implementations.
src_qpainterspritebatchtest
QPainter specific Qt project for testing the implementation.
src_qtopenglspritebatch
QtOpenGL implementation.
src_qtopenglspritebatchtest
QtOpenGL specific Qt project for testing the implementation.