ALLEGRO_PI
#define ALLEGRO_PI 3.14159265358979323846
Introduced in 5.0.0
C99 compilers have no predefined value like M_PI for the constant π, but you can use this one instead.
Examples: ex_bitmap_target, ex_blend2, ex_blend_bench, ex_blit, ex_clip, ex_filter, ex_glext, ex_haiku, ex_lines, ex_logo, ex_opengl, ex_premulalpha, ex_prim, ex_synth, ex_threads
Most helpful discussions:
- Blit to Android display
- How to use al_calc_elliptical_arc?
- [Allegro 5.0.10] Lightning with blenders
- Best algorithm for shadow casting on a 2-D grid?
- Detecting mouseover on isometric map
- Problem with rotating
- al_wait_for_event won't catch the timer.
- Collision Detection with a rotating square.
- How to draw a smoother/more accurate circle?
- Pointers and arrays.
Other recent discussions:
- Degrees to Radians
- SFML 2 Vs SDL 1.3/2.0 Vs Allegro 5
- how are you all?
- Bullet move in certain direction based on mouse
- [Al 5.0.5] Works on Linux, doesn't in WIndows
- Problem rotating a bitmap
- POB Global Competition Thread [Joke Thread NOT SERIOUS!]
- Increase in Programming Questions
- play_sample, delay in sound when looping
- to static or not to static?