Cleanup: spelling in comments
This commit is contained in:
parent
012e41fc8b
commit
ac3324f197
|
@ -39,8 +39,8 @@
|
|||
* second intern/ module with MEM_ prefix, for use in c++.
|
||||
*
|
||||
* \subsection memdependencies Dependencies
|
||||
* - stdlib
|
||||
* - stdio
|
||||
* - `stdlib`
|
||||
* - `stdio`
|
||||
*
|
||||
* \subsection memdocs API Documentation
|
||||
* See \ref MEM_guardedalloc.h
|
||||
|
|
|
@ -23,8 +23,8 @@
|
|||
* image that are changed. These areas are organized in chunks. Changes that happen over time are
|
||||
* organized in changesets.
|
||||
*
|
||||
* A common usecase is to update GPUTexture for drawing where only that part is uploaded that only
|
||||
* changed.
|
||||
* A common use case is to update #GPUTexture for drawing where only that part is uploaded that
|
||||
* only changed.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
|
|
@ -23,8 +23,8 @@
|
|||
* image that are changed. These areas are organized in chunks. Changes that happen over time are
|
||||
* organized in changesets.
|
||||
*
|
||||
* A common usecase is to update GPUTexture for drawing where only that part is uploaded that only
|
||||
* changed.
|
||||
* A common use case is to update #GPUTexture for drawing where only that part is uploaded that
|
||||
* only changed.
|
||||
*
|
||||
* Usage:
|
||||
*
|
||||
|
|
|
@ -70,7 +70,7 @@ class ImagePartialUpdateTest : public testing::Test {
|
|||
IMB_init();
|
||||
|
||||
bmain = BKE_main_new();
|
||||
/* Creating an image generates a mem-leak during tests. */
|
||||
/* Creating an image generates a memory-leak during tests. */
|
||||
image = create_test_image(1024, 1024);
|
||||
image_tile = BKE_image_get_tile(image, 0);
|
||||
image_buffer = BKE_image_acquire_ibuf(image, nullptr, nullptr);
|
||||
|
|
|
@ -706,9 +706,9 @@ void BLI_ewa_filter(const int width,
|
|||
}
|
||||
}
|
||||
|
||||
/* d should hopefully never be zero anymore */
|
||||
/* `d` should hopefully never be zero anymore. */
|
||||
d = 1.0f / d;
|
||||
mul_v3_fl(result, d);
|
||||
/* clipping can be ignored if alpha used, texr->trgba[3] already includes filtered edge */
|
||||
/* Clipping can be ignored if alpha used, `texr->trgba[3]` already includes filtered edge. */
|
||||
result[3] = use_alpha ? result[3] * d : 1.0f;
|
||||
}
|
||||
|
|
|
@ -149,7 +149,7 @@ template<typename TextureMethod> class ScreenSpaceDrawingMode : public AbstractD
|
|||
IMAGE_InstanceData &instance_data) const
|
||||
{
|
||||
while (iterator.get_next_change() == ePartialUpdateIterResult::ChangeAvailable) {
|
||||
/* Quick exit when tile_buffer isn't availble. */
|
||||
/* Quick exit when tile_buffer isn't available. */
|
||||
if (iterator.tile_data.tile_buffer == nullptr) {
|
||||
continue;
|
||||
}
|
||||
|
|
|
@ -48,9 +48,9 @@ struct TextureInfo {
|
|||
rctf uv_bounds;
|
||||
|
||||
/**
|
||||
* \brief Batch to draw the associated texton the screen.
|
||||
* \brief Batch to draw the associated text on the screen.
|
||||
*
|
||||
* contans a VBO with `pos` and 'uv'.
|
||||
* Contains a VBO with `pos` and `uv`.
|
||||
* `pos` (2xF32) is relative to the origin of the space.
|
||||
* `uv` (2xF32) reflect the uv bounds.
|
||||
*/
|
||||
|
|
|
@ -103,7 +103,7 @@ void RE_point_density_fix_linking(void);
|
|||
typedef struct TexResult {
|
||||
float tin;
|
||||
float trgba[4];
|
||||
/* Is acually a bool true->use alpha, false->set alpha to 1.0. */
|
||||
/* Is actually a boolean: When true -> use alpha, false -> set alpha to 1.0. */
|
||||
int talpha;
|
||||
float *nor;
|
||||
} TexResult;
|
||||
|
|
Loading…
Reference in New Issue