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
2018-07-02Cleanup: use _f, _i suffix for GPU state APICampbell Barton
2018-07-01Cleanup: use '_len' suffix for line stippleCampbell Barton
2018-06-28GLRefactor: partially remove gl calls from source/blender/editors.Ray Molenkamp
This translates the gl calls to the new GPU_ wrappers from D3501. Given it's tedious and repetitive work, this patch does as much as it can with search + replace, the remainder of the gl calls will need to be manually dealt with on a case by case basis. This fixes 13 of the 28 failing editors when building without opengl. For the list of substitutions see D3502 Reviewers: brecht Differential Revision: https://developer.blender.org/D3502
2018-03-25GPUTexture: Small refactor.Clément Foucault
This includes a few modification: - The biggest one is call glActiveTexture before doing any call to glBindTexture for rendering purpose (uniform value depends on it). This is also better to know what's going on when rendering UI. So if there is missing UI elements because of this commit look for this first. This allows us to have "less calls" to glActiveTexture (I did not measure the final count) and less checks inside GPU_texture. - Remove use of GL_TEXTURE0 as a uniform value in a few places. - Be more strict and use BLI_assert for bad usage of GPU_texture functions. - Disable filtering for integer and stencil textures (not supported by OGL specs). - Replace bools inside GPUTexture by a bitflag supporting more options to identify texture types.
2018-02-14GPU: use alpha blend that works for drawing to transparent buffer.Brecht Van Lommel
It's unlikely to ever be intentional to square the source alpha, as happens with glBlendFunc, so this changes the blending throughout the code.
2017-09-26Cleanup: naming (GPU immediate util)Campbell Barton
2017-09-13Cleanup: use explicit 2d suffix for imm utilsCampbell Barton
Avoid ambiguity between 2d/3d (which were already named).
2017-08-05Merge branch 'master' into blender2.8Campbell Barton
2017-08-04Tracking: Undefine temporary defineSergey Sharybin
Missed this in previous commit.
2017-08-04Tracking: Remove limit of 50 points of the track historySergey Sharybin
Was quite stupid reason for this: static size of array. Now we allocate needed amount of points in heap if requested path length is getting too big.
2017-07-13Cleanup/rename etc. dashed line shaders.Bastien Montagne
Goal is to make them more modular, to allow more variants (variable single-color, thickness, ...) to be added without having to copy-and-change-one-line of whole chain of shaders.
2017-06-19Gawain API naming refactorCampbell Barton
Use consistent prefix for gawain API names as well as some abbreviations to avoid over-long names, see: D2678
2017-05-01Reworked version of dashed line shader.Bastien Montagne
Using geometry shader allows us to get rid of the 'line origin' extra vertex attribute, which means dashed shader no longer requires fiddling with those vertex attributes definition, and, most importantly, does not require anymore special drawing code! As you can see, this makes code much simpler, and much less verbose, especially in complex cases. In addition, changed how dashes are handled, to have two 'modes', a simple one with single color (using default "color" uniform name), and a more advanced one allowing more complex and multi-color patterns. Note that since GLSL 1.2 does not support geometry shaders, a hack was added for now (which gives solid lines, but at least does not make Blender crash).
2017-04-28Getting rid of setlinestyle: Clip drawing code.Bastien Montagne
This one has been painful, it's doing lots of nifty conditional drawing of all kind... Also, very nice illustration of how cumbersome it is to use dashed shader currently, we really need to find a simpler way at some point imho. But this is not critical issue either, for now we can live with some uglyness like that. :/
2017-04-16use immUniformColor instead of immUniform("color"Mike Erwin
The specialized color functions are better in every way: - faster lookup (don't have to match "color" string) - flexible inputs (RGB with separate alpha) - automatic alpha = 1.0 if not specified Sort of related to T49043
2017-04-15GPU Matrix API: clean up after 2D-3D unificationMike Erwin
See GPU_matrix.h & gpu_matrix.c for the important changes. Other files are mostly just updated to use the latest API. - remove unused functions, defines, enums, comments - remove "3D" from function names - init to Identity transform (otherwise empty stack) - gpuMatrixReset lets outside code return to initial state Part of T49450 Follow up to D2626 and 49fc9cff3b90
2017-04-07OpenGL: use PRIM instead of GL enum for immBeginMike Erwin
Getting ready for a Gawain API change... Part of T49043
2017-04-07OpenGL: transition away from GL_QUADSMike Erwin
Single quads are drawn as a TRIANGLE_FAN, with 4 verts in the same order. Multiple quads now use PRIM_QUADS_XXX and will need further work. Only 8 places still use this. Part of T49043
2017-04-06Gawain: VertexFormat_add_attrib (function name change)Mike Erwin
See intern/gawain for the API change. Other files are updated to use the new name. Also updated every call site to the recommended style: unsigned int foo = VertexFormat_add_attrib(format, "foo", COMP_ ... )
2017-04-05Cleanup: Move imm_draw utils into own fileCampbell Barton
These were in BIF_glutil which is documented to be removed, so best not define new API's there.
2017-03-21OpenGL: convert to new matrix API (part 2 of x)Mike Erwin
Part of T49450 For this batch I focused on usage of gpuMatrixUpdate_legacy.
2017-03-21OpenGL: convert to new matrix API (part 1 of x)Mike Erwin
Part of T49450 For this batch I focused on usage of (now-obsolete) macros in BIF_gl.h
2017-02-28clean up GL / GPU #includesMike Erwin
2017-02-24OpenGL: Make glaDrawImBuf_glsl functions compatible with new immDrawPixelsClément Foucault
And change relevant function calls.
2017-02-23OpenGl immediate mode: clip_draw.c and clip_graph_draw.c fixesLuca Rood
Fixed little typo in clip_draw.c and special case assert in clip_graph_draw.c (track segments with single point). Part of T49043
2017-02-16OpenGL immediate mode: clip_draw.cLuca Rood
Part of T49043
2016-06-10GPU: use basic-shader for line-stippleCampbell Barton
2016-01-27Tracking: Remove code which was dead for quite some time nowSergey Sharybin
2016-01-24Fix yet another case broken after glLineWidth() changesSergey Sharybin
Original patch didn't have any tests or what? =\
2016-01-23OpenGL: call glLineWidth less oftenMike Erwin
Each LINES draw call is now responsible for its own line width. No need to set it back to its 1.0 default after every draw. This eliminates half our calls to glLineWidth , similar to last week’s work on glPointSize.
2016-01-22OpenGL: cleanupMike Erwin
- LINE_STRIP to LINES when only drawing one - group state changes for easier reading - general cleanup
2016-01-16OpenGL: fixes related to GL_POINTSMike Erwin
I put all usage of GL_POINTS under the microscope. Fixed problems & optimized a couple of spots. - reduce calls to glPointSize by about 50% - draw selected & unselected vertices together for UV editor & EditMesh - draw initial gpencil stroke point the proper size - a few other smaller fixes New policy: each GL_POINTS draw call needs to set its desired point size. This eliminates half our calls to glPointSize (setting it back to its 1.0 default after every draw).
2015-12-06OpenGL: rename simple shader to basic shader.Brecht Van Lommel
2015-12-06OpenGL: use simple shader for texture drawing in a few places.Brecht Van Lommel
Differential Revision: https://developer.blender.org/D1645
2015-11-28OpenGL: remove unnecessarily paranoid bound texture preservation.Brecht Van Lommel
2015-11-28OpenGL: assume GL_TEXTURE_ENV_MODE GL_MODULATE is the default state.Brecht Van Lommel
2015-10-08Cleanup: typosCampbell Barton
2015-10-05Cleanup: pass pointer to rctfCampbell Barton
2015-09-20Cleanup: Use new vector transform functionsJulian Eisel
2015-07-01Cleanup: Use bool instead of intJulian Eisel
2015-06-12Support metadata display in clip editorAntony Riakiotakis
2015-05-13Fix T44683: Unable to mute movie clip when using stabilized displaySergey Sharybin
2015-04-22Tracking: Show plane track outline if image failed to loadSergey Sharybin
2015-01-07Fix for bool flag useCampbell Barton
2014-11-28Cleanup: unused headersCampbell Barton
2014-09-03Skip distortion of the grease pencil associated with the trackSergey Sharybin
2014-07-21Math Lib: rename mul_serie_m3 to mul_m3_series & reorder argsCampbell Barton
Importantly, reversed mul_serie_m3 argument order (so it matches the m4 function)
2014-07-20Math Lib: use variable length args for mul_serie_m3,m4 (instead of trailing ↵Campbell Barton
NULL's)
2014-06-13Code cleanup: use ED_gpencil_ prefix for grease pencilCampbell Barton
2014-04-30Code cleanup: remove unused includesCampbell Barton
Opted to keep includes if they are used indirectly (even if removing is possible).