Add struct field tag fmt formatting
This commit is contained in:
1 parent
802895aa43
commit
83542a3f04
4 files changed
+19
-19
No files matched your search
Vendored
+5
-5
@@ -523,17 +523,17 @@ Color :: distinct [4]Uint8
|
||||
FColor :: distinct [4]f32
|
||||
|
||||
Palette :: struct {
|
||||
ncolors: c.int, /**< number of elements in `colors`. */
|
||||
colors: [^]Color, /**< an array of colors, `ncolors` long. */
|
||||
version: Uint32, /**< internal use only, do not touch. */
|
||||
refcount: c.int, /**< internal use only, do not touch. */
|
||||
ncolors: c.int, /**< number of elements in `colors`. */
|
||||
colors: [^]Color `fmt:"v,ncolors"`, /**< an array of colors, `ncolors` long. */
|
||||
version: Uint32, /**< internal use only, do not touch. */
|
||||
refcount: c.int, /**< internal use only, do not touch. */
|
||||
}
|
||||
|
||||
PixelFormatDetails :: struct {
|
||||
format: PixelFormat,
|
||||
bits_per_pixel: Uint8,
|
||||
bytes_per_pixel: Uint8,
|
||||
padding: [2]Uint8,
|
||||
_: [2]Uint8,
|
||||
Rmask: Uint32,
|
||||
Gmask: Uint32,
|
||||
Bmask: Uint32,
|
||||
|
||||
Reference in new issue
Block a user