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
2020-10-09Revert "Revert "BGL: Workaround broken bgl usage caused by GPU refactor""Clément Foucault
This reverts commit f23bf4cb109cb8f39f873c4f80acbec3f33b098c.
2020-10-08Revert "BGL: Workaround broken bgl usage caused by GPU refactor"Clément Foucault
This reverts commit f12b0373f322b710b9fa5cebb67bdf363ff90e9f.
2020-10-08BGL: Workaround broken bgl usage caused by GPU refactorClément Foucault
This directly adress the issues caused by rB536c2e0ec916. Since the state tracking is done at a lower level, using the bgl functions needs to be safegarded by the state manager. The current workaround is to bypass `apply_state` when inside a callback that used a `bgl` function. Related to T80730. This fix T81003. Also this fix the default blend equation for callbacks. Fixes T80169 T81289.
2020-09-12Cleanup: Remove GLEW dependencies outside of GL moduleClément Foucault
2020-08-20Cleanup: use const variables where possible in the Python APICampbell Barton
2020-08-07Cleanup: PyBGL, Clang-Tidy readability-function-size fixesSybren A. Stüvel
This addresses warnings from Clang-Tidy's `readability-function-size` rule in the `source/blender/python` module. It's just `BPyInit_bgl()` that's been split up into one or two smaller functions per OpenGL version. No functional changes.
2020-08-07Cleanup: Python, Clang-Tidy else-after-return fixesSybren A. Stüvel
This addresses warnings from Clang-Tidy's `readability-else-after-return` rule in the `source/blender/python` module. No functional changes.
2020-07-13Clang Tidy: enable readability-non-const-parameter warningJacques Lucke
Clang Tidy reported a couple of false positives. I disabled those `NOLINTNEXTLINE`. Differential Revision: https://developer.blender.org/D8199
2020-02-20Cleanup: use named unsigned types in the Python APICampbell Barton
2019-12-20Cleanup: remove redundant 'char *' castsCampbell Barton
2019-09-19Fix T70060: Add bgl wrapper for glVertexAttribIPointerJacques Lucke
2019-04-18Python API: allow passing integer to some BGL functions instead of bgl.BufferBrecht Van Lommel
These parameters can be both pointers and offsets into a bound buffer, so we need to support both even if it's possible to cause crashes this way.
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-16Cleanup: trailing commasCampbell Barton
2019-03-29Cleanup: style, use braces for the Python APICampbell Barton
2019-03-26Python API: allow passing None to some BGL functions instead of bgl.BufferBrecht Van Lommel
Many OpenGL functions take NULL pointers, passing those was quite complicated with some addons even using ctypes to manipulate internal bgl.Buffer pointers.
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-03Cleanup: trailing commasCampbell Barton
Needed for clan-format not to wrap onto one line.
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: blank lines over doxy headersCampbell Barton
2019-01-19Cleanup: add trailing commasCampbell Barton
Prevents clang-format merging into a single line.
2019-01-10Cleanup: end bgl macros w/ semicolonCampbell Barton
Needed for clang-format.
2018-10-08Cleanup: rename checks for Python struct stringsCampbell Barton
Using 'format' prefix made this read as if t was for string formatting. Use 'PyC_StructFmt' prefix instead since these values are compatible with formatting from Python's 'struct' module.
2018-10-07CPython: py_capi_utils: use more descriptive names for format string utilities.mano-wii
2018-10-06Cleanup: use the naming convention in py_capi_utilsmano-wii
And use inline functions instead of preprocessor directives.
2018-10-06Cleanup: use new format string utilitymano-wii
2018-09-24BGL: Wrap glBlitFramebuffermano-wii
2018-06-04Merge branch 'master' into blender2.8Campbell Barton
2018-06-04Cleanup: strip trailing space in Python moduleCampbell Barton
2018-04-14BGL: Expose OpenGL API for FrameBuffers and RenderBuffers.Germano
2017-10-23Fix OpenGL extension report in system info operator.Antony Riakiotakis
2017-10-18Merge branch 'master' into blender2.8Campbell Barton
2017-10-17Fix T53074: Use the pybuffer->itemsize to get the corresponding GLtypeGermano
It seems that `typestr` does not always define the final size of the element. And it varies by operating system. Then use the `typestr` only to know the itemtype is `float` type or not.
2017-10-06Merge branch 'master' into blender28Campbell Barton
2017-10-06Cleanup: styleCampbell Barton
2017-09-28Merge branch 'master' into blender2.8Sergey Sharybin
2017-09-28Cleanup: switch fall-through warningCampbell Barton
2017-09-27bgl module: extend `gl_buffer_type_from_py_format_char` function to work ↵Germano
with more string formats Only basic types of character codes were being used
2017-09-27Merge branch 'master' into blender2.8Campbell Barton
2017-09-27Cleanup: warningCampbell Barton
2017-09-27bgl module: Interpret a buffer as a bgl.BufferGermano
Differential Revision: https://developer.blender.org/D2857
2017-04-18BGL: Remove deprecated enumsDalai Felinto
Note: The enums that are deprecated and supported are still there
2017-03-13OpenGL: remove packed imm mode functions from Python APIMike Erwin
These are from the ARB_vertex_type_2_10_10_10_rev extension that became part of OpenGL 3.3. So they are new, but only exist for compatibility with immediate mode, which is old. Related to T49165 (general OpenGL upgrade)
2017-03-13OpenGL: remove GLU functions from Python APIMike Erwin
Part of T49042
2017-03-01Cleanup: warningsCampbell Barton
2017-02-26Fix compiler warnings on macOS / clang / c++11.Brecht Van Lommel
2016-11-19bgl do not bind parts of OpenGL that are not exposed in core profilesMartijn Berger
2016-07-02Fix typo in bgl.Buffer report functionThomas Szepe
A GL_INT buffer was reported as GL_BYTE.
2016-03-04Cleanup: suspicious use of commasCampbell Barton