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-09-21Cleanup: unused headers in editorsCampbell Barton
2019-09-13Fixed macOS build, header cleanup was too agressive.Stefan Werner
2019-09-13Cleanup: unused headers (GPU)Campbell Barton
2019-07-08Fix T66008 Viewport: hidden edges are partially visibleClément Foucault
This was a regression from 2.79. The zoffset was doubled for some reason.
2019-07-02Cleanup: rename set_inverted_drawing, move to GPU_stateCampbell Barton
2019-04-22Cleanup: style, use braces for editorsCampbell Barton
2019-04-21Cleanup: comments (long lines) in editorsCampbell Barton
2019-04-20GPU: automatically draw images with GLSL shader depending on resolutionBrecht Van Lommel
This adds a new "Automatic" image display method which uses GLSL shaders for most images. It only does CPU side color management for higher res images where sending big float buffers to the GPU is likely to be a bottleneck or cause memory usage problem. Automatic is the default now, previously it was 2D Texture.
2019-04-20Cleanup: remove unused OpenGL functions, rename some for clarityBrecht Van Lommel
2019-04-17ClangFormat: apply to source, most of internCampbell Barton
Apply clang format as proposed in T53211. For details on usage and instructions for migrating branches without conflicts, see: https://wiki.blender.org/wiki/Tools/ClangFormat
2019-04-09Cleanup: Use higher level functionSergey Sharybin
This kind of abstracts OpenGL details, and this is what is used in other areas as well.
2019-04-09Image draw: Fix/workaround image corruption on drawSergey Sharybin
Was mainly visible with high-res image. Not entirely clear why it is only happening on macOS. While the entire function should be re-written to make float images displayed faster, still nice to fix the drawing. Reviewers: fclem Reviewed By: fclem Differential Revision: https://developer.blender.org/D4664
2019-03-24GPU: Remove unused and deprecated GPU_line_stipple()Clément Foucault
2019-02-18doxygen: add newline after \fileCampbell Barton
While \file doesn't need an argument, it can't have another doxy command after it.
2019-02-06Cleanup: remove redundant doxygen \file argumentCampbell Barton
Move \ingroup onto same line to be more compact and make it clear the file is in the group.
2019-02-05Edit Mesh: Fix some problem with new implementationClément Foucault
- Add manual depth offset to vertices and edges. - Revert to plain edge decoration. - Fix active edge coloring. - Remove active face display if not in face selection mode. - Add wide line support.
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-26Cleanup: remove redundant BKE/BLI/BIF headersCampbell Barton
2019-01-17GPU: Rename GPU_shader_get_uniform to GPU_shader_get_uniform_ensureClément Foucault
This is in order to make the API more multithread friendly inside the draw manager. GPU_shader_get_uniform will only serve to query the shader interface and not do any GL call, making it threadsafe. For now it only print a warning if the uniform was not queried before.
2018-10-09Cleanup: namingCampbell Barton
- immAttrib* -> immAttr* - immSkipAttrib -> immAttrSkip Term 'attr' is a convention for GPU module.
2018-08-14Cleanup: remove unused basic shader, we use many specialized shaders now.Brecht Van Lommel
2018-07-18GWN: Port to GPU module: Replace GWN prefix by GPUClément Foucault
2018-07-15GPU_matrix: use Blender's naming conventionsCampbell Barton
Thanks to @sergey for review
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-06-04Merge branch 'master' into blender2.8Campbell Barton
2018-06-04Cleanup: strip trailing space in editorsCampbell Barton
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-24OpenGL: Remove remaining instances of GL_RGBA16F_ARB.Clément Foucault
There is no need for it now that we use opengl 3.3. Use GL_RGBA16F instead.
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-13Code cleanup: remove unneeded gla* 2D drawing functions.Brecht Van Lommel
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-08Fix hardcoded attribute locations used in image drawSergey Sharybin
2017-05-08Fix OCIO shader being attmepted to be unbound twiceSergey Sharybin
2017-05-04Remove cpackCampbell Barton
Places where it's removed are already replaced by newer logic.
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-14Fix T49429: incorrect Blender internal viewport border render with ↵Brecht Van Lommel
DrawPixels method.
2017-04-13cleanup image drawing setupMike Erwin
2017-04-11Make image drawing code working with core profileSergey Sharybin
The issue was caused here by usage of deprecated GL_CURRENT_PROGRAM which was returning rubbish value. Now we use imm API and create vertex format prior to immBindProgram. This made us required to have some sort of state passed from setup function to actual drawing.
2017-04-07OpenGL: use PRIM instead of GL enum for immBeginMike Erwin
Getting ready for a Gawain API change... 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-04-05Naming constancy for 'imm' utility functionsCampbell Barton
- use 'imm_draw_' prefix for functions that draw. - use '_3d' suffix for 3d functions, no suffix for 2d functions. - use terms fill/wire (shorter than filled / lined). Also add `imm_draw_circle_fill_3d` (only had wire version)
2017-04-04Immediate Mode: handle other cases of glPop/glPushClientAttribDalai Felinto
Those cases were not using ClientAttrib but they should :) Rather use a OpenGL3.3 alternative anyways.
2017-04-03Cleanup: styleCampbell Barton
2017-04-03Rename circle_partial -> disk_partialCampbell Barton
We may have a 'disk' function (not the partial version).
2017-04-03Add gluPartialDisk replacement (imm_draw_filled_circle_partial)Campbell Barton
Needed for custom-manipulators branch but generally useful.
2017-03-27OpenGL: remove several glMatrixMode callsMike Erwin
A few of these were redundant, others could be converted to new matrix API. Part of T49450
2017-03-25Quiet warningsCampbell Barton
2017-03-22OpenGL: load projection matrix with new APIMike Erwin
New API does not share legacy OpenGL's concept of matrix modes. Part of T49450