Skip to content

Commit 8cb7ce5

Browse files
author
GH Action
committed
1 parent 29c59b1 commit 8cb7ce5

File tree

9 files changed

+168
-168
lines changed

9 files changed

+168
-168
lines changed

src/sokol/app.zig

+15-15
Original file line numberDiff line numberDiff line change
@@ -1281,7 +1281,7 @@ pub const max_iconimages = 8;
12811281
/// The type of event that's passed to the event handler callback
12821282
/// in the sapp_event.type field. These are not just "traditional"
12831283
/// input events, but also notify the application about state changes
1284-
/// or other user-invoked actions
1284+
/// or other user-invoked actions.
12851285
pub const EventType = enum(i32) {
12861286
INVALID,
12871287
KEY_DOWN,
@@ -1315,7 +1315,7 @@ pub const EventType = enum(i32) {
13151315
/// The 'virtual keycode' of a KEY_DOWN or KEY_UP event in the
13161316
/// struct field sapp_event.key_code.
13171317
///
1318-
/// Note that the keycode values are identical with GLFW
1318+
/// Note that the keycode values are identical with GLFW.
13191319
pub const Keycode = enum(i32) {
13201320
INVALID = 0,
13211321
SPACE = 32,
@@ -1447,7 +1447,7 @@ pub const Keycode = enum(i32) {
14471447
/// NOTE: the values must remain in sync with the corresponding
14481448
/// Android SDK type, so don't change those.
14491449
///
1450-
/// See https://developer.android.com/reference/android/view/MotionEvent#TOOL_TYPE_UNKNOW
1450+
/// See https://developer.android.com/reference/android/view/MotionEvent#TOOL_TYPE_UNKNOWN
14511451
pub const AndroidTooltype = enum(i32) {
14521452
UNKNOWN = 0,
14531453
FINGER = 1,
@@ -1461,7 +1461,7 @@ pub const AndroidTooltype = enum(i32) {
14611461
/// TOUCHES_MOVED, TOUCHES_ENDED).
14621462
///
14631463
/// Touch points are stored in the nested array sapp_event.touches[],
1464-
/// and the number of touches is stored in sapp_event.num_touches
1464+
/// and the number of touches is stored in sapp_event.num_touches.
14651465
pub const Touchpoint = extern struct {
14661466
identifier: usize = 0,
14671467
pos_x: f32 = 0.0,
@@ -1473,7 +1473,7 @@ pub const Touchpoint = extern struct {
14731473
/// sapp_mousebutton
14741474
///
14751475
/// The currently pressed mouse button in the events MOUSE_DOWN
1476-
/// and MOUSE_UP, stored in the struct field sapp_event.mouse_button
1476+
/// and MOUSE_UP, stored in the struct field sapp_event.mouse_button.
14771477
pub const Mousebutton = enum(i32) {
14781478
LEFT = 0,
14791479
RIGHT = 1,
@@ -1482,7 +1482,7 @@ pub const Mousebutton = enum(i32) {
14821482
};
14831483

14841484
/// These are currently pressed modifier keys (and mouse buttons) which are
1485-
/// passed in the event struct field sapp_event.modifiers
1485+
/// passed in the event struct field sapp_event.modifiers.
14861486
pub const modifier_shift = 1;
14871487
pub const modifier_ctrl = 2;
14881488
pub const modifier_alt = 4;
@@ -1497,7 +1497,7 @@ pub const modifier_mmb = 1024;
14971497
/// user callback function. Note that it depends on the event
14981498
/// type what struct fields actually contain useful values, so you
14991499
/// should first check the event type before reading other struct
1500-
/// fields
1500+
/// fields.
15011501
pub const Event = extern struct {
15021502
frame_count: u64 = 0,
15031503
type: EventType = .INVALID,
@@ -1523,7 +1523,7 @@ pub const Event = extern struct {
15231523
/// sg_range
15241524
///
15251525
/// A general pointer/size-pair struct and constructor macros for passing binary blobs
1526-
/// into sokol_app.h
1526+
/// into sokol_app.h.
15271527
pub const Range = extern struct {
15281528
ptr: ?*const anyopaque = null,
15291529
size: usize = 0,
@@ -1536,7 +1536,7 @@ pub const Range = extern struct {
15361536
///
15371537
/// Note that the actual image pixel format depends on the use case:
15381538
///
1539-
/// - window icon pixels are RGBA
1539+
/// - window icon pixels are RGBA8
15401540
pub const ImageDesc = extern struct {
15411541
width: i32 = 0,
15421542
height: i32 = 0,
@@ -1558,7 +1558,7 @@ pub const ImageDesc = extern struct {
15581558
/// images[] array.
15591559
///
15601560
/// If both the sokol_default flag is set to true, any image candidates
1561-
/// will be ignored and the sokol_app.h default icon will be set
1561+
/// will be ignored and the sokol_app.h default icon will be set.
15621562
pub const IconDesc = extern struct {
15631563
sokol_default: bool = false,
15641564
images: [8]ImageDesc = [_]ImageDesc{.{}} ** 8,
@@ -1569,7 +1569,7 @@ pub const IconDesc = extern struct {
15691569
/// Used in sapp_desc to provide custom memory-alloc and -free functions
15701570
/// to sokol_app.h. If memory management should be overridden, both the
15711571
/// alloc_fn and free_fn function must be provided (e.g. it's not valid to
1572-
/// override one function but not the other)
1572+
/// override one function but not the other).
15731573
pub const Allocator = extern struct {
15741574
alloc_fn: ?*const fn (usize, ?*anyopaque) callconv(.C) ?*anyopaque = null,
15751575
free_fn: ?*const fn (?*anyopaque, ?*anyopaque) callconv(.C) void = null,
@@ -1684,14 +1684,14 @@ pub const LogItem = enum(i32) {
16841684
/// without logging function, sokol-app will be completely silent, e.g. it will
16851685
/// not report errors or warnings. For maximum error verbosity, compile in
16861686
/// debug mode (e.g. NDEBUG *not* defined) and install a logger (for instance
1687-
/// the standard logging function from sokol_log.h)
1687+
/// the standard logging function from sokol_log.h).
16881688
pub const Logger = extern struct {
16891689
func: ?*const fn ([*c]const u8, u32, u32, [*c]const u8, u32, [*c]const u8, ?*anyopaque) callconv(.C) void = null,
16901690
user_data: ?*anyopaque = null,
16911691
};
16921692

16931693
/// sokol-app initialization options, used as return value of sokol_main()
1694-
/// or sapp_run() argument
1694+
/// or sapp_run() argument.
16951695
pub const Desc = extern struct {
16961696
init_cb: ?*const fn () callconv(.C) void = null,
16971697
frame_cb: ?*const fn () callconv(.C) void = null,
@@ -1740,7 +1740,7 @@ pub const Desc = extern struct {
17401740
};
17411741

17421742
/// HTML5 specific: request and response structs for
1743-
/// asynchronously loading dropped-file content
1743+
/// asynchronously loading dropped-file content.
17441744
pub const Html5FetchError = enum(i32) {
17451745
FETCH_ERROR_NO_ERROR,
17461746
FETCH_ERROR_BUFFER_TOO_SMALL,
@@ -1765,7 +1765,7 @@ pub const Html5FetchRequest = extern struct {
17651765

17661766
/// sapp_mouse_cursor
17671767
///
1768-
/// Predefined cursor image definitions, set with sapp_set_mouse_cursor(sapp_mouse_cursor cursor
1768+
/// Predefined cursor image definitions, set with sapp_set_mouse_cursor(sapp_mouse_cursor cursor)
17691769
pub const MouseCursor = enum(i32) {
17701770
DEFAULT = 0,
17711771
ARROW,

src/sokol/audio.zig

+2-2
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@ pub const LogItem = enum(i32) {
526526
/// saudio_logger
527527
///
528528
/// Used in saudio_desc to provide a custom logging and error reporting
529-
/// callback to sokol-audio
529+
/// callback to sokol-audio.
530530
pub const Logger = extern struct {
531531
func: ?*const fn ([*c]const u8, u32, u32, [*c]const u8, u32, [*c]const u8, ?*anyopaque) callconv(.C) void = null,
532532
user_data: ?*anyopaque = null,
@@ -537,7 +537,7 @@ pub const Logger = extern struct {
537537
/// Used in saudio_desc to provide custom memory-alloc and -free functions
538538
/// to sokol_audio.h. If memory management should be overridden, both the
539539
/// alloc_fn and free_fn function must be provided (e.g. it's not valid to
540-
/// override one function but not the other)
540+
/// override one function but not the other).
541541
pub const Allocator = extern struct {
542542
alloc_fn: ?*const fn (usize, ?*anyopaque) callconv(.C) ?*anyopaque = null,
543543
free_fn: ?*const fn (?*anyopaque, ?*anyopaque) callconv(.C) void = null,

src/sokol/debugtext.zig

+5-5
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ pub const LogItem = enum(i32) {
589589
/// sdtx_logger_t
590590
///
591591
/// Used in sdtx_desc_t to provide a custom logging and error reporting
592-
/// callback to sokol-debugtext
592+
/// callback to sokol-debugtext.
593593
pub const Logger = extern struct {
594594
func: ?*const fn ([*c]const u8, u32, u32, [*c]const u8, u32, [*c]const u8, ?*anyopaque) callconv(.C) void = null,
595595
user_data: ?*anyopaque = null,
@@ -603,7 +603,7 @@ pub const Context = extern struct {
603603
/// sdtx_range is a pointer-size-pair struct used to pass memory
604604
/// blobs into sokol-debugtext. When initialized from a value type
605605
/// (array or struct), use the SDTX_RANGE() macro to build
606-
/// an sdtx_range struct
606+
/// an sdtx_range struct.
607607
pub const Range = extern struct {
608608
ptr: ?*const anyopaque = null,
609609
size: usize = 0,
@@ -620,7 +620,7 @@ pub const FontDesc = extern struct {
620620
/// Describes the initialization parameters of a rendering context. Creating
621621
/// additional rendering contexts is useful if you want to render in
622622
/// different sokol-gfx rendering passes, or when rendering several layers
623-
/// of text
623+
/// of text.
624624
pub const ContextDesc = extern struct {
625625
max_commands: i32 = 0,
626626
char_buf_size: i32 = 0,
@@ -637,7 +637,7 @@ pub const ContextDesc = extern struct {
637637
/// Used in sdtx_desc_t to provide custom memory-alloc and -free functions
638638
/// to sokol_debugtext.h. If memory management should be overridden, both the
639639
/// alloc_fn and free_fn function must be provided (e.g. it's not valid to
640-
/// override one function but not the other)
640+
/// override one function but not the other).
641641
pub const Allocator = extern struct {
642642
alloc_fn: ?*const fn (usize, ?*anyopaque) callconv(.C) ?*anyopaque = null,
643643
free_fn: ?*const fn (?*anyopaque, ?*anyopaque) callconv(.C) void = null,
@@ -657,7 +657,7 @@ pub const Allocator = extern struct {
657657
/// sdtx_font_z1013()
658658
/// sdtx_font_cpc()
659659
/// sdtx_font_c64()
660-
/// sdtx_font_oric(
660+
/// sdtx_font_oric()
661661
pub const Desc = extern struct {
662662
context_pool_size: i32 = 0,
663663
printf_buf_size: i32 = 0,

src/sokol/fetch.zig

+3-3
Original file line numberDiff line numberDiff line change
@@ -984,7 +984,7 @@ pub const LogItem = enum(i32) {
984984
/// sfetch_logger_t
985985
///
986986
/// Used in sfetch_desc_t to provide a custom logging and error reporting
987-
/// callback to sokol-fetch
987+
/// callback to sokol-fetch.
988988
pub const Logger = extern struct {
989989
func: ?*const fn ([*c]const u8, u32, u32, [*c]const u8, u32, [*c]const u8, ?*anyopaque) callconv(.C) void = null,
990990
user_data: ?*anyopaque = null,
@@ -994,7 +994,7 @@ pub const Logger = extern struct {
994994
///
995995
/// A pointer-size pair struct to pass memory ranges into and out of sokol-fetch.
996996
/// When initialized from a value type (array or struct) you can use the
997-
/// SFETCH_RANGE() helper macro to build an sfetch_range_t struct
997+
/// SFETCH_RANGE() helper macro to build an sfetch_range_t struct.
998998
pub const Range = extern struct {
999999
ptr: ?*const anyopaque = null,
10001000
size: usize = 0,
@@ -1005,7 +1005,7 @@ pub const Range = extern struct {
10051005
/// Used in sfetch_desc_t to provide custom memory-alloc and -free functions
10061006
/// to sokol_fetch.h. If memory management should be overridden, both the
10071007
/// alloc and free function must be provided (e.g. it's not valid to
1008-
/// override one function but not the other)
1008+
/// override one function but not the other).
10091009
pub const Allocator = extern struct {
10101010
alloc_fn: ?*const fn (usize, ?*anyopaque) callconv(.C) ?*anyopaque = null,
10111011
free_fn: ?*const fn (?*anyopaque, ?*anyopaque) callconv(.C) void = null,

0 commit comments

Comments
 (0)