Fix typos in sample comments

Closes https://github.com/wxWidgets/wxWidgets/pull/2513
This commit is contained in:
Blake Madden
2021-09-06 17:01:35 -04:00
committed by Vadim Zeitlin
parent 8368914725
commit 1380b1914c
23 changed files with 30 additions and 30 deletions

View File

@@ -197,7 +197,7 @@ void TestGLCanvas::LoadSurface(const wxString& filename)
}
{
// we suppose to have in input a text file containing floating numbers
// we are supposed to have as input a text file containing floating numbers
// space/newline-separated... first 3 numbers are the coordinates of a
// vertex and the following 3 are the relative vertex normal and so on...

View File

@@ -11,7 +11,7 @@
#define MATHSTUFF_H
//NOTE:
// glm library is great for handling matrices and vectors in a OpenGL style, see
// glm library is great for handling matrices and vectors in an OpenGL style, see
// http://glm.g-truc.net/
// But it's too large for this simple sample. I coded on my own the maths needed.

View File

@@ -42,7 +42,7 @@ bool MyOnGLError(int err, const GLchar* glMsg = NULL)
// We do calculations with 'doubles'. We pass 'GLFloats' to the shaders
// because OGL added 'doubles' since OGL 4.0, and this sample is for 3.2
// Due to asynchronous nature of OGL, we can't not trust in the passed matrix
// Due to asynchronous nature of OGL, we can't trust in the passed matrix
// to be stored by GPU before the passing-function returns. So we don't use
// temporary storage, but dedicated matrices
void SetAsGLFloat4x4(double *matD, GLfloat *matF, int msize)
@@ -352,7 +352,7 @@ bool myOGLShaders::AskUnifLocations()
GLint glret = glGetUniformLocation(m_proId, it->name.c_str());
if ( glret == -1 )
{
// Return now, this GPU program can not be used because we will
// Return now, this GPU program cannot be used because we will
// pass data to unknown/unused uniform locations
return false;
}

View File

@@ -50,7 +50,7 @@
I decided to keep apart all of this from wxWidgets. You won't find anything
related to wxWidgets in the oglstuff[.h][.cpp] files.
That's why I use std::vector and std:string instead of those provided by wx.
That's why I use std::vector and std::string instead of those provided by wx.
*/

View File

@@ -273,7 +273,7 @@ void fOGLErrHandler(int err, int glerr, const GLchar* glMsg)
// Creates a 4-bytes-per-pixel, RGBA array from a wxImage.
// If the image has alpha channel, it's used. If not, pixels with 'cTrans' color
// get 'cAlpha' alpha; an the rest of pixels get alpha=255 (opaque).
// get 'cAlpha' alpha; and the rest of pixels get alpha=255 (opaque).
//
// NOTE: The returned pointer must be deleted somewhere in the app.
unsigned char* MyImgToArray(const wxImage& img, const wxColour& cTrans, unsigned char cAlpha)