Displaying raw RGB data on screen
Hello,
I would like to port a game to IOS which is already written in C++. The existing C++ game engine generates a flow of images that should be displayed on screen. The generated images are in a raw RGB format. I plan to write a small Objective C program which would call my C++ game engine many times a second, make it generate a raw RGB image and send it to the screen of an iPhone.
My question is: Wich is the best way of putting out raw RGB data to the screen? I guess I need to create some kind of an IOS or OpenGL image object and somehow get access to its raw data. Then I can copy it to the display.
It is important that the displaying of my images is synchronized to the refresh rate of the screen of the iPhone.
Thank you in advance.
|