Commit Graph

304 Commits

Author SHA1 Message Date
Crypto City
8ceb7f9d70 make this build on windows 2020-06-07 17:21:18 +00:00
Crypto City
65ad6ede62 Add simple support for separate mouse buttons 2020-02-09 04:04:05 +00:00
Crypto City
76de76b4e9 build integration and lumak's urho3d tweaks 2020-01-11 15:09:23 +00:00
Michael Tesch
1579a1f1e1 fix last commit - for plain GL renderer too. 2020-01-03 15:21:51 +01:00
Michael Tesch
34e884b375 dont need EVAL_CTORS when using llvm wasm backend 2019-12-18 17:44:35 +01:00
Michael Tesch
a8d64fcc91 cleanup for llvm emscripten, cleanup resources 2019-12-18 15:14:46 +01:00
michael tesch
b0d04f93ef Merge branch 'hastybadger' of github.com:tesch1/turbobadger into hastybadger 2019-11-22 21:22:23 +01:00
michael tesch
e6d65448d6 cleanup some compiler warnings 2019-11-22 21:22:19 +01:00
Michael Tesch
b950317192
Hb skin (#15)
* HB documentation, fixed an nsvg bug

* fix emscripten demo builds

* fix func sig for win/glfw TBDebutOut()
2019-11-22 17:36:17 +01:00
Michael Tesch
ee287b481b
minor code tweak (#13) 2019-11-19 10:50:34 +01:00
Michael Tesch
82a123fd7d minor fixes 2019-11-15 15:48:05 +01:00
Michael Tesch
c23159df2b
Hb cmake2 (#11)
* remove TBSystem::GetRoot.  fix glew header

* make runtime debug info an indepedent setting

* windows build on travis

* fix IOS and macos high-dpi

* fix win+sdl2 combo

* try to auto detect what can be make-all'd
2019-11-14 16:59:54 +01:00
michael tesch
f2e78ccc56 make sure to include glew.h on windows before gl.h 2019-11-14 10:07:19 +01:00
michael tesch
5ef40edf14 use TB_BACKEND_GLFW to identify glfw 2019-11-14 00:01:16 +01:00
michael tesch
486445ce60 stuff for msvc 2019-11-13 21:22:10 +01:00
michael tesch
4e881f2ac7 apparently MSVC doesnt like this 2019-11-13 21:10:59 +01:00
michael tesch
e4d66f9454 get Demo working on iOS 2019-11-13 21:04:29 +01:00
michael tesch
b48b164672 cleanup signed build for iOS & macOS 2019-11-13 19:37:17 +01:00
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
63608b34c6 packaging for hb 2019-11-07 18:23:47 +01:00
Michael Tesch
affca5bc42 more build type cleanup 2019-11-07 15:53:26 +01:00
Michael Tesch
5ff2f27581 rework glfw and sdl2 libraries, add glfw emscripten build option 2019-11-07 15:35:46 +01:00
michael tesch
965fc73a87 build sdl2 properly as a subdirectory 2019-11-07 13:19:29 +01:00
Michael Tesch
7e8093ab16 cleanup compiler warning 2019-11-05 17:46:31 +01:00
Michael Tesch
cd1161c4cf
handle timer interrupt correctly - call processesmessages (#7) 2019-03-29 15:34:55 +01:00
Michael Tesch
508a865cee build sdl/wasm demo for gh-pages 2019-01-31 21:18:07 +01:00
Michael Tesch
1e88bddec9 removed glfw submodule, now in thirdparty/CMakeLists.txt 2019-01-30 16:59:45 +01:00
Michael Tesch
ab219147b1 cleanup cmake build & dependency situation 2019-01-30 16:43:32 +01:00
Michael Tesch
071ff2ca8e test build flags, more deflate, let editfield display formatted float
- add some sanitation flags to test builds
- OnDeflate correctly detects default vs. empty fields
- added 'format' field to TBEditField and TBTextField that
  lets (or will let) the float format for a text field be specified
- OnDeflate for TBTextFi8eld and TBEditField
2019-01-29 10:45:20 +01:00
Michael Tesch
06116752c3 fixed emscripten demo 2019-01-25 11:03:26 +01:00
Michael Tesch
ee308dcfb3 emscripben builds 2019-01-24 23:12:45 +01:00
Michael Tesch
c704aa4cd8 build for emscripen 2019-01-24 22:14:44 +01:00
Michael Tesch
cf616a8898 unfinished change of how to deal ith dependencies 2019-01-24 19:18:56 +01:00
Michael Tesch
7516b95e11 glfw turns q into Q if ctrl is down :-/ 2019-01-24 18:26:32 +01:00
Michael Tesch
00cbaa8781 more build flags, main.cpp 2019-01-24 18:08:53 +01:00
Michael Tesch
b647ebfe5b glfw demo working again 2019-01-24 17:58:54 +01:00
Michael Tesch
558d86d4e1 abstracting backend more 2019-01-24 12:36:21 +01:00
Michael Tesch
86f876d450 cleanup sdl when quitting 2019-01-24 11:46:23 +01:00
Michael Tesch
c050dd78f7 handle control-q as quit in demo, comments 2019-01-24 11:19:18 +01:00
Michael Tesch
8ed710c606 use more TBStr in place of (const char *) 2019-01-23 19:57:40 +01:00
Michael Tesch
1050b6bbd2 fix some types 2019-01-23 14:58:52 +01:00
Michael Tesch
71456eea3e fix demo 2017-10-17 18:44:03 +02:00
michael tesch
b623ee3f12 only prepend GetRoot to filename when not absolute 2016-09-06 14:24:24 +02:00
michael tesch
50859e14bd handle SDL_TEXTINPUT 2016-09-02 17:50:06 +02:00
michael tesch
819894f210 Merge branch 'master' into demo_sdl2 2016-07-20 17:48:01 +02: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
d8e49097e8 Removed deprecated TBAddon 2016-07-05 21:07:42 +02:00
Emil Segerås
bf6a639e7a Moved duplicated file to buffer code into TBTempBuffer::AppendFile. 2016-06-27 19:29:49 +02:00
Michael Tesch
e88393ce16 redraw on SDL window exposed event 2016-06-22 11:13:48 +02:00
michael tesch
2f55748bff added node write support, good enough for debugging 2016-06-17 21:03:51 +02:00