David Rowe
732ad8f993
Use valid font for Windows so that '-'s are displayed
2014-11-24 18:33:10 -08:00
Atlante45
ae3bcc8f06
No more .f
2014-11-19 16:53:39 -08:00
David Rowe
8ac3aba2bd
Make text overlays apply alpha to text as well as background
2014-11-11 17:54:02 -08:00
Brad Hefta-Gaub
3a90e869d4
Revert "CR for Job #20140 - Add Overlays.getTextWidth"
2014-11-07 21:50:19 -08:00
David Rowe
02f6f6769b
Enable different copies of otherwise identical text renderers
...
Needed when using computeWidth() because it messes up draw() rendering.
2014-11-07 08:56:50 -08:00
Sam Gateau
c842060dc5
fix names for stream and Batch interface
2014-11-04 14:51:57 -08:00
Sam Gateau
fba1526389
Migrating the model rendering code to use the new gpu api for input buffers and stream format
2014-11-03 09:56:14 -08:00
Sam Gateau
2390559969
INtroducing the stream format and the Stream and making it work for the model mesh
2014-10-31 10:02:26 -07:00
Sam Gateau
1fc78e4277
Fixing Andrzej's comments
2014-10-09 17:18:51 -07:00
samcake
9f0936de53
Improve the TextRenderer::draw(), first step
...
- Introduce a managed Buffer for data to be used on the GPU. THis is the first type of resource (second will be texture) that we plan to use in the graphics engine in the long term. this is an api agnostic replacement to QGLBuggerObject
It's in the new file gpu/Resource.h(.cpp)
- Add two gpu::Buffers in the TextRenderer that collect all the glyph vertices (coords + texcoords + color) during the for loop on the string characters of the TextRenderer::draw(). Right now the text glyphs are then drawn in one draw call (and not one per character) at the end of the function.
THe step 2 plan is to keep on collecting all the glyphs from all the TextRenderer::Draw() issued during one frame and to draw all of them in a single drawcall. We decided to split the task in 2 so it's easier to review.
2014-10-09 10:17:50 -07:00
Sam Gateau
dda7c6699e
backup current work on TextRenderer
2014-10-07 23:52:00 -07:00
Andrzej Kapolka
de8dd4cecc
Share instances of TextRenderer.
2014-09-10 18:55:36 -07:00
Stojce Slavkovski
6365f6b857
Extend TextOverlay to accept font size
...
Fix TextRenderer color rendering
2014-06-07 22:24:35 +02:00
Stephen Birarda
ae4b8348a2
fix header include guards via regex
2014-04-09 12:03:17 -07:00
Stephen Birarda
6a51df9e38
initial regex replacement of headers
2014-04-08 17:30:36 -07:00
ZappoMan
ef11865d24
implement text overlay support
2014-02-15 21:13:44 -08:00
tosh
4385fc31e8
adds missing include "InterfaceConfig.h" for OpenGL types
2013-05-21 00:59:29 +02:00
Andrzej Kapolka
00171eccbb
Slight fix for shadows; we were drawing an unnecessary layer of text.
2013-05-16 16:23:11 -07:00
Andrzej Kapolka
26badc56e0
Added shadow and outline effects to TextRenderer, use the shadow effect in
...
our text to separate it from the background.
2013-05-16 16:10:38 -07:00
Andrzej Kapolka
39a70ce9e7
Rather than Xs, use a "solid block" pseudo-character to draw a bar. Tweaked
...
the colors to indicate the pressed key again.
2013-04-30 11:06:23 -07:00
Andrzej Kapolka
ccdc1146a2
Removed cut and paste error from CMake file, made a couple variables in
...
TextRenderer more descriptive.
2013-04-30 10:26:47 -07:00
Andrzej Kapolka
34f2a28114
Delete our glyph textures on destruction.
2013-04-30 10:04:01 -07:00
Andrzej Kapolka
a8c28a6d2a
First stab at text rendering by rendering glyphs (using Qt's font rendering)
...
into textures, storing the associated metrics, and drawing strings as
sequences of textured quads.
2013-04-29 18:54:12 -07:00