57 Commits

Author SHA1 Message Date
twinaphex
581c856676 Attempt to make gl_raster_font_flush_block more robust 2015-12-04 01:04:27 +01:00
twinaphex
239ae7de53 Move gl_common to gfx/common 2015-11-17 08:01:33 +01:00
twinaphex
780bf74273 Try to not use glDeleteTextures directly outside 2015-11-09 01:50:05 +01:00
radius
7bddda2252 make the OSD coordinates relative to screen size instead of viewport size 2015-11-08 17:50:40 -05:00
twinaphex
a79b571d7b Static code analysis fixes 2015-09-28 16:20:26 +02:00
neville
c9de30dd98 (OSX PPC) Compile in HAVE_STB_FONT 2015-07-19 23:09:22 +02:00
neville
c43e33a816 (gl_raster_font.c) Certain code will only work for GL 3.0 and up 2015-07-19 22:59:33 +02:00
Higor Eurípedes
b1c9d48368 (gl_raster_font) Reorder ancient/modern checks 2015-07-19 13:01:28 -03:00
Higor Eurípedes
10345e0899 (gl_raster_font) Add back the old compat code 2015-07-19 12:55:30 -03:00
Higor Eurípedes
f9f98f9f2e (gl_raster_font) Enable GL_R8 atlas for GL >= 3 2015-07-19 12:55:30 -03:00
Higor Eurípedes
4f69b5e34b (gl_raster_font) Use a smaller pixel format to store the font atlas 2015-07-19 12:55:30 -03:00
twinaphex
c697923eb6 Create video_common.c 2015-07-12 05:30:04 +02:00
twinaphex
6bb0d87d87 Rename gl_font_raster_block to gfx_font_raster_block 2015-07-12 04:07:06 +02:00
twinaphex
527c0c29d4 Rename gl_coords to gfx_coords 2015-07-12 03:57:06 +02:00
Alcaro
febcbc5ce4 C89 cleanups part 2 2015-06-26 17:48:43 +02:00
Higor Eurípedes
593e835228 (gl_raster_font) Add early return in gl_raster_font_render_msg() 2015-06-23 14:51:29 -03:00
natinusala
838cf74f42 (gl_raster_font) Fixed the alignment support for line by line drawing
Each line was drawn using the full message's length so the alignment
was broken. I fixed it by adding the message length to get_message_width
so every line has its own length for get_message_width.
2015-06-21 17:24:35 +02:00
Higor Eurípedes
42caab87aa (gl_raster_font.c) Add early return and fix identation in gl_raster_font_render_message 2015-06-14 12:36:29 -03:00
Andre Leiradella
7be1b2b9cf removed memory allocation in gl_raster_font_render_message 2015-06-05 18:14:05 -03:00
natinusala
9b276d80d2 Added line_height for freetype and cleaned up comments 2015-05-30 15:41:47 +02:00
Nathan SALAUN
b756111aac Added the get_line_height to font_renderer_driver_t and a first implementation of it in gl_raster (\n) and bitmapfont 2015-05-27 12:20:31 +02:00
Twinaphex
33fc77f221 remove unused variables 2015-05-20 02:41:33 +02:00
twinaphex
0bf3cf97e7 (Font) Refactor font code to no longer use global 2015-05-20 01:48:51 +02:00
Higor Eurípedes
59e0f7221d (gl_raster_font) Fix typo 2015-05-19 15:11:05 -03:00
Higor Eurípedes
dc5460effd (gl_raster_font) Fix invalid read when pushing vertices
Calling both glsl shader->set_coords() or gl_coord_array_add() resulted
in an invalid read when memcpy()ing coords->lut_tex_coord.
2015-05-19 13:45:22 -03:00
natinusala
197a505e4c Adding gl_get_message_width to gl_raster_font 2015-05-16 16:38:13 +02:00
natifion
efd3f7cc58 (Font) Added get_message_width to font_renderer_t 2015-05-16 16:32:16 +02:00
natinusala
d326fe87af Fixed scale with text alignment 2015-05-14 18:16:34 +02:00
twinaphex
a9dee4877e Create set_viewport wrapper function - threaded video mode's
set_viewport function does not work yet
2015-04-26 19:46:59 +02:00
twinaphex
b6fbf5a335 (Menu) Start getting rid of gl->win_width/gl->win_height and start
creating global->video_data.width and global->video_data.height
which should be used instead in menu drivers
2015-04-26 05:21:43 +02:00
twinaphex
6f84b5dbe5 gl_raster_font_bind_block - block can be NULL 2015-04-25 00:42:47 +02:00
Twinaphex
4c4cdd49c6 (iOS/others) gl_raster_font_get_glyph - prevent a crash when
font driver has not yet been initialized and ident is NULL
2015-04-22 23:38:42 +02:00
twinaphex
20b5fb056f Change signature returntype of get_glyph to const struct font_glyph * 2015-04-22 23:33:43 +02:00
twinaphex
ce27f9f887 (Fonts) Cleanups 2015-04-21 17:13:55 +02:00
twinaphex
16b7b454a9 Move gl_common.c to gfx/drivers 2015-04-09 04:57:17 +02:00
twinaphex
532d112ff8 (Font) Combine font_d3d_driver and font_gl_driver 2015-04-03 20:36:19 +02:00
twinaphex
be7036b489 (gl_raster_font.c) Namespace functions 2015-04-03 03:27:34 +02:00
Higor Eurípedes
986367cf7d (gl_raster_font.c) Fix block (un)binding 2015-04-02 20:12:32 -03:00
Jean-André Santoni
158c79ed9e (Menu) Improved text alignment for gl menu drivers 2015-03-31 14:00:30 +02:00
twinaphex
2c555082ee D3D and GL now use the same font driver interface 2015-03-30 00:55:39 +02:00
twinaphex
f3e5ed9854 Change signature of get_glyph 2015-03-29 22:36:30 +02:00
twinaphex
0443624ee2 Fix gl_raster_font.c 2015-03-29 22:28:17 +02:00
twinaphex
65e812da4c Change signatures of gl font driver callback functions 2015-03-29 21:59:01 +02:00
Higor Eurípedes
b9f40fc1c9 (XMB) Fix raster block usage 2015-03-27 16:15:54 -03:00
Higor Eurípedes
2115e806a7 (GLUI) Fix fullscreen rendering 2015-03-26 14:07:39 -03:00
Twinaphex
b671d96e20 Remove some unused variables 2015-03-25 18:26:11 +01:00
Higor Eurípedes
8fc5818130 (GLUI,XMB) Fix OSD 2015-03-25 13:42:34 -03:00
Higor Eurípedes
d3d976c92b (GLUI) Only update text vertices when needed 2015-03-25 13:04:54 -03:00
Higor Eurípedes
8b7bbc7975 (gl_font_renderer_t) Implement swappable blocks and remove end_block pointer 2015-03-25 13:04:53 -03:00
Higor Eurípedes
ed6f1cfdd3 (gl_raster_font) Make use of gl_coord_array_t 2015-03-25 13:04:53 -03:00