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
1
vote
3 answers

How to return an array of structs from a class in a getter function

I have a relatively simple question but I cant seem to find an answer specific for my case and I just may not be approaching this problem the right way. I have a class that looks like this: struct tileProperties { int x; int y; }; class…
zic10
  • 2,310
  • 5
  • 30
  • 55
1
vote
0 answers

Fix image distortion in Allegro 5

I've been running into some interesting behavior on Allegro 5 in regards to its bitmap library. Essentially, when I try to load either a bmp or png of the same image, that image goes through some sort of anti-aliasing or blur procedure by default…
DevJRoc
  • 11
  • 1
1
vote
0 answers

CMake 2.8.10.2 fails with Xcode 4.6

I'm trying to build the Allegro 5.0.8 game library for iOS and it seems CMake 2.8.10.2 is failing with Xcode 4.6: localhost:build steve$ cmake -DCMAKE_TOOLCHAIN_FILE=../cmake/Toolchain-iphone.cmake -G Xcode .. -- The C compiler identification is…
Steve
  • 8,066
  • 11
  • 70
  • 112
1
vote
1 answer

Allegro C++ how to refresh delete lines?

Hey so I was trying to make a program where you can draw a line from a point to where your mouse is but I am having trouble figuring out how to delete the line after it has been drawn. #include #include BITMAP *buffer; int…
Napplesauce
  • 47
  • 1
  • 6
1
vote
1 answer

Allegro updating drawing

Hey first off I just want to say i am a complete noob at allegro and pretty much just started. What I want to do is keep a line on the screen for a second, but then have it disappear. Right now all that is happening is the line is just staying on…
Napplesauce
  • 47
  • 1
  • 6
1
vote
2 answers

Allegro 4.2.3 Creating A Static/Release Build Using Visual C++ 2010 Express To Run On Other Windows Computers

I have successfully installed allegro 4.2.3 in accordance with the instructions at the following link and it all works great: http://blog.hamidnazari.com/2010/07/21/installing-allegro-on-visual-cpp-express-2010/ The only thing I've ended up…
1
vote
2 answers

Allegro, outputting mouse click

I want to print out the coordinates of my mouse in the graphical window, and when the user clicks it, there should appear a message "clicked". But the problem is when the user does click it, instead of 1 message, I get around 5-10 messages. I…
RnD
  • 1,019
  • 5
  • 23
  • 49
1
vote
1 answer

MSVCR100D.dll missing when running Allegro project in debug

I have Allegro 5 set up with VS2012 on Windows 8 and am trying to compile the sample code from the Allegro wiki. I have installed VC++ 2010 Redist. (both x86 and x64) and I am able to build/run the project in release just fine. The issue is that…
PseudoPsyche
  • 4,332
  • 5
  • 37
  • 58
1
vote
3 answers

How can a variable in C++be named a function call?

While going through some allegro tutorials I found an odd call. int al_init(); The function al_init() initializes allegro so that the allegro functions can be used. What is with the int al_init(); line? If I change this line of the code to exclude…
Ty_
  • 828
  • 1
  • 11
  • 21
1
vote
1 answer

Allegro 5 - MinGW + Geany

I'm trying to set up Allegro to work with MinGW in Geany in Windows. But I keep running into errors (I assume linker errors). Here's what I've done so far: I already had Geany and MinGW installed. I downloaded Allegro 5 from…
Zombie
  • 139
  • 2
  • 7
1
vote
1 answer

Xcode 4 and Allegro 5.1 - Linker can't find Framework

I know there are several other questions here regarding the Linker and Xcode 4, but they don't really relate to my problem. I've built Allegro 5.1 and it took me a while because of FreeType, but eventually it worked. Now I've written a little Space…
Vapire
  • 4,568
  • 3
  • 24
  • 41
1
vote
1 answer

Allegro color change in fullscreen mode

I am learning to use the allegro library right now and when using the set_gfx_mode function if I use GFX_AUTODETECT_FULLSCREEN for the first argument the window will go fullscreen when running the compiled application, but after about the first…
Alex
  • 671
  • 3
  • 11
  • 25
1
vote
1 answer

Allegro 5 drawing a bitmap over a primitive

I've recently tried making an inventory system in allegro 5, where I draw a grid of squares 20x20 and drag-drop items around. The problem is, I can see the item sprite going under the actual grid that I drew, which is an unwanted effect. Here's my…
Bugster
  • 1,552
  • 8
  • 34
  • 56
1
vote
1 answer

Allegro Framework Cannot Be Found in Xcode

Possible Duplicate: Xcode 4 and Allegro 5.1 - Linker can't find Framework I've been trying to get Allegro working on my Mac running OS X 10.8. I followed these instructions: http://wiki.allegro.cc/index.php?title=OSX,_Xcode_4,_Framework I go down…
Keith
  • 418
  • 1
  • 4
  • 8
1
vote
2 answers

is there a way to move shapes by x and y in Allegro 4.2?

I'm a newbie to allegro so this may be a simple question. I'm wondering if there is a way to move allegro shapes by x,y without filling the circle i made with a black circle and making a new circle. Currently i have a while loop that moves the…
progc123
  • 15
  • 4