TINA has a proxy system for creating objects(like fonts and textures) and for drawing.
This means that you have to feed TINA these objects so it can visualize the GUI.
Because of that, any kind of rendering system can be used with TINA.
-
Derive your own texture class from tina::TextureProxy.
-
Derive your own texture font class from tina::FontProxy.
-
Make a class that is derived from tina::ObjectCreationProxy.
This proxy will create textures and fonts of the types that were
made in the steps above.
-
Call tina::Initialize(your_object_proxy) at the initialization
code of your program. Don't forget to call cow::Initialize() first!
-
Elsewhere in your code, you need to have a tina::SurfaceManager.
Call Update() and Render(your_render_proxy) on it to make it work.
Now you can add surfaces and controls to the surface manager and pass on the input logic to it.