1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-09-08 14:17:06 +03:00

0031939: Coding - correction of spelling errors in comments [part 9]

Fix various typos via codespell.
This commit is contained in:
luz paz
2021-04-01 20:18:10 +03:00
committed by bugmaster
parent 00e9052bee
commit 5e6e59146f
59 changed files with 288 additions and 512 deletions

View File

@@ -114,7 +114,7 @@ public: //! @name context creation parameters
* but some limit functionality to OpenGL 2.1 (e.g. OS X) when core profile is not explicitly requested.
*
* Requires OpenGL 3.2+ drivers.
* Has no effect on OpenGL ES 2.0+ drivers (which do not provie FFP compatibility).
* Has no effect on OpenGL ES 2.0+ drivers (which do not provide FFP compatibility).
* Interacts with ffpEnable option, which should be disabled within core profile.
*
* ON by default.

View File

@@ -2182,7 +2182,7 @@ void OpenGl_Context::ReleaseDelayed()
{
if (++anIter.ChangeValue() <= 2)
{
continue; // postpone release one more frame to ensure noone use it periodically
continue; // postpone release one more frame to ensure no one uses it periodically
}
const TCollection_AsciiString& aKey = anIter.Key();

View File

@@ -188,7 +188,7 @@ Standard_ShortReal OpenGl_GraduatedTrihedron::getDistanceToCorner (const OpenGl_
Standard_ExtCharacter OpenGl_GraduatedTrihedron::getGridAxes (const Standard_ShortReal theCorners[8],
GridAxes& theGridAxes) const
{
// Find the farest corner
// Find the farthest corner
Standard_Byte aMaxIndex = 0;
Standard_ShortReal aMax = theCorners[aMaxIndex] > 0.0f ? theCorners[aMaxIndex] : 0.0f;
@@ -581,7 +581,7 @@ void OpenGl_GraduatedTrihedron::Render (const Handle(OpenGl_Workspace)& theWorks
}
}
// Find the farest point of bounding box
// Find the farthest point of bounding box
// Get normal of the view out of user and distance corresponding to 1 pixel
OpenGl_Vec3 aNormal;
@@ -607,7 +607,7 @@ void OpenGl_GraduatedTrihedron::Render (const Handle(OpenGl_Workspace)& theWorks
// (0, 0, 1), (0, 1, 0) and (0, 0, 1) directions from (myMin.x(), Ymin, Zmin) point
// are reserved for trihedron axes.
// So for the grid here are 9 edges of cube,
// and, depending on the farest point, 2 or 3 of them may not be drawn
// and, depending on the farthest point, 2 or 3 of them may not be drawn
// if they overlap displayed model.
// Write an axes state what axes of bounding box are to be drawn

View File

@@ -163,7 +163,7 @@ private:
//! Render line from the transformed primitive array myLine
//! @param theWorkspace [in] the OpenGl Workspace
//! @param theMat [in] theMat that containes base transformation and is used for appling
//! @param theMat [in] theMat that contains base transformation and is used for applying
//! translation and rotation
//! @param thaTx the X for vector of translation
//! @param thaTy the Y for vector of translation
@@ -179,7 +179,7 @@ private:
//! @param theWorkspace [in] the OpenGl Workspace
//! @param theIndex [in] index of axis
//! @param theGridAxes [in] grid axes
//! @param theMat [in] theMat that containes base transformation and is used for appling
//! @param theMat [in] theMat that contains base transformation and is used for applying
//! translation and rotation
void renderGridPlane (const Handle(OpenGl_Workspace)& theWorkspace,
const Standard_Integer& theIndex,
@@ -190,7 +190,7 @@ private:
//! Render the axis of input index
//! @param theWorkspace [in] the OpenGl Workspace
//! @param theIndex [in] index of axis
//! @param theMat [in] theMat that containes base transformation and is used for appling
//! @param theMat [in] theMat that contains base transformation and is used for applying
//! translation and rotation
void renderAxis (const Handle(OpenGl_Workspace)& theWorkspace,
const Standard_Integer& theIndex,
@@ -198,7 +198,7 @@ private:
//! Render grid labels, tickmark lines and labels
//! @param theWorkspace [in] the OpenGl Workspace
//! @param theMat [in] theMat that containes base transformation and is used for appling
//! @param theMat [in] theMat that contains base transformation and is used for applying
//! translation and rotation
//! @param theIndex [in] index of axis
//! @param theGridAxes [in] grid axes

View File

@@ -43,7 +43,7 @@ public:
NCollection_Vector<Handle(OpenGl_VertexBuffer)>& theVertsPerTexture,
NCollection_Vector<Handle(OpenGl_VertexBuffer)>& theTCrdsPerTexture);
protected: //! @name class auxillary methods
protected: //! @name class auxiliary methods
Standard_EXPORT void createGlyphs (const Handle(Font_TextFormatter)& theFormatter,
const Handle(OpenGl_Context)& theCtx,
@@ -52,7 +52,7 @@ protected: //! @name class auxillary methods
NCollection_Vector< NCollection_Handle < NCollection_Vector <OpenGl_Vec2> > >& theVertsPerTexture,
NCollection_Vector< NCollection_Handle < NCollection_Vector <OpenGl_Vec2> > >& theTCrdsPerTexture);
protected: //! @name class auxillary fields
protected: //! @name class auxiliary fields
NCollection_Vector<OpenGl_Font::Tile> myTileRects;
OpenGl_VertexBufferEditor<OpenGl_Vec2> myVboEditor;

View File

@@ -221,7 +221,7 @@ public:
//! Returns background image texture map.
virtual Handle(Graphic3d_TextureMap) BackgroundImage() Standard_OVERRIDE { return myBackgroundImage; }
//! Sets image texture or environment cubemap as backround.
//! Sets image texture or environment cubemap as background.
//! @param theTextureMap [in] source to set a background;
//! should be either Graphic3d_Texture2D or Graphic3d_CubeMap
//! @param theToUpdatePBREnv [in] defines whether IBL maps will be generated or not