From ffef5968fe3985b956333489184b6fac5e6f7529 Mon Sep 17 00:00:00 2001 From: Nathan S <55564547+NathanX-S@users.noreply.github.com> Date: Fri, 22 May 2020 17:45:54 -0400 Subject: [PATCH] docs: some grammar fixes for meshDrawer2D Fixes #941 --- panda/src/grutil/meshDrawer2D.I | 8 ++++---- panda/src/grutil/meshDrawer2D.h | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/panda/src/grutil/meshDrawer2D.I b/panda/src/grutil/meshDrawer2D.I index 4ff460c567..cb976f5956 100644 --- a/panda/src/grutil/meshDrawer2D.I +++ b/panda/src/grutil/meshDrawer2D.I @@ -60,7 +60,7 @@ set_budget(int total_budget) { } /** - * Gets the total triangle budget of the drawer + * Gets the total triangle budget of the drawer. */ INLINE int MeshDrawer2D:: get_budget() { @@ -68,7 +68,7 @@ get_budget() { } /** - * Sets clipping rectangle + * Sets the clipping rectangle. */ INLINE void MeshDrawer2D:: set_clip(PN_stdfloat x, PN_stdfloat y, PN_stdfloat w, PN_stdfloat h) { @@ -79,7 +79,7 @@ set_clip(PN_stdfloat x, PN_stdfloat y, PN_stdfloat w, PN_stdfloat h) { } /** - * Draws a 2d rectangle. Ignores the cliping rectangle + * Draws a 2D rectangle. Ignores the clipping rectangle. */ INLINE void MeshDrawer2D:: quad_raw(const LVector3 &v1, const LVector4 &c1, const LVector2 &uv1, @@ -125,7 +125,7 @@ rectangle_raw(PN_stdfloat x, PN_stdfloat y, PN_stdfloat w, PN_stdfloat h, } /** - * Draws a 2d rectangle, that can be cliped + * Draws a 2D rectangle which can be clipped. */ INLINE void MeshDrawer2D:: rectangle(PN_stdfloat x, PN_stdfloat y, PN_stdfloat w, PN_stdfloat h, diff --git a/panda/src/grutil/meshDrawer2D.h b/panda/src/grutil/meshDrawer2D.h index 6b686b8b10..44d5cbb7d5 100644 --- a/panda/src/grutil/meshDrawer2D.h +++ b/panda/src/grutil/meshDrawer2D.h @@ -39,8 +39,8 @@ #include "nodePath.h" /** - * This class allows the drawing of 2d objects - mainly based on quads and - * rectangles. Allows clipping and serverl high level UI theme functions. + * This class allows the drawing of 2D objects - mainly based on quads and + * rectangles. It allows clipping and several high level UI theme functions. */ class EXPCL_PANDA_GRUTIL MeshDrawer2D : public TypedObject { PUBLISHED: