Commit Graph

8 Commits

Author SHA1 Message Date
Michael Tesch
00933a86e9
Hb cmake cleanup (#10)
* cleanup build system, modernize cmake

* build glfw and sdl2, w/ or w/o freetype

* fix android demo build

* win32 with CPack has PACKAGE target now

* added GLEW for windows

* bump to SDL2.0.10. fixes for building as subdir

* constexpr is always available these days.

* cleanup getwd() warning. add rpm to ubuntu packages

* dont use add_compile_definitions() for cmake, too new

* add rpm package to travis

* gh release packages

* build demo target on windows

* see if defines not working on winsodw
2019-11-12 15:45:00 +01:00
Michael Tesch
c704aa4cd8 build for emscripen 2019-01-24 22:14:44 +01:00
Emil Segerås
2f51f25369 Refactorized demo platform integration to better suit game loops.
Makes it easier to reuse the demo platform glue for other projects.
Especially game loops or platforms where rendering is set up in a
different order.

TB API change: Removed language file path from tb_core_init.
g_tb_lng->Load should be called manually after tb_core_init instead.
2015-07-02 14:27:53 +02:00
Emil Segerås
fe2fafdbf4 Removed some warnings in demo code 2014-09-30 21:35:38 +02:00
Emil Segerås
4d50b23b73 Use constexpr ids for setting default skin on widgets. 2014-03-16 13:31:34 +01:00
Emil Segerås
c8267eff72 Updated customized item source test:
-Added test where TBSelectDropDown is using the custom item source.
-Fixed typo.
-Test custom filter.
-New layout & Inflate the item widget from resource.
-Sort list (shows a bug when deleting items)
2013-04-16 21:59:22 +02:00
Emil Segerås
547d4594b9 Changed the type system implementation.
- Moved the type code our from TBWidget to new TBTypedObject.
- Work with template generated unique class id, instead of using strcmp on class names.
- Use template functions similar to dynamic_cast.
- Added unit tests.
2013-01-19 21:33:29 +01:00
Emil Segerås
9a7968cc07 Move demo & integration files to more suitable folders. 2012-11-13 18:25:41 +01:00