21d77a417e
Cleanup: replace C-style casts with functional casts for numeric types
...
Some changes missed from f68cfd6bb0 .
2022-09-25 22:31:31 +10:00
add1b6ab3c
Cleanup: spelling in comments
2022-09-23 14:33:43 +10:00
95f05a6a4b
Cleanup: spelling in comments
2022-09-16 18:14:33 +10:00
4d69b6f525
Cleanup: use u-prefixed integer types (for brevity)
2022-09-13 16:29:06 +10:00
2146256563
Cleanup: use ELEM macro
2022-03-09 10:13:43 +11:00
c434782e3a
File headers: SPDX License migration
...
Use a shorter/simpler license convention, stops the header taking so
much space.
Follow the SPDX license specification: https://spdx.org/licenses
- C/C++/objc/objc++
- Python
- Shell Scripts
- CMake, GNUmakefile
While most of the source tree has been included
- `./extern/` was left out.
- `./intern/cycles` & `./intern/atomic` are also excluded because they
use different header conventions.
doc/license/SPDX-license-identifiers.txt has been added to list SPDX all
used identifiers.
See P2788 for the script that automated these edits.
Reviewed By: brecht, mont29, sergey
Ref D14069
2022-02-11 09:14:36 +11:00
9f546d6908
Cleanup: move public doc-strings into headers for 'imbuf'
...
Ref T92709
2021-12-09 20:01:45 +11:00
f031791185
Cleanup: modernize-use-equals-default
...
This was missing from rB19dfb6ea1f6745c0dbc2ce21839c30184b553878.
2021-04-08 15:51:39 +02:00
958df2ed1b
Cleanup: Clang-Tidy, modernize-deprecated-headers
...
No functional changes.
2020-12-04 11:28:09 +01:00
16732def37
Cleanup: Clang-Tidy modernize-use-nullptr
...
Replace `NULL` with `nullptr` in C++ code.
No functional changes.
2020-11-06 18:08:25 +01:00
2abfcebb0e
Cleanup: use C comments for descriptive text
...
Follow our code style guide by using C-comments for text descriptions.
2020-10-10 22:04:51 +11:00
586a308467
Cleanup: remove redundant return parenthesis
2020-08-08 13:37:55 +10:00
dbf4f52fe0
Cleanup: ImBuf, Clang-Tidy else-after-return fixes
...
This addresses warnings from Clang-Tidy's `readability-else-after-return`
rule in the `source/blender/imbuf` module.
No functional changes.
2020-08-07 13:38:06 +02:00
6fea8ec183
Clang-Tidy: Enable redundant static qualifier warning
...
This change enables readability-static-definition-in-anonymous-namespace
warning in .clang-tidy configuration.
2020-07-03 12:58:13 +02:00
2d1cce8331
Cleanup: make format after SortedIncludes change
2020-03-19 09:33:58 +01:00
909665a0d4
ClangFormat: run with ReflowComments on source/
...
Prepare for enabling ReflowComments.
2019-05-01 11:13:14 +10:00
64b4b719eb
Cleanup: style, use braces for imbuf
2019-04-23 11:22:22 +10:00
333cdbb410
Cleanup: comment blocks
2019-04-18 07:59:28 +02:00
e12c08e8d1
ClangFormat: apply to source, most of intern
...
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-17 06:21:24 +02:00
db80d5c560
Fix T62852: crash reading corrupt DDS file.
2019-04-16 03:41:17 +02:00
abd18f6ec0
Cleanup: style
2019-03-25 11:42:28 +11:00
de13d0a80c
doxygen: add newline after \file
...
While \file doesn't need an argument, it can't have another doxy
command after it.
2019-02-18 08:22:12 +11:00
eef4077f18
Cleanup: remove redundant doxygen \file argument
...
Move \ingroup onto same line to be more compact and
make it clear the file is in the group.
2019-02-06 15:45:22 +11:00
65ec7ec524
Cleanup: remove redundant, invalid info from headers
...
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-02-02 01:36:28 +11:00
4da2acae3a
Spelling fixes in comments and descriptions, patch by luzpaz.
...
Differential Revision: https://developer.blender.org/D3668
2018-09-03 16:55:01 +02:00
0ddf3e110e
Cleanup: comment blocks
2018-09-02 18:51:31 +10:00
b372766816
Cleanup: trailing newlines
2018-06-29 09:23:51 +02:00
e74bd46ede
Cleanup: trailing space for imbuf module
2018-06-17 17:04:54 +02:00
85de548e03
Cleanup: indentation
2018-04-16 17:08:27 +02:00
b098609186
Fix various compiler warnings.
2015-10-10 17:35:30 +02:00
0dbc9060a6
Cleanup: make grumpy asan happy and do not use new [] to allocate data freed by free().
...
Probably nothing crucial, but asan build would crash on that stupid glitch... Annoying.
2015-04-29 17:46:03 +02:00
9510137d12
Cleanup: brace placement /w structs
2015-04-07 11:25:42 +10:00
4ca67869cc
Code cleanup: remove unused includes
...
Opted to keep includes if they are used indirectly (even if removing is possible).
2014-05-01 04:47:51 +10:00
2df82a2a2b
Code cleanup: fix some vs2012 compiler warnings
2013-06-21 12:33:19 +00:00
c36f20a7d2
style cleanup
2013-03-08 04:00:06 +00:00
25591e958d
style cleanup: tabs & whitespace
2012-11-03 15:35:03 +00:00
d599b643b7
style cleanup: bge, switch statements mostly.
...
also left bmesh decimator on in previous commit.
2012-10-21 07:58:38 +00:00
d724d0adfe
code cleanup: quiet warnings for gcc's -Wundef, -Wmissing-declarations
2012-09-16 00:26:36 +00:00
436f02ab9c
Finally committing support for compressed textures on the GPU (DDS+DXT). This patch started out as a patch by me, then cleaned up by Kupoman during his work on Cucumber.
...
One important thing to keep in mind when using this feature is that you'll need to flip your textures vertically (both the GIMP and Photoshop DDS tools I've seen have support for this on export). This is a quirk in using a texture format originally made for DirectX/DirectDraw, and flipping the compressed data is a real headache. Another quick fix for this issue is to change the Y value for the Size in the Mapping panel in the Texture properties to -1 (default is 1).
2012-06-30 04:34:34 +00:00
2d2d36fe3b
code cleanup:
...
- style - multi-line ifs move braces onto new lines.
- iterators - convert some to macros, other split up and move brace.
2012-05-20 19:49:27 +00:00
b340f930ec
style cleanup: changes to brace placement / newlines - for/while/if/switch
2012-04-28 06:31:57 +00:00
b8a71efeba
style cleanup: follow style guide for/with/if spacing
2012-03-24 07:52:14 +00:00
309f3f31e7
remove redundant trailing slashes
2012-01-12 06:11:08 +00:00
4a04f72069
remove $Id: tags after discussion on the mailign list: http://markmail.org/message/fp7ozcywxum3ar7n
2011-10-23 17:52:20 +00:00
c96f28a718
- use %u rather tham %d for unsigned ints in string formatting funcs.
...
- replace (strlen(str) == 0) with str[0]=='\0'
2011-08-27 03:25:02 +00:00
763adbc7b9
Code cleanup: warning fixes.
2011-05-09 08:01:48 +00:00
Nathan Letwory
ed3fd72210
Apply second half of [ #21590 ] .dds textures: fix for DXT1n format + sync with upstream nvtt
...
submitted by Amorilia
This updates the DDS module with upstearm nvtt (r1042).
2011-05-08 09:05:52 +00:00
Nathan Letwory
3fe841597b
Apply part of [ #21590 ] .dds textures: fix for DXT1n format
...
Submitted by Amorilia.
DXT1 .dds textures with 1-bit alpha channel have their alpha channel imported in Blender.
The patch also makes change to contact info for the patch submitter.
I left the sync with upstream nvtt for another commit.
2011-05-07 20:53:49 +00:00
Nathan Letwory
192ab99b5c
doxygen: blender/imbuf tagged.
2011-02-27 20:23:21 +00:00
Nathan Letwory
5b607701a7
doxygen: prevent GPL license block from being parsed as doxygen comment.
2011-02-23 10:52:22 +00:00