Commit Graph

304 Commits

Author SHA1 Message Date
michael tesch
a55d77b2d2 added node write support, good enough for debugging 2016-06-17 21:03:19 +02:00
Michael Tesch
77a03fea93 cleanup tabs in sdl port, check if got requested window size 2016-06-16 18:07:56 +02:00
Michael Tesch
50086f3228 remove dependency on c++ stdlib 2016-06-16 17:06:37 +02:00
michael tesch
41c3b0b52f Merge branch 'demo_sdl2' of github.com:tesch1/turbobadger into demo_sdl2 2016-06-16 12:59:54 +02:00
michael tesch
0e179e4257 let window resize 2016-06-16 12:59:51 +02:00
Michael Tesch
d7bb6ad083 remove emacs file vars 2016-06-16 11:59:25 +02:00
Michael Tesch
809190d1e8 added config option for constexpr support and cleanup cmakefile spaces 2016-06-14 17:29:57 +02:00
Michael Tesch
e908f6dfb6 enable double buffer 2016-06-14 17:29:21 +02:00
michael tesch
a5552c08ba Merge branch 'master' of github.com:fruxo/turbobadger into demo_sdl2 2016-06-13 19:44:20 +02:00
Emil Segerås
483ec58f5c Use ibeam cursor for edit fields. Fixes #77 2016-06-12 16:36:47 +02:00
michael tesch
7dc22d774b cleanup sdl port, move timer stuff into tb_system_sdl
update some configuration options so that tb can be configured
as a git submodule from an external CMakeLists.txt
2016-06-10 01:05:50 +02:00
michael tesch
6980aaa02c added config options for gl3 and gles renderers 2016-06-08 22:14:28 +02:00
michael tesch
3ccd635824 Merge branch 'demo_sdl2' of github.com:tesch1/turbobadger into demo_sdl2 2016-06-07 21:18:31 +02:00
michael tesch
39c9984774 fixed continuous update by moving redraw into SDL_USEREVENT handling 2016-06-07 20:17:31 +02:00
Michael Tesch
ec03727f51 comment out debug stmts 2016-06-07 19:27:23 +02:00
michael tesch
2abaf66743 remove debugging stmts, fixed rsync for resources 2016-06-04 17:36:26 +02:00
michael tesch
fdb86e550d change to fruxo formatting style 2016-06-04 16:55:27 +02:00
michael tesch
7e7d23034c working gl3 render 2016-06-04 16:39:38 +02:00
michael tesch
c4b3301baa start try to add gles2/gl3 render 2016-06-04 04:51:46 +02:00
michael tesch
70b1cc89f4 request correct gl version 2016-06-03 18:33:12 +02:00
michael tesch
8e66c06239 Merge branch 'demo_sdl2' of github.com:tesch1/turbobadger into demo_sdl2 2016-06-03 18:16:19 +02:00
Michael Tesch
466e81902a remove some gl stuff from port_sdl2 2016-06-03 18:16:09 +02:00
michael tesch
658b80b69e Merge branch 'demo_sdl2' of github.com:tesch1/turbobadger into demo_sdl2 2016-06-03 18:08:48 +02:00
michael tesch
1606beb3ff fixed glfw build 2016-06-03 18:07:46 +02:00
Michael Tesch
fa07e3ec1b compiles, doesnt draw 2016-06-03 18:07:23 +02:00
michael tesch
85ebe8b584 start of sdl2 demo app port 2016-06-03 12:12:05 +02:00
Walter Pearce
e6e9bd6af9 Initial implementation of "modern" CMake system.
- the option of configuring tb_config.h via the Cmake options, optionally setting some
- Fixed TB overriding target paths and made it optional for demo. Building in source dir is bad.
- Provides proper install targets
2016-01-10 22:24:30 -08:00
rongzhou
ccc8b310d2 Cleanup unnecessary comma 2015-11-01 16:45:09 -08:00
Emil Segerås
e65907488c Fixed keyboard shortcuts on linux. 2015-07-26 09:57:44 +02:00
Emil Segerås
ec844e8cc7 Fixed keyboard shortcuts on osx.
Something changed once again in the new glfw version.
2015-07-26 09:32:45 +02: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
a2cabbb731 Make the demo find resources on os x. 2015-06-26 20:06:50 +02:00
Emil Segerås
26af4e9aca Added group-id support for TBButton. 2015-06-25 19:48:06 +02:00
Emil Segerås
31aa2f1359 Upgraded to glfw 3.1.1 for demo 2015-06-25 19:48:00 +02:00
l0calh05t
79723345bc 64-bit build fix 2015-04-29 23:15:36 +02:00
Emil Segerås
4105bc5aec Cleanup linux ifdef in glfw port 2014-12-30 13:25:00 -08:00
Emil Segerås
41e7dcc5bc Added some more predefined keyboard shortcuts. 2014-11-02 18:54:15 +01:00
Emil Segerås
97b3fcce0e Fix for starting demo on osx. 2014-11-01 17:03:28 +01:00
Emil Segerås
d591064627 Refixed #10.
LINUX isn't defined anymore.
2014-11-01 13:04:31 +01:00
nsf
5156739fe6 Silence unused function warning in glfw portion of the demo app.
This function needs to be defined only starting from a certain version of the
GLFW, where it can actually be used. It's the drag'n'drop functionality.
2014-10-01 15:55:55 +06:00
Emil Segerås
fe2fafdbf4 Removed some warnings in demo code 2014-09-30 21:35:38 +02:00
Michel Paulissen
18d06ca00b Handling the keypad enter in port_glfw
Support for horizontal mouse scroll in tb_scroll_container
2014-09-16 10:59:14 +02:00
Emil Segerås
20e62a9582 Quick workaround for jumpy focus in ResourceEditWindow. 2014-09-02 21:37:18 +02:00
Emil Segerås
29512809e8 Set id the correct way, using constexpr. 2014-08-31 20:08:27 +02:00
Emil Segerås
e598608fc5 Updated incorrect comment in demo resource. 2014-08-31 20:06:25 +02:00
Emil Segerås
9fc99185ff Simplify include directories for demo. 2014-08-19 21:05:22 +02:00
Emil Segerås
5f4e5fd002 cmake cleanup
Moved glfw include from the top CMakeLists.txt to
the demo project, since it's the "user" project that
specify the dependence and knows where it is.
2014-08-16 14:32:33 +02:00
Emil Segerås
cdd14c70c9 Removed special compiler flags for linking all object files.
Should not be needed anymore.
2014-08-04 15:04:50 +02:00
Emil Segerås
bf82fe994d Deprecate TBAddon and made TBImage optional by define.
Making features optional by linking is messier than using defines.
Use tb_config.h for all optional core stuff instead.
2014-08-04 15:00:30 +02:00
Emil Segerås
67d82a43a2 cmake compilefix for macosx 2014-07-28 15:58:00 +02:00
Emil Segerås
7c9ef0cc5b cmake compilation fixes 2014-07-28 14:26:18 +02:00
Emil Segerås
67119ca815 cmake update: compiler settings for msvc. 2014-07-28 13:45:06 +02:00
Emil Segerås
6d5322f40b cmake update: Use WinMain on windows. 2014-07-26 13:34:22 +02:00
Emil Segerås
afa14e70cc Added cmake build files. Work in progress. 2014-07-26 11:18:41 +02:00
Emil Segerås
8cac9c9eb8 Added configuration defines for default platform implementations.
Makes it easier to control stuff using a shared build system.
2014-07-25 21:26:11 +02:00
Emil Segerås
944fb88bf5 Improved window positioning in some more cases. 2014-05-29 13:41:39 +02:00
Emil Segerås
55ad6d1343 Fixed incorrectly encoded source file.
Visual studio scrambled the utf-8 at some point.
Also reduced the number of default rendered glyphs.
2014-05-29 13:33:20 +02:00
Emil Segerås
45de1c3be0 Fix for broken rendering after minimizing window in Demo on windows. 2014-05-20 21:56:28 +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
29f0f68b45 Workaround for glfw keyboard issue on linux.
Fixed issue #10
2014-05-18 21:46:55 +02:00
Emil Segerås
b5fab7570e Fixed so Demo windows adapt better to high DPI skin.
-Position and sizes should of course be read as dimensions (dp by default).
-MoveIn and clip windows after getting preferred size.
2014-05-01 13:35:01 +02:00
Emil Segerås
3d8843acd7 Fixed shortcut keys on osx. 2014-04-26 20:18:45 +02:00
Emil Segerås
66e2c349bf Switched to glfw version 3.0.4 for demo. 2014-04-21 14:51:53 +02:00
Emil Segerås
d6c9c0b720 Moved GLFW defines to makefile (linux/mac). 2014-04-21 14:45:34 +02:00
Emil Segerås
e690e301c4 Moved GLFW defines to project (windows). 2014-04-21 14:34:44 +02:00
Emil Segerås
ebd3d111f0 Added EVENT_TYPE_FILE_DROP, and CUSTOM.
Extend TBWidgetEvent by making it a TBTypedObject instead of adding even
more to it. Should perhaps refactorize it, but that will require lots of changes.

Implemented EVENT_TYPE_FILE_DROP for upcoming version of glfw (not used yet).
2014-04-21 13:48:08 +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
dcff225d04 Worked around bad scheduling in windows demo backend. 2014-03-02 21:45:58 +01:00
Emil Segerås
c5c7670a23 Added testing of constantly busy message handler. 2014-03-02 21:45:54 +01:00
Emil Segerås
47636e061a Fix timer reschedule bug in demo app.
When non-delayed messages where fired repeatedly, the
reschedule method didn't schedule after the first time.
2014-03-02 21:45:07 +01:00
Emil Segerås
7c94d3b2bb Fixed incorrect file reference in visual studio project file. 2014-02-25 21:04:30 +01:00
Emil Segerås
71a6880c1b Minor layout change in demo menu.
Let the debug window button stick to bottom if not pushed out by other content.
2014-02-21 21:19:22 +01:00
Emil Segerås
bb06e7996c Added styled text to TBButton example.
Removed old comment. New way of doing things is to build like lego.
With widgets as building blocks, build whatever you want. Instead
of implementing everything :)
2014-02-12 20:38:29 +01:00
Emil Segerås
559b05b108 Cleanup of old layout test. 2014-02-09 20:44:51 +01:00
Emil Segerås
8c5a2cbf96 Added configuration defines for font systems & stb image loader.
Also added stb_truetype.h so it works out of the box just by enabling it.
2014-02-06 21:09:51 +01:00
Emil Segerås
0371a401ac Make tb_config.h overridable in application (easier to use tb project for multiple projects).
The library now search for tb_config.h in the solution directory first.
2014-02-06 20:33:08 +01:00
Emil Segerås
d9f260fc92 Mention touch input emulation in demo. 2014-02-04 21:50:30 +01:00
Emil Segerås
32c270258a Added demo screenshot 2014-02-03 21:05:23 +01:00
Emil Segerås
c0398463fe Renamed library project. 2014-01-16 21:08:13 +01:00
Emil Segerås
87e6f55feb Moved all source files.
Perhaps all includes should also have path added, like "tb/tb_foo.h",
but i'll save this for later.
2014-01-16 21:05:29 +01:00
Emil Segerås
36ae602ca9 Moved default_font, default_skin, icon and vera.ttf. 2014-01-16 21:04:52 +01:00
Emil Segerås
4e44d19115 Moved language files 2014-01-16 21:04:24 +01:00
Emil Segerås
bc3d360b03 Renamed project namespace. 2014-01-16 21:03:56 +01:00
Emil Segerås
c711425946 Renamed project in resources & documentation. 2014-01-16 21:03:10 +01:00
Emil Segerås
d17cf8e661 Renamed methods for core init/shutdown. 2014-01-16 21:03:07 +01:00
Emil Segerås
2dcc17500a Make TBAnimationManager the entry point for animation methods. 2014-01-08 21:19:51 +01:00
Emil Segerås
c3b3b3fe0c Moved animation files to tinkerbell core. 2014-01-07 21:26:01 +01:00
Emil Segerås
a7ee83a914 Renamed animation objects.
Should be preceeded with TB.
2014-01-07 21:14:24 +01:00
Emil Segerås
03c0680c1b Moved some unused utils out to tb_animation_utils.h
These objects might go away when the animation system is improved.
2014-01-07 21:07:02 +01:00
Emil Segerås
cb26d88c9f Renamed widget animation objects.
Should be preceeded with TB.
2014-01-07 21:00:16 +01:00
Emil Segerås
040ad1a34b Renamed tinkerbell.cpp/h to tb_core.cpp/h 2014-01-06 12:35:02 +01:00
Emil Segerås
7eb2e33bcd Moved misc classes to dedicated files. 2014-01-05 14:29:26 +01:00
Emil Segerås
b0e83a9673 Support for node references and conditions. Fixes #1.
Also fixed compact parsing of colors without quotes.
2013-12-27 13:27:33 +01:00
Emil Segerås
62c1265a89 Fixed some incorrect data type conversions. 2013-12-09 20:39:28 +01:00
Emil Segerås
82761e9628 Moved stb_image to thirdparty subfolder. 2013-12-08 13:49:24 +01:00
Emil Segerås
9828e8f37b Updated project files to new glfw path. 2013-12-08 13:24:02 +01:00
Emil Segerås
477472f607 Added glfw in Demo/thirdparty/glfw 2013-12-08 13:12:51 +01:00
Emil Segerås
2c63e8c502 Removed glfw 2013-12-08 12:52:07 +01:00
Emil Segerås
603851f6ca Constraints part from layout improvements branch.
This change optionally pass constraints down through hierarchy
when measuring. Axis specific dependency information is bubbled
back up (so future multi-pass layout may take further action).

This enables f.ex wrapping textfields to adapt to content a bit
better, but all layout is still done in a single pass (Still WIP
on the layout branch)
2013-11-16 20:31:32 +01:00