Initialize the primitives addon.
This commit is contained in:
parent
fb023194e3
commit
86159b0b69
@ -24,7 +24,8 @@ int run;
|
||||
int redraw;
|
||||
|
||||
#include <stdio.h>
|
||||
#include<allegro5/allegro.h>
|
||||
#include <allegro5/allegro.h>
|
||||
#include <allegro5/allegro_primitives.h>
|
||||
|
||||
int main() {
|
||||
printf("SpaceShipSim v%s\n", VERSION);
|
||||
@ -34,6 +35,11 @@ int main() {
|
||||
fprintf(stderr, "alleg5: failed to initialize Allegro.\n");
|
||||
return 1;
|
||||
}
|
||||
if(!al_init_primitives_addon())
|
||||
{
|
||||
fprintf(stderr, "alleg5: failed to initialize primitives addon.\n");
|
||||
return 1;
|
||||
}
|
||||
if(!create_display(800, 600))
|
||||
{
|
||||
fprintf(stderr, "alleg5: failed to create display.\n");
|
||||
@ -72,6 +78,7 @@ int main() {
|
||||
|
||||
evnt_mngr_deinit();
|
||||
destroy_display();
|
||||
al_shutdown_primitives_addon();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user