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
diff options
context:
space:
mode:
authorCampbell Barton <campbell@blender.org>2022-04-20 02:16:24 +0300
committerCampbell Barton <campbell@blender.org>2022-04-20 03:41:31 +0300
commit16afff2ddc4580cfe3a952c3e60e0950ae0487b6 (patch)
tree436e2b7c1d265f8d110cc2a52d0cadf926794db2 /source/blender/editors/gizmo_library
parent42717596d0c8638bd672966c0f1198db8344dcd5 (diff)
Cleanup: spelling in comments
Diffstat (limited to 'source/blender/editors/gizmo_library')
-rw-r--r--source/blender/editors/gizmo_library/gizmo_types/cage2d_gizmo.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/editors/gizmo_library/gizmo_types/cage2d_gizmo.c b/source/blender/editors/gizmo_library/gizmo_types/cage2d_gizmo.c
index e4cb6d149f5..54aa5d16941 100644
--- a/source/blender/editors/gizmo_library/gizmo_types/cage2d_gizmo.c
+++ b/source/blender/editors/gizmo_library/gizmo_types/cage2d_gizmo.c
@@ -99,7 +99,7 @@ static void cage2d_draw_box_corners(const rctf *r,
const float color[3],
const float line_width)
{
- /* Note(Metal): Prefer using 3D coordinates with 3D shader, even if rendering 2D gizmo's. */
+ /* NOTE(Metal): Prefer using 3D coordinates with 3D shader, even if rendering 2D gizmo's. */
uint pos = GPU_vertformat_attr_add(immVertexFormat(), "pos", GPU_COMP_F32, 3, GPU_FETCH_FLOAT);
immBindBuiltinProgram(GPU_SHADER_3D_POLYLINE_UNIFORM_COLOR);
@@ -442,7 +442,7 @@ static void imm_draw_point_aspect_2d(
uint pos, float x, float y, float rad_x, float rad_y, bool solid)
{
if (solid) {
- /* Note(Metal/AMD): Small Triangle-list primitives more optimal for GPU HW than Trianglestrip.
+ /* NOTE(Metal/AMD): Small Triangle-list primitives more optimal for GPU HW than Triangle-strip.
*/
immBegin(GPU_PRIM_TRIS, 6);
immVertex2f(pos, x - rad_x, y - rad_y);
@@ -455,7 +455,7 @@ static void imm_draw_point_aspect_2d(
immEnd();
}
else {
- /* Note(Metal/AMD): Small Line-list primitives more optimal for GPU HW than Linestrip. */
+ /* NOTE(Metal/AMD): Small Line-list primitives more optimal for GPU HW than Line-strip. */
immBegin(GPU_PRIM_LINES, 8);
immVertex2f(pos, x - rad_x, y - rad_y);
immVertex2f(pos, x - rad_x, y + rad_y);
@@ -479,7 +479,7 @@ static void cage2d_draw_circle_wire(const rctf *r,
const int draw_options,
const float line_width)
{
- /* Note(Metal): Prefer using 3D coordinates with 3D shader input, even if rendering 2D gizmo's.
+ /* NOTE(Metal): Prefer using 3D coordinates with 3D shader input, even if rendering 2D gizmo's.
*/
uint pos = GPU_vertformat_attr_add(immVertexFormat(), "pos", GPU_COMP_F32, 3, GPU_FETCH_FLOAT);
@@ -491,7 +491,7 @@ static void cage2d_draw_circle_wire(const rctf *r,
immUniform2fv("viewportSize", &viewport[2]);
immUniform1f("lineWidth", line_width * U.pixelsize);
- /* Small 'lines' primitives more efficient for hardware processing than linestrip. */
+ /* Small 'lines' primitives more efficient for hardware processing than line-strip. */
immBegin(GPU_PRIM_LINES, 8);
immVertex3f(pos, r->xmin, r->ymin, 0.0f);
immVertex3f(pos, r->xmax, r->ymin, 0.0f);