summaryrefslogtreecommitdiffstats
path: root/NativeApp
diff options
context:
space:
mode:
authorluz paz <luzpaz@users.noreply.github.com>2021-03-18 00:43:45 +0000
committerluz paz <luzpaz@users.noreply.github.com>2021-03-18 00:43:45 +0000
commit5776362b8075f7870b8592627d082b8e4e2aaf2c (patch)
treefcac53b85a8f10b5a6a698cdc7c3ccd21f700625 /NativeApp
parentUpdated readme (diff)
downloadDiligentTools-5776362b8075f7870b8592627d082b8e4e2aaf2c.tar.gz
DiligentTools-5776362b8075f7870b8592627d082b8e4e2aaf2c.zip
Fix misc. typos
Found via `codespell`
Diffstat (limited to 'NativeApp')
-rw-r--r--NativeApp/Android/arcore_sdk/include/arcore_c_api.h8
-rw-r--r--NativeApp/Android/ndk_helper/include/JNIHelper.h2
-rw-r--r--NativeApp/Android/ndk_helper/src/tapCamera.cpp4
-rw-r--r--NativeApp/Apple/Source/Classes/OSX/GLView.mm4
-rw-r--r--NativeApp/Apple/Source/Classes/OSX/WindowController.mm2
-rw-r--r--NativeApp/Apple/Source/Classes/iOS/AppViewBase.mm2
-rw-r--r--NativeApp/include/AppBase.hpp2
-rw-r--r--NativeApp/include/Linux/LinuxAppBase.hpp2
-rw-r--r--NativeApp/include/NativeAppBase.hpp2
-rw-r--r--NativeApp/include/UWP/UWPAppBase.hpp2
10 files changed, 15 insertions, 15 deletions
diff --git a/NativeApp/Android/arcore_sdk/include/arcore_c_api.h b/NativeApp/Android/arcore_sdk/include/arcore_c_api.h
index ec9266a..2d210f9 100644
--- a/NativeApp/Android/arcore_sdk/include/arcore_c_api.h
+++ b/NativeApp/Android/arcore_sdk/include/arcore_c_api.h
@@ -1093,7 +1093,7 @@ void ArCoreApk_checkAvailability(void *env,
void *context,
ArAvailability *out_availability);
-/// Initiates installation of ARCore if needed. When your apllication launches
+/// Initiates installation of ARCore if needed. When your application launches
/// or enters an AR mode, it should call this method with @c
/// user_requested_install = 1.
///
@@ -1996,7 +1996,7 @@ void ArPose_getPoseRaw(const ArSession *session,
/// @param[in] session The ARCore session
/// @param[in] pose The pose to convert
/// @param[out] out_matrix_col_major_4x4 Pointer to an array of 16 floats, to be
-/// filled with a column-major homogenous transformation matrix, as used by
+/// filled with a column-major homogeneous transformation matrix, as used by
/// OpenGL.
void ArPose_getMatrix(const ArSession *session,
const ArPose *pose,
@@ -2076,7 +2076,7 @@ void ArCamera_getDisplayOrientedPose(const ArSession *session,
/// @param[in] session The ARCore session
/// @param[in] camera The session's camera.
/// @param[inout] out_col_major_4x4 Pointer to an array of 16 floats, to be
-/// filled with a column-major homogenous transformation matrix, as used by
+/// filled with a column-major homogeneous transformation matrix, as used by
/// OpenGL.
void ArCamera_getViewMatrix(const ArSession *session,
const ArCamera *camera,
@@ -2122,7 +2122,7 @@ void ArCamera_getTrackingFailureReason(
/// @param[in] near Specifies the near clip plane, in meters
/// @param[in] far Specifies the far clip plane, in meters
/// @param[inout] dest_col_major_4x4 Pointer to an array of 16 floats, to
-/// be filled with a column-major homogenous transformation matrix, as used
+/// be filled with a column-major homogeneous transformation matrix, as used
/// by OpenGL.
void ArCamera_getProjectionMatrix(const ArSession *session,
const ArCamera *camera,
diff --git a/NativeApp/Android/ndk_helper/include/JNIHelper.h b/NativeApp/Android/ndk_helper/include/JNIHelper.h
index 81d5c2f..55e572d 100644
--- a/NativeApp/Android/ndk_helper/include/JNIHelper.h
+++ b/NativeApp/Android/ndk_helper/include/JNIHelper.h
@@ -225,7 +225,7 @@ class JNIHelper {
/*
* Retrieve external file directory through JNI call
*
- * return: std::string containing external file diretory
+ * return: std::string containing external file directory
*/
std::string GetExternalFilesDir();
diff --git a/NativeApp/Android/ndk_helper/src/tapCamera.cpp b/NativeApp/Android/ndk_helper/src/tapCamera.cpp
index e753ab1..586bef9 100644
--- a/NativeApp/Android/ndk_helper/src/tapCamera.cpp
+++ b/NativeApp/Android/ndk_helper/src/tapCamera.cpp
@@ -212,7 +212,7 @@ void TapCamera::Drag(const Vec2& v) {
}
//----------------------------------------------------------
-// Pinch controll
+// Pinch control
//----------------------------------------------------------
void TapCamera::BeginPinch(const Vec2& v1, const Vec2& v2) {
if (dragging_) EndDrag();
@@ -289,7 +289,7 @@ void TapCamera::Pinch(const Vec2& v1, const Vec2& v2) {
}
//----------------------------------------------------------
-// Trackball controll
+// Trackball control
//----------------------------------------------------------
void TapCamera::BallUpdate() {
if (dragging_) {
diff --git a/NativeApp/Apple/Source/Classes/OSX/GLView.mm b/NativeApp/Apple/Source/Classes/OSX/GLView.mm
index d4aef78..a942252 100644
--- a/NativeApp/Apple/Source/Classes/OSX/GLView.mm
+++ b/NativeApp/Apple/Source/Classes/OSX/GLView.mm
@@ -90,7 +90,7 @@ static CVReturn MyDisplayLinkCallback(CVDisplayLinkRef displayLink,
{
[super prepareOpenGL];
- // Application must be initialized befor display link is started
+ // Application must be initialized before display link is started
[self initGL];
CVDisplayLinkRef displayLink;
@@ -148,7 +148,7 @@ static CVReturn MyDisplayLinkCallback(CVDisplayLinkRef displayLink,
// cost of framerate and battery life due to the GPU needing to render more
// pixels.
- // Any calculations the renderer does which use pixel dimentions, must be
+ // Any calculations the renderer does which use pixel dimensions, must be
// in "retina" space. [NSView convertRectToBacking] converts point sizes
// to pixel sizes. Thus the renderer gets the size in pixels, not points,
// so that it can set it's viewport and perform and other pixel based
diff --git a/NativeApp/Apple/Source/Classes/OSX/WindowController.mm b/NativeApp/Apple/Source/Classes/OSX/WindowController.mm
index e3f7923..5904f6c 100644
--- a/NativeApp/Apple/Source/Classes/OSX/WindowController.mm
+++ b/NativeApp/Apple/Source/Classes/OSX/WindowController.mm
@@ -118,7 +118,7 @@
// this controller (self)
[self setWindow:[self standardWindow]];
- // Set the content of the orginal window to the view
+ // Set the content of the original window to the view
[[self window] setContentView: [self fullscreenWindow].contentView];
// Show the window and make it the key window for input
diff --git a/NativeApp/Apple/Source/Classes/iOS/AppViewBase.mm b/NativeApp/Apple/Source/Classes/iOS/AppViewBase.mm
index 84d1b01..3e75910 100644
--- a/NativeApp/Apple/Source/Classes/iOS/AppViewBase.mm
+++ b/NativeApp/Apple/Source/Classes/iOS/AppViewBase.mm
@@ -85,7 +85,7 @@
// Set it to our _animationFrameInterval
[_displayLink setPreferredFramesPerSecond:_preferredFramesPerSecond];
- // Have the display link run on the default runn loop (and the main thread)
+ // Have the display link run on the default run loop (and the main thread)
[_displayLink addToRunLoop:[NSRunLoop currentRunLoop] forMode:NSDefaultRunLoopMode];
[super startAnimation];
diff --git a/NativeApp/include/AppBase.hpp b/NativeApp/include/AppBase.hpp
index 34d99fa..3a9eddb 100644
--- a/NativeApp/include/AppBase.hpp
+++ b/NativeApp/include/AppBase.hpp
@@ -110,7 +110,7 @@ public:
/// Called by the framework to request the desired initial window size.
/// This method is called before the platform-specific window is created.
- /// An application may override this method to speciy required initial
+ /// An application may override this method to specify required initial
/// window width and height.
virtual void GetDesiredInitialWindowSize(int& width, int& height)
{
diff --git a/NativeApp/include/Linux/LinuxAppBase.hpp b/NativeApp/include/Linux/LinuxAppBase.hpp
index 809f831..33c2b26 100644
--- a/NativeApp/include/Linux/LinuxAppBase.hpp
+++ b/NativeApp/include/Linux/LinuxAppBase.hpp
@@ -56,7 +56,7 @@ class LinuxAppBase : public AppBase
public:
/// Called when GL context is initialized
- /// An application must override this method to perform requred
+ /// An application must override this method to perform required
/// initialization operations after OpenGL context has been initialized
/// by the framework
/// \param [in] display - XLib display.
diff --git a/NativeApp/include/NativeAppBase.hpp b/NativeApp/include/NativeAppBase.hpp
index 803e8ad..522bf27 100644
--- a/NativeApp/include/NativeAppBase.hpp
+++ b/NativeApp/include/NativeAppBase.hpp
@@ -77,7 +77,7 @@
}
#else
-# error Usnupported paltform
+# error Usnupported platform
#endif
diff --git a/NativeApp/include/UWP/UWPAppBase.hpp b/NativeApp/include/UWP/UWPAppBase.hpp
index 359ce7a..3434dbb 100644
--- a/NativeApp/include/UWP/UWPAppBase.hpp
+++ b/NativeApp/include/UWP/UWPAppBase.hpp
@@ -52,7 +52,7 @@ public:
// Notifies the app that it is being suspended.
virtual void OnSuspending() {}
- // Notifes the app that it is no longer suspended.
+ // Notifies the app that it is no longer suspended.
virtual void OnResuming() {}
// Notifies renderers that device resources need to be released.