diff options
| author | Bruce Mitchener <bruce.mitchener@gmail.com> | 2024-02-08 22:21:44 +0700 |
|---|---|---|
| committer | Bruce Mitchener <bruce.mitchener@gmail.com> | 2024-02-08 22:21:44 +0700 |
| commit | 7fb41a7e3bf610a69bffbfa8c7f22661c0b4b625 (patch) | |
| tree | 24deaa4beecff7ec32379b85e25c11196a5be92a /util | |
| parent | 02b1dae4127402b3531f862a4ef114af175b11fb (diff) | |
Typo fixes.
Diffstat (limited to 'util')
| -rw-r--r-- | util/sokol_debugtext.h | 4 | ||||
| -rw-r--r-- | util/sokol_gfx_imgui.h | 2 | ||||
| -rw-r--r-- | util/sokol_gl.h | 2 | ||||
| -rw-r--r-- | util/sokol_imgui.h | 2 | ||||
| -rw-r--r-- | util/sokol_nuklear.h | 2 | ||||
| -rw-r--r-- | util/sokol_spine.h | 2 |
6 files changed, 7 insertions, 7 deletions
diff --git a/util/sokol_debugtext.h b/util/sokol_debugtext.h index 68591591..cec06946 100644 --- a/util/sokol_debugtext.h +++ b/util/sokol_debugtext.h @@ -148,7 +148,7 @@ - to render characters at 16x16 physical pixels: - sdtx_canvas(sapp_width()/2.0f, sapp_heigth()/2.0f); + sdtx_canvas(sapp_width()/2.0f, sapp_height()/2.0f); Do *not* use integer math here, since this will not look nice when the render target size isn't divisible by 2. @@ -4135,7 +4135,7 @@ static void _sdtx_render_char(_sdtx_context_t* ctx, uint8_t c) { const float x1 = x0 + ctx->glyph_size.x; const float y1 = y0 + ctx->glyph_size.y; - // glyph width and heigth in font texture space + // glyph width and height in font texture space // NOTE: the '+1' and '-2' fixes texture bleeding into the neighboring font texture cell const uint16_t uvw = 0x10000 / 0x100; const uint16_t uvh = 0x10000 / SDTX_MAX_FONTS; diff --git a/util/sokol_gfx_imgui.h b/util/sokol_gfx_imgui.h index 394760da..d29a284b 100644 --- a/util/sokol_gfx_imgui.h +++ b/util/sokol_gfx_imgui.h @@ -3790,7 +3790,7 @@ _SOKOL_PRIVATE void _sg_imgui_draw_pass_panel(sg_imgui_t* ctx, sg_pass pass) { } if (pass_ui->desc.depth_stencil_attachment.image.id != SG_INVALID_ID) { igSeparator(); - igText("Depth-Stencil Attachemnt:"); + igText("Depth-Stencil Attachment:"); _sg_imgui_draw_pass_attachment(ctx, &pass_ui->desc.depth_stencil_attachment, &pass_ui->ds_image_scale); } } else { diff --git a/util/sokol_gl.h b/util/sokol_gl.h index 88a62bad..997ddea3 100644 --- a/util/sokol_gl.h +++ b/util/sokol_gl.h @@ -453,7 +453,7 @@ sgl_set_context(ctx); - The currently active context will implicitely be used by most sokol-gl functions + The currently active context will implicitly be used by most sokol-gl functions which don't take an explicit context handle as argument. To switch back to the default context, pass the global constant SGL_DEFAULT_CONTEXT: diff --git a/util/sokol_imgui.h b/util/sokol_imgui.h index 59c150b3..93b697fa 100644 --- a/util/sokol_imgui.h +++ b/util/sokol_imgui.h @@ -1991,7 +1991,7 @@ static void _simgui_pool_free_index(_simgui_pool_t* pool, int slot_index) { SOKOL_ASSERT(pool->queue_top <= (pool->size-1)); } -/* initiailize a pool slot: +/* initialize a pool slot: - bump the slot's generation counter - create a resource id from the generation counter and slot index - set the slot's id to this id diff --git a/util/sokol_nuklear.h b/util/sokol_nuklear.h index 25293252..04e73eac 100644 --- a/util/sokol_nuklear.h +++ b/util/sokol_nuklear.h @@ -1917,7 +1917,7 @@ static void _snk_pool_free_index(_snk_pool_t* pool, int slot_index) { SOKOL_ASSERT(pool->queue_top <= (pool->size-1)); } -/* initiailize a pool slot: +/* initialize a pool slot: - bump the slot's generation counter - create a resource id from the generation counter and slot index - set the slot's id to this id diff --git a/util/sokol_spine.h b/util/sokol_spine.h index 48295a20..f76d2bf4 100644 --- a/util/sokol_spine.h +++ b/util/sokol_spine.h @@ -3192,7 +3192,7 @@ static void _sspine_pool_free_index(_sspine_pool_t* pool, int slot_index) { SOKOL_ASSERT(pool->queue_top <= (pool->size-1)); } -/* initiailize a pool slot: +/* initialize a pool slot: - bump the slot's generation counter - create a resource id from the generation counter and slot index - set the slot's id to this id |