fix typos

This commit is contained in:
puugz
2022-11-19 15:29:18 +01:00
parent 20a6d9411d
commit 634fadcf33
16 changed files with 25 additions and 28 deletions

View File

@ -63,7 +63,7 @@ namespace Blah
AppEventFn on_render = nullptr;
// Callback when the user has requested the application close.
// For example, pressing the Close button, ALT+F4, etc
// For example, pressing the Close button, ALT+F4, etc.
// By default this calls `App::exit()`
AppEventFn on_exit_request = nullptr;

View File

@ -9,7 +9,6 @@
namespace Blah
{
// A 2D sprite batcher, used for drawing shapes and textures
class Batch
{

View File

@ -135,7 +135,7 @@ namespace Blah
return Vec4f(r / 255.0f, g / 255.0f, b / 255.0f, a / 255.0f);
}
// Convers the Color to a u32
// Converts the Color to a u32
constexpr u32 to_rgba() const
{
return
@ -145,7 +145,7 @@ namespace Blah
(u32)a;
}
// Convers the Color to a u32
// Converts the Color to a u32
constexpr u32 to_rgb() const
{
return
@ -154,7 +154,7 @@ namespace Blah
(u32)b;
}
// Returns a RGBA Color representation of the integer value
// Returns an RGBA Color representation of the integer value
static constexpr Color from_rgba(u32 value)
{
return
@ -166,7 +166,7 @@ namespace Blah
};
}
// Returns a RGB Color representation of the integer value, with Alpha = 255
// Returns an RGB Color representation of the integer value, with Alpha = 255
static constexpr Color from_rgb(u32 value)
{
return
@ -191,7 +191,7 @@ namespace Blah
);
}
// Mutliplties the Color
// Multiples the Color
constexpr Color operator*(float multiply) const
{
return Color(

View File

@ -52,7 +52,7 @@ namespace Blah
LessOrEqual,
Greater,
NotEqual,
GreatorOrEqual
GreaterOrEqual
};
// Cull mode during a draw call
@ -210,7 +210,7 @@ namespace Blah
enum class TextureFormat
{
None, // Invalid Format
R, // Single 8-bit channe;
R, // Single 8-bit channel
RG, // 2 8-bit channels
RGBA, // 4 8-bit channels
DepthStencil, // Depth 24, Stencil 8
@ -317,10 +317,10 @@ namespace Blah
// Supported Vertex Index formats
enum class IndexFormat
{
// Indices are 16 bit unsigned integers
// Indices are 16-bit unsigned integers
UInt16,
// Indices are 32 bit unsigned integers
// Indices are 32-bit unsigned integers
UInt32
};

View File

@ -65,7 +65,7 @@ namespace Blah
int padding;
// generated textures. There can be more than one if the packer was
// unable to fit all of the provided subtextures into the max_size.
// unable to fit all the provided subtextures into the max_size.
Vector<Image> pages;
Packer();