Aloshi
f9571b9389
TextEditComponent is now fixed-height and supports cursor-based editing.
...
Fixed a text-wrapping bug with consecutive newlines in Font::wrapText.
2013-09-07 17:46:26 -05:00
Aloshi
77fb840a4b
Added a basic ButtonComponent class.
2013-08-22 15:29:50 -05:00
Aloshi
df897c0b5a
Finally implemented TextCaches for TextComponent and TextEditComponent.
...
Huge boost in performance with rendering game descriptions.
(It's About Damn Time (TM))
2013-08-21 20:08:36 -05:00
Aloshi
11f774e019
Cache the result of Font::getDefaultPath().
...
(According to Very Sleepy, this was taking up 39% of render time :))
2013-08-21 16:18:20 -05:00
Aloshi
92adc41cd6
Fixed really sneaky texture deallocation bug.
...
Textures allocated with no path (e.g. the transition image which uses
copyScreen()) weren't being deinitialized with the renderer. Which meant
something else could take the old texture ID, and when the no-path texture
got destroyed, it would take a texture along with it.
2013-08-06 23:35:06 -05:00
Aloshi
55b71fab49
Fixed ScrollableContainer clipping.
...
Changed game select effect to interpolate more interestingly.
2013-08-06 22:46:25 -05:00
Aloshi
8d78052808
Finally use parenting in GuiGameList.
...
Added setCentered(bool) to TextComponent.
Fixed Font::sizeWrappedText to return an accurate width.
2013-07-23 01:27:28 -05:00
Aloshi
19c585ec22
Fix font texture filter (to be GL_NEAREST).
2013-07-15 22:57:50 -05:00
Aloshi
542d41c682
Move from homegrown Vector2 class to Eigen.
...
Pass a matrix (Eigen::Affine3f) in GuiComponent::render instead of doing
glTranslate behind the scenes.
2013-07-10 06:29:43 -05:00
Aloshi
c8900f4099
Moved to class-individualized static gets for resources.
...
See issue #95 for discussion.
2013-07-09 00:44:24 -05:00
Aloshi
d781cebfa1
Remove debug messages
2013-07-03 03:23:18 -05:00
Aloshi
6b373924d2
Moved Fonts to be Resources.
...
Moved Renderer::drawText stuff to the Font class.
Fonts are now used as std::shared_ptrs.
2013-07-03 02:54:55 -05:00
Aloshi
0a6196dd9f
Refactored Font class to use a TextCache for vertex data.
...
The TextComponent class should start using it soon.
2013-07-02 02:53:23 -05:00
Bim Overbohm
b187f05a16
Fix font rendering for fonts with horizontal bearing
2013-06-27 12:30:04 +02:00
Aloshi
aec15ba0a1
Refactored Font to use a Vertex struct and Vector2.
...
Fixed InputConfig error messages dumping to console and not logging.
Fixed skipped inputs being saved.
2013-06-14 07:34:12 -05:00
Aloshi
023bc44abd
Fixed a warning.
2013-06-14 06:26:04 -05:00
Bim Overbohm
8436c16426
Fix font rendering for big font sizes
...
This should fix #81 . If font creation fails because we're over max.
texture size, scale the glyphs down by some amount and then upscale the
text that is rendered. This gives a somewhat blurred image, but it works
for a lot more font sizes.
2013-06-12 14:42:09 +02:00
Bim Overbohm
a1353def89
Find proper font path in Windows
...
Build a font path boost can find. The font should be adjusted to
something that actually resembles DejaVuSerif...
2013-05-14 21:01:08 +02:00
Aloshi
ffe573d1d6
Ported to Windows.
...
Added --windowed for desktop builds.
2013-05-13 14:53:28 -05:00
Aloshi
a5f4749d5d
Added InputConfig saving/loading.
2013-04-11 17:27:27 -05:00
Aloshi
b01f2705de
More work on reinitialization. Fonts still not working.
2013-04-10 12:29:07 -05:00
Aloshi
04841ca436
More work.
...
I really am nuts.
2013-04-08 11:52:40 -05:00
Aloshi
2efca58869
Added a logging system to ES.
...
You should no longer see non-error output with ES except for "cleanly shutting down".
The new log file is located in ~/.emulationstation/es_log.txt.
If you notice any performance degredation, please tell me!
2013-01-04 17:31:51 -06:00
Aloshi
cadc9a9ec6
Added Gentoo's directory for DejaVu Serif, /usr/share/fonts/dejavu/DejaVuSerif.ttf, to the list of fonts to try.
2012-12-30 10:40:07 -06:00
Aloshi
807c4b2f5b
Added Arch Linux's path for the Deja Vu Seriff font to the list of default fonts.
2012-11-19 19:57:34 -06:00
Aloshi
fe030fb6c7
Added custom font support.
...
Check out THEMES.md for more information.
2012-10-31 09:46:06 -05:00
Aloshi
3ebb819a7c
Fixed up some things that were causing compiler warnings.
2012-10-28 18:07:05 -05:00
Aloshi
aa6506aec1
Began paving the way for custom font support.
...
Font sizes might be a little different than they were before - sorry about that!
2012-10-24 10:28:37 -05:00
Aloshi
8b1e061929
Reworked opacity to be stored in that wasted color byte.
2012-10-17 13:21:56 -05:00
Aloshi
358658a36d
Initial GuiAnimation added.
2012-10-17 12:15:58 -05:00
Aloshi
0468e64396
Fixed a bug with skipping over unicode characters.
2012-09-16 14:18:11 -05:00
Aloshi
9901a07fb6
Added some new theming tags.
...
See changelog.txt (September 15) for more details.
2012-09-15 16:24:33 -05:00
Aloshi
cac43474aa
Fixed reinitialization problems with the renderer.
2012-09-04 11:45:16 -05:00
Aloshi
07d8046a3e
Images are almost fully reimplemented.
...
Font sizing is pretty much fixed.
Just need to re-initialize textures with the renderer.
2012-08-29 16:52:25 -05:00
Aloshi
cdb63c4a4f
Image loading working.
...
Still doesn't resize, tile, or render with alpha (though it loads it).
2012-08-29 14:22:05 -05:00
Aloshi
0314a14849
New renderer starting to work.
...
Image loading still not working and font sizing is still off. Resolution is hardcoded.
2012-08-29 13:53:53 -05:00