}
void buildraylib(void) {
- buildfiles((struct cbsfile []){
- {RLLIB, LLRAYLIB, LIBTYPE},
+ buildfiles((struct cbsfile []){{RLLIB, LLRAYLIB, LIBTYPE},
- {RLSRC "raudio", LIST(CFGENERAL)},
- {RLSRC "rcore", LIST(CFGLFW, CFGENERAL)},
- {RLSRC "rglfw", LIST(CFGLFW, CFGRAPHICS, CFGENERAL)},
- {RLSRC "rmodels", LIST(CFGENERAL)},
- {RLSRC "rshapes", LIST(CFGENERAL)},
- {RLSRC "rtext", LIST(CFGENERAL)},
- {RLSRC "rtextures", LIST(CFGENERAL)},
- {RLSRC "utils", LIST(CFGENERAL)},
+ {RLSRC "raudio", LIST(CFGENERAL)},
+ {RLSRC "rcore", LIST(CFGLFW, CFGENERAL)},
+ {RLSRC "rglfw", LIST(CFGLFW, CFGRAPHICS, CFGENERAL)},
+ {RLSRC "rmodels", LIST(CFGENERAL)},
+ {RLSRC "rshapes", LIST(CFGENERAL)},
+ {RLSRC "rtext", LIST(CFGENERAL)},
+ {RLSRC "rtextures", LIST(CFGENERAL)},
+ {RLSRC "utils", LIST(CFGENERAL)},
- {NULL}
- });
+ {NULL}});
}
int main(void) {
scale = width * texture->height > height * texture->width
? (float)height / texture->height
: (float)width / texture->width;
- pos = CLITERAL(Vector2){
- (width - texture->width * scale) / 2,
- (height - texture->height * scale) / 2,
- };
+ pos = CLITERAL(Vector2){(width - texture->width * scale) / 2,
+ (height - texture->height * scale) / 2};
DrawTextureEx(*texture, pos, 0, scale, WHITE);
} else {
dim = MeasureTextEx(font, xpm ? error : welcome, font.baseSize, 0);
- pos = (Vector2){
- .x = (width - dim.x) / 2,
- .y = (height - dim.y) / 2,
- };
+ pos = CLITERAL(Vector2){(width - dim.x) / 2, (height - dim.y) / 2};
DrawTextEx(font, xpm ? error : welcome, pos, font.baseSize, 0, BLACK);
}