Commit Graph

43 Commits

Author SHA1 Message Date
Emil Segerås
31aa2f1359 Upgraded to glfw 3.1.1 for demo 2015-06-25 19:48:00 +02:00
Emil Segerås
e690e301c4 Moved GLFW defines to project (windows). 2014-04-21 14:34:44 +02: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
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
d73e3d56a2 Fixed compilation for windows using glfw 3.0.1. 2013-08-08 10:59:04 +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
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
f53314b253 fixup! Renamed port_glut.cpp -> port_glfw.cpp 2012-11-03 17:36:25 +01: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
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
Emil Segerås
9eac332545 Added context lost & restored listener.
Need to handle context lost & restored in more places than the
skin (in fonts), so the new listener API should be invoked by the
platform instead of just reloading the skin directly.
2012-06-21 16:32:46 +02:00
Emil Segerås
a01137cace New font handling:
-Added TBFontRenderer & TBFontFace etc. with glyph caching using
 TBBitmapFragment.
-Removed hardcoded window title bar height.
-Lots of work to get TBFontFace & TBFontDescription into use in widgets.
-Replaced old TdFont with a new bitmap font system using a TBFontRenderer
 backend. Supports characters in any range, glow and shadow.
2012-06-21 12:06:08 +02:00
Emil Segerås
f5adef3437 Unicode (utf-8) support:
-Added utf-8 conversion functions.
-Switched to utf-8 in clipboard implementation (windows)
-Switched to utf-8 on all resource files.
-Skip BOM character at the beginning of resource files.
-Made old TDFont system unicode aware (not supporting displaying unicode, but able to handle it)
2012-06-10 15:45:32 +02:00
Emil Segerås
9415864fc7 renamed test file 2012-05-28 19:08:56 +02:00
Emil Segerås
1eeb8547a2 Major changes to PStyleEdit and renaming to TBStyleEdit.
The PStyleEdit code was really old and crappy. This an attempt
to clean up, fix bugs and improve the design completly.

Work in progress - There is still issues to fix, especially with undo & linebreaks.
2012-05-27 21:34:54 +02:00
Emil Segerås
4797ac7104 Merge branch 'stb_image_wip' 2012-05-19 15:01:39 +02:00
Emil Segerås
45a3f348e8 Removed TDImage class. 2012-05-19 14:59:46 +02:00
Emil Segerås
0597ea3c68 Replaced lodepng with stb_image. Started removing TdImage. 2012-05-17 13:41:27 +02:00
Emil Segerås
1dd6739575 Disabled annoying MS warnings for release builds too. 2012-05-17 12:53:37 +02:00
Emil Segerås
30c09fa9a2 Moved parser/TBValue.h to tb_value.h 2012-05-16 08:41:55 +02:00
Emil Segerås
d5998d7d6b Added possibility to synchronize widgets values when changed.
Widgets can be connected to TBWidgetValue by the "connection" attribute in
resources (all TBWidgetValue should have unique names). Then the value
can always be set/get from TBWidgetValue instead of various pieces of UI.

Fixes ON_CHANGE event for TBEditField, TBInlineSelect.

Added handy GetText method that returns the string (with no status). Relying on RVO.
2012-05-16 08:41:42 +02:00
Emil Segerås
d0560b30a0 Added unit testing framework and safe linklist iterator. 2012-04-22 15:10:42 +02:00
Emil Segers
16fbfa2bda Added integration guide. 2012-02-28 20:18:25 +01:00
Emil Segers
9f3b6724de Added const expr hash support for compilers that support it.
Create all TBID with a TBIDC macro that turns into a simple uint32 compiletime.
2012-02-28 08:56:31 +01:00
Emil Segers
c63088d3d0 First commit to public rep 2011-12-14 08:42:33 +01:00