Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-02-01Cleanup: remove redundant, invalid info from headersCampbell Barton
BF-admins agree to remove header information that isn't useful, to reduce noise. - BEGIN/END license blocks Developers should add non license comments as separate comment blocks. No need for separator text. - Contributors This is often invalid, outdated or misleading especially when splitting files. It's more useful to git-blame to find out who has developed the code. See P901 for script to perform these edits.
2019-01-28Cleanup: sort forward declarations of enum & structCampbell Barton
Done using: source/tools/utils_maintenance/c_sort_blocks.py
2019-01-26Correct build error removing includesCampbell Barton
2019-01-26Cleanup: remove redundant BKE/BLI/BIF headersCampbell Barton
2019-01-23Cleanup: use eGPU prefix for GPU enum typesCampbell Barton
2019-01-22Cleanup: Remove unused variableSergey Sharybin
2019-01-22Cleanup: minor changes to reduce code duplicationCampbell Barton
D4236 by @sobakasu w/ edits.
2019-01-22Cleanup: de-duplicate font loading codeCampbell Barton
Part of D4236 by @sobakasu
2019-01-21Cleanup: rename GPU function to set buffer lengthCampbell Barton
2019-01-14Add font selection to VSE text stripsRichard Antalik
Allows users to select a font for text strips in the video sequence editor. Related: 3610f1fc43d0 Sequencer: refactor clipboard copy to no longer increase user count. Reviewed by: Brecht Differential Revision: https://developer.blender.org/D3621
2019-01-06Cleanup: add trailing commas to structsCampbell Barton
Needed for clang formatting to workaround bug/limit, see: T53211
2018-12-24Fix/cleanup another bunch of UI messages issues.Bastien Montagne
Also (mostly in comments): behaviour -> behavior (we use American English).
2018-12-24Cleanup: First batch of UI messages fixes (typos, final points...).Bastien Montagne
Also contains some code typo fixes (mostly, adtaptative -> adaptive, former is nearly innexistant in English, let's stick to simple valid words ;) ).
2018-10-17Cleanup: remove some #if 0 blocksJacques Lucke
Reviewers: brecht, campbellbarton Differential Revision: https://developer.blender.org/D3802
2018-10-03Improvements to internals blf_font's `blf_font_width_to_strlen()`/`to_rstrlen()`Bastien Montagne
`to_strlen` just benefits from using pre-computed kerning table for ascii chars (gives about 30% speed improvements). `to_rstrlen` was re-written and heavily simplified, basically using same logic as `to_strlen`, and `BLI_str_find_prev_char_utf8()` to loop backward in the string, instead of looping forwards the whole string, storing each gliph's width in temp array, and looping backward on that temp array to find final string matching expected width. Gives about 70% speed improvements! And both functions can now share their core logic.
2018-08-21Merge branch 'master' into blender2.8Brecht Van Lommel
2018-08-21UI: disable new text hinting from D3201 by default for now.Brecht Van Lommel
This changes the text hinting setting to be an enum with options Auto / None / Slight / Full. The default is Auto which currently disables hinting. The hinting was tested with a new FreeType version, but this is not what is used on the buildbots an official release environment, and the fonts look quite bad because of that. Once FreeType has been upgraded we can change the default. Even then the results are not ideal, perhaps due to missing subpixel positioning and linear color blending support in BLF.
2018-08-15UI: tweak drawing of header status text for transparent headers.Brecht Van Lommel
2018-07-31Merge branch 'master' into blender2.8Campbell Barton
2018-07-31BLF: replace global aa pref w/ monochrome flagCampbell Barton
Now disabling anti-aliasing doesn't impact sequencer, render stamp etc.
2018-07-23Fix large font drawing blurriness in a better way.Brecht Van Lommel
GPU_LINEAR is there for shadow font blurring, the real issue was lack of rounding for the batch offset.
2018-07-20Fix incorrect magnification filter for text texture.Brecht Van Lommel
Barely any visible difference, except when drawing big custom text with the Python API.
2018-07-18GWN: Port to GPU module: Replace GWN prefix by GPUClément Foucault
2018-07-18GWN: Port to GPU module: Move files to GPUClément Foucault
This does not include all the struct and type renaming. Only files were renamed. gwn_batch.c/h was fusioned with GPU_batch.c/h gwn_immediate.c/h was fusioned with GPU_immediate.c/h gwn_imm_util.c/h was fusioned with GPU_immediate_util.c/h
2018-07-15GPU_matrix: use Blender's naming conventionsCampbell Barton
Thanks to @sergey for review
2018-07-10GPUTexture: Refactor of texture creation & new featureClément Foucault
- Texture creation now requires explicit data type. - GPU_texture_add_mipmap enable explicit mipmap upload. - GPU_texture_get_mipmap_size can be used to get the size of a mipmap level of an existing GPUTexture - GPU_texture_read let you read back data from a gpu texture.
2018-06-25Cleanup: code styleCampbell Barton
2018-06-24Fix most of 'disappearing' first letter in right-aligned labels.Bastien Montagne
BLF' blf_font_width_to_strlen() could easily generate strings with up to nearly two pixels length over requested limit! Note that the fiddling between floats and ints values make things really confusing here... :/ There is still a few limit cases where, even though computed str length is now always below reauested limit, we still get first letter disappearing, no idea why currently.
2018-06-22Blenfont: Fix texture not being initialized in recent refactor.Ray Molenkamp
Caused some gpus to have issues with the font shadows. thanks @fclem for helping tracking this one down.
2018-06-22Cleanup: styleCampbell Barton
2018-06-22GLRefactor: Refactor bf_blenfont to use GPUTexture instead of raw GL calls ↵Ray Molenkamp
and types. In an effort to centralize all opengl calls in the codebase, this patch replaces the raw opengl calls in bf_blenfont with GPUTexture so it's no longer depended on opengl headers. reviewer: Brecht Differential Revision: https://developer.blender.org/D3483
2018-06-08Merge branch 'master' into blender2.8Campbell Barton
2018-06-08Cleanup: trailing spaceCampbell Barton
Remove from blender/nodes, collada, blenfont & render.
2018-06-01Merge branch 'master' into blender2.8Campbell Barton
2018-06-01Cleanup: trailing whitespace (comment blocks)Campbell Barton
Strip unindented comment blocks - mainly headers to avoid conflicts.
2018-04-26BLF: Fix problem with drawing with fonts with multiple size.fclem
Fix T54838 : Text display glitch w/ fonts at different sizes. This was cause by the cache not being flushed when changing font texture.
2018-04-21Cleanup: styleCampbell Barton
2018-04-16Cleanup: indentationCampbell Barton
2018-04-10BLF: Style: Fix bad casts.Clément Foucault
This could have caused overflow issue.
2018-04-10BLF: Fix broken shadows on certain hardware.Clément Foucault
This was due to uninitialized texture space.
2018-04-09BLF: Fix assert when drawing very small chars.Clément Foucault
2018-04-08BLF: Perf: Use BLF_KERNING_STEP_FAST for other functions.Clément Foucault
2018-04-08BLF: Fix problem with bound texture.Clément Foucault
Previous code was assuming that the glyph texture would remain bound to GL_TEXTURE0 until the cache would be drawn. This is not always the case, so better save the texture and rebind it before drawing.
2018-04-08BLF: Opti: More clever sampling for blured glyphs.Clément Foucault
Reduce the number of sampled required for blurring by using filtered texture samples. This changes the result a bit but it is not noticable.
2018-04-08BLF: Opti: Draw only one quad per shadow/blurred glyph.Clément Foucault
This port the Blurring of blf fonts to the final drawing shader. We add a bit of extra padding to each glyph so that jittering the texture coord does not sample the neighbor glyphs.
2018-04-07UI: Fix waveform widget text drawing.Clément Foucault
Flush the text cache so that we have proper scissor test and ordering.
2018-04-06UI: Perf: Use widget base batchingClément Foucault
Overall 10% more performance on general UI drawing time. This commit can introduce ordering problem on some elements. In this case you need to flush the widget cache to ensure the element that is going to be drawn is drawn on top of any widget base. To flush the cache use UI_widgetbase_draw_cache_flush. This is already done for BLF and Icons.
2018-04-01Merge branch 'master' into blender2.8Campbell Barton
- Undo that changes modes currently asserts, since undo is now screen data. Most likely we will change how object mode and workspaces work since it's not practical/maintainable at the moment. - Removed view_layer from particle settings (wasn't needed and complicated undo).
2018-03-31BLF: Remove debug printClément Foucault
"this is not the commit you're looking for"
2018-03-31BLF: Fix Vertical/Horizontal layout switch.Clément Foucault
This was breaking the first drawcall after a simple/non-simple shader switch.