Commit Graph

610 Commits

Author SHA1 Message Date
Emil Segerås
bf6a639e7a Moved duplicated file to buffer code into TBTempBuffer::AppendFile. 2016-06-27 19:29:49 +02:00
Emil Segerås
9094e47080 Merge pull request #78 from mgerhardy/patch-2
Fixed typo in CMakeLists.txt
2016-06-16 12:48:29 +02:00
Martin Gerhardy
c95d61db42 Fixed typo in CMakeLists.txt 2016-06-16 12:09:49 +02:00
Emil Segerås
93bf92a09b Define factory for TBWindow. Fixes #72 2016-06-15 21:39:15 +02:00
Emil Segerås
483ec58f5c Use ibeam cursor for edit fields. Fixes #77 2016-06-12 16:36:47 +02:00
Emil Segerås
7ade1a1490 Clamp opacity before use. 2016-06-10 21:16:04 +02:00
Emil Segerås
e55540f648 Fixed outdated comment 2016-06-10 21:13:58 +02:00
Emil Segerås
1259d8b71f Removed warning 2016-06-10 21:11:15 +02:00
Emil Segerås
c1dd7f8964 Plugged memory leak in TBFontEffect.
Render returned new buffer in data8 which was never freed.
TBFontGlyphData is just passing around pointers and doesn't own data.
2016-06-10 21:06:56 +02:00
Emil Segerås
7501b4fbfd Run FileOptimizer on default skin & font bitmaps. 2016-06-03 21:04:17 +02:00
Emil Segerås
3060857345 Merge pull request #73 from mgerhardy/patch-1
fixed compilation with gcc 6.1.1
2016-06-03 21:02:49 +02:00
Martin Gerhardy
edc090368e fixed compilation with gcc 6.1.1
```
                 from /home/mgerhardy/turbobadger/tb/tb_image_loader_stb.cpp:30:
/usr/include/c++/6/cstdlib:124:11: error: ‘::div_t’ has not been declared
   using ::div_t;
           ^~~~~
/usr/include/c++/6/cstdlib:125:11: error: ‘::ldiv_t’ has not been declared
   using ::ldiv_t;
           ^~~~~~
/usr/include/c++/6/cstdlib:127:11: error: ‘::abort’ has not been declared
   using ::abort;
           ^~~~~
/usr/include/c++/6/cstdlib:128:11: error: ‘::abs’ has not been declared
   using ::abs;
           ^~~
/usr/include/c++/6/cstdlib:129:11: error: ‘::atexit’ has not been declared
   using ::atexit;
           ^~~~~~
/usr/include/c++/6/cstdlib:132:11: error: ‘::at_quick_exit’ has not been declared
   using ::at_quick_exit;
           ^~~~~~~~~~~~~
/usr/include/c++/6/cstdlib:135:11: error: ‘::atof’ has not been declared
   using ::atof;
           ^~~~
/usr/include/c++/6/cstdlib:136:11: error: ‘::atoi’ has not been declared
   using ::atoi;
           ^~~~
/usr/include/c++/6/cstdlib:137:11: error: ‘::atol’ has not been declared
   using ::atol;
```
2016-06-02 14:07:28 +02:00
Emil Segerås
0d02f3a3ad Merge pull request #55 from jaynus/master
Initial implementation of "modern" CMake system
2016-03-07 09:24:09 +01:00
Emil Segerås
037c8aed9b Merge pull request #64 from fungos/master
Fixes cross-compilation with Google's Native Client toolchain
2016-02-21 20:03:34 +01:00
Danny Angelo Carminati Grein
442eea2d9b Fixes compilation for cross-compilation with Google's Native Client
toolchain.
2016-02-20 20:31:13 -05:00
Emil Segerås
d1aff4af9a Added missing TB_RENDERER_GL ifdef. Fixes #61 2016-02-13 14:34:51 +01:00
Emil Segerås
97059bb2cb Merge pull request #59 from Cleroth/pull_requests
Use constexpr in MSVC2015+

Macros need to use namespace as they're not actually in the namespace
2016-02-07 14:18:59 +01:00
Cleroth Sun
e4dbfdeef3 Use constexpr in MSVC2015+; Macros need to use namespace as they're not actually in the namespace 2016-02-06 18:27:41 +01: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
Emil Segerås
084a3f3ab8 Fixed endless focus loop. Fixes #52 2016-01-08 20:36:17 +01:00
Emil Segerås
487dd0f248 Fixed typo in SetVisibility. Fixes #51. 2015-12-16 19:14:34 +01:00
Emil Segerås
10c7361c68 Merge pull request #48 from rongzhou/master
Cleanup unnecessary comma
2015-11-02 17:26:15 +01: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
78f44600fc Merge branch 'glfw_3_1_1' 2015-07-26 09:40:54 +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
3e6464d1db Compile fixes for new toolchains on Android 2015-07-02 14:12:00 +02:00
Emil Segerås
5596f37f84 Modified and moved comment. 2015-07-01 14:10:56 +02:00
Emil Segerås
91912d3ffe Merge pull request #36 from LittleCodingFox/master
Added PointerUp/Down consume support
2015-07-01 13:50:40 +02:00
Emil Segerås
b82514cc34 Use TBTempBuffer instead of manual deallocation. Fixes #33
Also cleaned up unused code.
2015-07-01 13:47:30 +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
e1100986d7 If no group root is found, use absolute root. 2015-06-25 19:48:07 +02:00
Emil Segerås
26af4e9aca Added group-id support for TBButton. 2015-06-25 19:48:06 +02:00
Emil Segerås
18edf36e7c Renamed & made ToggleGroup public as UpdateGroupWidgets. 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
Emil Segerås
101ec6731f Added getter for skin fragment manager.
So external code can add more fragments in the same fragment
manager (and improve batching).
2015-05-14 09:21:26 +02:00
Emil Segerås
36c1f30b81 Merge pull request #38 from l0calh05t/master
64-bit build fix
2015-05-02 09:34:31 +02:00
l0calh05t
79723345bc 64-bit build fix 2015-04-29 23:15:36 +02:00
Nuno Silva
08062f0227 Added PointerUp/Down consume support; 2015-02-02 16:30:17 +00:00
Emil Segerås
4105bc5aec Cleanup linux ifdef in glfw port 2014-12-30 13:25:00 -08:00
Emil Segerås
60f387eec9 Added support for local node value references.
It's sometimes much more convenient to be able to look up
values locally instead of from other trees or including local
node branches.
2014-12-18 14:18:24 -08:00
Emil Segerås
41e7dcc5bc Added some more predefined keyboard shortcuts. 2014-11-02 18:54:15 +01:00
Emil Segerås
305fc9e76d Moved child index methods to TBWidget from TBTabContainer. 2014-11-02 18:26:46 +01:00
Emil Segerås
f2eb845f72 Use visibility for pages in TBTabContainer.
Instead of using opacity.
Also implement SetValue/GetValue for current page.
2014-11-01 21:32:29 +01:00
Emil Segerås
579174ef5f Added OnVisibilityChanged 2014-11-01 21:32:28 +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
Emil Segerås
6377253c79 Fix #30. Use -std=gnu++0x instead of -std=c++11.
Apparently the new standard is strict about POSIX functions that are
not part of the standard. strdup is used in a few places and need to
be replaced to change back to -std=c++11.
2014-10-29 21:34:09 +01:00
Emil Segerås
ebf9695a4f Removed dependency strtok_r/s. 2014-10-29 21:30:17 +01:00