Commit Graph

18 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
7e8093ab16 cleanup compiler warning 2019-11-05 17:46:31 +01:00
Michael Tesch
8ed710c606 use more TBStr in place of (const char *) 2019-01-23 19:57:40 +01:00
Emil Segerås
6c60aa3303 Moved non-texturized drawing from TBRenderer to TBSkin.
Implemented using 2x2 sized fragment.

Makes TBRenderer a lot simpler since shaders doesn't have to deal with
special case. Also makes batching better since color fills are drawn just
like everything else.

Added thickness parameter to PaintRect.
2016-07-12 19:41:57 +02:00
Emil Segerås
bf6a639e7a Moved duplicated file to buffer code into TBTempBuffer::AppendFile. 2016-06-27 19:29:49 +02:00
Emil Segerås
20e62a9582 Quick workaround for jumpy focus in ResourceEditWindow. 2014-09-02 21:37:18 +02:00
Emil Segerås
944fb88bf5 Improved window positioning in some more cases. 2014-05-29 13:41:39 +02:00
Emil Segerås
16e13dc622 Changed listener API for OnWidgetAdded/OnWidgetRemoved.
NOTE: Local listeners are now called on the parent widget instead of the child!
It makes more sense to use a listener to listen for additions/removes in a certain
widget, than listening to when a specific widget is added/removed anywhere.
2014-05-20 21:56:27 +02:00
Emil Segerås
fbc5a8139c ResourceEditWindow should open files on drop. 2014-05-20 21:56:26 +02:00
Emil Segerås
a24fba18ac Renamed TBGlobalWidgetListener -> TBWidgetListener. 2013-10-27 15:52:34 +01:00
Emil Segerås
897c61c723 Relayout TBScrollContainer if adapt properties change.
Also added adapt setting in ResourceEditWindow.
2013-09-21 20:12:05 +02:00
Emil Segerås
9291b072fc Cleaned up & changed layout a bit on demo resources. 2013-09-14 20:07:26 +02:00
Emil Segerås
fc1e6b6fa0 Let click through in resource editor if alt is pressed. 2013-03-29 14:36:46 +01:00
Emil Segerås
b07606013f Moved TBMenuWindow to separate file, and split it up into TBMenuWindow and TBPopupWindow. 2013-03-04 18:14:37 +01: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
9e854aea21 Fixed gcc compile warning and issue reported by valgrind. 2013-01-19 10:59:38 +01:00
Emil Segerås
7acf95c912 Demo resource edit crash fix. 2013-01-17 20:59:27 +01:00
Emil Segerås
9a7968cc07 Move demo & integration files to more suitable folders. 2012-11-13 18:25:41 +01:00