Commit Graph

65 Commits

Author SHA1 Message Date
Emil Segerås
d8e49097e8 Removed deprecated TBAddon 2016-07-05 21:07:42 +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
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
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
e690e301c4 Moved GLFW defines to project (windows). 2014-04-21 14:34:44 +02: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
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
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
c3b3b3fe0c Moved animation files to tinkerbell core. 2014-01-07 21:26:01 +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
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
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
dfb578e89a Refactorized batching into new TBRendererBatcher.
So it can serve many renderer backends.
2013-10-09 07:14:57 +02:00
Emil Segerås
b5d70cd4ea Renamed TBParser.h -> tb_parser.h.
Now all source file names are consistent!
2013-10-01 19:57:16 +02:00
Emil Segerås
b466b915ed Moved & renamed parser/TBNodeTree.h to tb_node_tree.h.
It's not part of the parser at all.
2013-10-01 08:10:12 +02:00
Emil Segerås
f294f85afc Added option to create missing nodes on get. 2013-09-21 20:51:03 +02:00
Emil Segerås
918c43bf57 Added TBRegion.
Should be useful for a lot of stuff.
2013-08-28 07:48:01 +02:00
Emil Segerås
d73e3d56a2 Fixed compilation for windows using glfw 3.0.1. 2013-08-08 10:59:04 +02:00
Emil Segerås
8c25e04e39 Major improvements to pointer/touch input:
List of changes:
-Refactorized virtual scroll methods and introduced virtual GetScrollInfo.
-Added TBScroller to do slow down scroll after panning.
-Added TBScrollerSnapListener for snapped smooth scrolling.
-Added keyboard scroll support in TBScrollContainer and TBSelectList.
-Added possibility to cancel EVENT_TYPE_CLICK for current touch (stopping scroll should not cause click)
-Added flag to TBWidgetEvent to distinguish cursor base pointer events from touch events (Fixes issue #2).
 --Pan TBEditField on touch pointer events instead of doing selection scroll.
 --Touch events should not result in setting the hover state automatically.
2013-07-10 21:03:44 +02:00
Emil Segerås
0342c25bf4 Updated visual studio projects to use toolset v110. 2013-06-19 20:21:41 +02:00
Emil Segerås
aa3001cc9b Runtime debug settings:
-Moved config defines and debug defines to dedicated files.
-Made debug settings slightly more handy (change stuff runtime instead of toggling defines and recompile everything).
2013-06-15 21:16:41 +02:00
Emil Segerås
a073e5fca3 Changes to dimensions handling:
- Don't switch TBValue type when going from string to number (preserves numbers unit).
 - Fixed so parser handles numbers with units correctly.
 - Removed TBPx16. Everything is converted to pixels anyway and it was inconsistently used.
2013-03-04 18:28:41 +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
18dd588552 Made it possible to set font from resource.
Also added unit tests for TBPx and TBColor.
2012-12-30 16:11:46 +01:00
Emil Segerås
9a7968cc07 Move demo & integration files to more suitable folders. 2012-11-13 18:25:41 +01:00
Emil Segerås
1451647d93 Separate the demo code from the demo integration and renderer. 2012-11-13 18:24:59 +01:00
Emil Segerås
26be187db1 Added edge fadeout to editfields too and moved to util file. 2012-11-11 10:49:27 +01:00
Emil Segerås
f53314b253 fixup! Renamed port_glut.cpp -> port_glfw.cpp 2012-11-03 17:36:25 +01:00
Emil Segerås
70321ae449 Moved clipboard implementations to dedicated files. Also turned hardcoded value into system getter. 2012-10-17 20:42:10 +02:00
Emil Segerås
fee08e5698 Switched to glfw 2012-09-16 21:09:52 +02:00
Emil Segerås
ec9b7054bb Removed freeglut 2012-09-16 20:34:05 +02:00
Emil Segerås
7f363571ad Move some classes from tb_select.h/cpp to new files. 2012-09-08 19:03:13 +02:00
Emil Segerås
aa12df5758 Work on model/view API's for TBSelectList:
Now the viewers can be updated when the model (item source) is changed.
Moved demo ListWindow code to separate files and fixed some related stuff.
2012-09-08 18:38:23 +02:00
Emil Segerås
701bc3f676 Enabled multiprocess compilation 2012-08-25 14:33:24 +02:00
Emil Segerås
7325f95f1a Moved readme & integration text files to tinkerbell project. 2012-08-25 13:09:08 +02:00
Emil Segerås
5aaf4aea50 Fix for static library linking.
Enabled "Use library dependency inputs" because otherwise many
used classes gets optimized away (visual studio bug?)
2012-08-25 13:07:35 +02:00
Emil Segerås
7ee0ac9d94 Moved tinkerbell to static library (separate project) 2012-08-25 13:05:02 +02:00
Emil Segerås
3c21fba7c8 Added TBToggleContainer & TBSection etc.
Automates some really tedious UI tasks.
2012-08-12 12:45:09 +02:00
Emil Segerås
11b391520d Added parser unit tests, and support multiline syntax for text. 2012-07-28 10:54:02 +02:00
Emil Segerås
dfd6063e16 Made string concatenation with TBTempBuffer a little more convenient. 2012-07-26 21:28:54 +02:00
Emil Segerås
0a027e3b6a Added condition support to skin, and positioning support for skin type image. 2012-07-26 17:39:53 +02:00
Emil Segerås
cd175fcea4 Added TBAddon system, and TBImage, TBImageManager, TBImageWidget:
-Makes it easy to extend tinkerbell with new systems & widgets.

-TBImageWidget loads & shows images dynamically (so it's easy to show
  images that are rarely showed and should not be part of the skin).
2012-07-08 21:10:12 +02:00
Emil Segerås
e37e0f328f More work on fonts:
-TBBitmapFragments can be removed individually. Free space is maintained by new TBSpaceAllocator class.
-The glyph cache is now a real cache (forgets least recently used glyph)
-Changes to batcher to handle flushing properly when removing fragments.
-Changes to batcher to wait with validating fragments bitmap until drawing, to avoid flush after each character when the glyph cache is full.
2012-07-06 15:26:42 +02:00
Emil Segerås
80a6123235 Some cleanup of demo files & work on resource editor.
Also made a template version of TBGenericStringItemSource to avoid casts to subclasses of TBGenericStringItem.
2012-06-25 18:36:16 +02:00