mirror of
https://github.com/NoelFB/blah.git
synced 2025-06-29 19:25:26 +08:00
fix typos
This commit is contained in:
@ -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;
|
||||
|
||||
|
@ -9,7 +9,6 @@
|
||||
|
||||
namespace Blah
|
||||
{
|
||||
|
||||
// A 2D sprite batcher, used for drawing shapes and textures
|
||||
class Batch
|
||||
{
|
||||
|
@ -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(
|
||||
|
@ -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
|
||||
};
|
||||
|
||||
|
@ -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();
|
||||
|
Reference in New Issue
Block a user