Questions tagged [allegro]

Allegro is a low-level game programming library distributed freely, supporting desktop and mobile platforms. It is coded in C and offers several language bindings.

The latest stable version is 5.0. It is completely rewritten with a new API and full hardware accelerated graphics via OpenGL or D3D. There is official support for Windows, OS X, Linux, and iOS. There is also an unstable branch 5.1.

Links

383 questions
2
votes
1 answer

Allegro 5 native dialog not found

I'm trying to compile my code with these flags : g++ load.cpp -o load -I/usr/local/include/allegro5 -Wall -L/usr/local/lib -lallegro `pkg-config --libs allegro-5 allegro_audio-5 allegro_dialog-5 allegro_image-5 allegro_memfile-5 allegro_primitives-5…
user7075574
2
votes
2 answers

How to make text blinking without blocking the whole program in C++ Allegro?

bool running = true; int width = al_get_display_width(display); while (running) { for (;;) { al_clear_to_color(al_map_rgb(255, 255, 255)); al_draw_bitmap(bitmap, 0, 0, 0); al_draw_text(font, al_map_rgb(0, 0, 0), 760, 375, 0, "Play…
John
  • 105
  • 10
2
votes
2 answers

cannot compile allegro using visual c++

I just downloaded the allegro library I make a new empty project then add a source file I add this line of code: #include I compile and get the following error: c:\allegro\include\allegro5\internal\alconfig.h(28) : fatal error C1083:…
user451498
2
votes
1 answer

Is there a way to partially tint bitmaps in Allegro?

I'm programming a game in Allegro 5 and I'm currently working on my drawing algorithm. After calculation I end up with two ALLEGRO_BITMAP*-objects where one of them is my "scene" with the terrain drawn on it and the other one is a shadow-map. The…
0liCom
  • 35
  • 8
2
votes
2 answers

How can I simulate a nested function without lambda expressions in C++11?

I have the following code: int main(int argc, char **argv) { App app(800, 600); app.add_event_scene(Scene("Event Plot", event_plot)); Image x("sample.png"); struct foo { static void visual_plot() { x.draw(); } }; // Error. …
Ericson Willians
  • 7,606
  • 11
  • 63
  • 114
2
votes
2 answers

Nouveau kernel rejected pushbuf on Allegro5-C++

I'm in trouble with this: I've installed Allegro5 on Ubuntu, and compiled my Helloworld project #include #include int main(void) { ALLEGRO_DISPLAY *display=NULL; if(!al_init()) { …
2
votes
1 answer

How can I use two buffer in one screen ? Is it possible ? (Allegro.h)

I'm working on Microsoft Visual Studio 2010 , trying to code a game with using Allegro.h library . The point is that I'm using a buffer for drawing to buildings with draw_sprite(screen,buf1,0,0); After that I want to move a bitmap ball image in…
user3070246
2
votes
1 answer

Making projectile shoot using with allegro library in C

I'm trying to make a projectile shoot using with allegro library in C.And I couldn't do it in no way.My all code is below.My circle goes up but then disappear.Even if not I can't bring it down to the ground.I'm not good at physic so if my equals are…
Musti
  • 27
  • 4
2
votes
2 answers

C/C++ Allegro program causes Windows 7 to switch to Aero Basic

I'm just trying out the allegro library, and here is the code which I've got so far: #include int main(int argc, char *argv[]) { allegro_init(); // initialize the allegro libraries install_keyboard(); // initialize keyboard…
Matthew H
  • 5,831
  • 8
  • 47
  • 82
2
votes
2 answers

I am attempting to write a basic first program in allegro

SO, I'm using the latest version and the latest version of Allegro, but on lines 6 and 12 I seem to have encountered some errors that are not yet clear to me. I am very new to C++ as well as Allegro, so any help would be very much appreciated. For…
2
votes
3 answers

Boost Unit testing with Allegro Graphics Library

I'm trying to use boost unit testing alongside the Allegro graphics library, but both require main() alterations / overwrites. Has anyone had any experience using both? Edit 1/29/2010: I've refrained from selecting an answer until I can verify one…
Narfanator
  • 5,595
  • 3
  • 39
  • 71
2
votes
2 answers

MSCVR110d.dll Missing in Allegro / VS Set Up

So I'm trying to set up an Allegro template by linking everything to a new VS program. I've downloaded the .cc files from Allegro and followed the installation guide in it's Wiki for setting up with Visual Studio 2010. The version is 5.0.10. Upon…
Reanimation
  • 3,151
  • 10
  • 50
  • 88
2
votes
1 answer

Embedding another Window as a QWidget

I'm currently working on a project that uses Allegro for rendering, input, etc. However I would like to add a GUI to my project using something like Qt. The problem is that Allegro does not support using a Window not created by allegro for…
Brad
  • 10,015
  • 17
  • 54
  • 77
2
votes
1 answer

Functions of Allegro 4 in Allegro 5

I have a code written in Allegro 4 and am converting it to Allegro 5, but I'm having serious problems with functions that no longer exist in allegro 5, one of them is "blit" BITMAP *bTile; // Bitmap do tile; BITMAP *bMapa; // Bitmap do mapa; BITMAP…
2
votes
5 answers

Best 2D animation library/tech for "iPhone" style animation on WIN32?

All, I have built a nifty demo application that displays data about our internal systems as a full-screen "billboard" style display. You could think of this as something like an application displaying the national deficit - rapidly increasing…
Roark Fan
  • 672
  • 8
  • 9