|
Problem rotating a bitmap |
GTP195
Member #13,916
January 2012
|
Hi everyone! #include <stdio.h> int x=10; printf("Valore di b? "); printf("Valore di c? "); |
weapon_S
Member #7,859
October 2006
|
Lots of wrongs... Use <code></code> to format your forum post. GTP195 said: al_set_target_bitmap(display);
Quote: while(EOF) What? Quote: al_draw_rotated_bitmap(display, 1024/2, 768/2, 0, 768, ALLEGRO_PI, 0); You want to draw the display to... the display? Remember: the target is set with al_set_target_bitmap or al_set_target_backbuffer. The source you are drawing is given to this function. AND you can't have any part of the screen as a source. Quote: al_destroy_bitmap(display);
Quote: al_destroy_bitmap(display); You don't need to destroy the backbuffer manually. It is even very wrong. Turn on warnings of your compiler. With gcc you use the "-Wall" option to do that. (The option is case sensitive.) [Edit] References
|
Gabriel Campos
Member #12,034
June 2010
|
You dont create a display to show window.... ALLEGRO_BITMAP *display; // wrong ALLEGRO_DISPLAY *display; // correct
al_draw_rotated_bitmap(display, 1024/2, 768/2, 0, 768, ALLEGRO_PI, 0); // as weapon_S said this is wrong... al_draw_rotated_bitmap(parabolaruotata, 1024/2, 768/2, 0, 768, ALLEGRO_PI, 0); // the correct parameter is the bitmap you create
GTP195 said: while(EOF)
Whaaaat?? look this tutorial
|
|