I need to learn a way, using a bitmap, to display an array of tiles (for a map) as colored squares. What is the easiest way this can be done and how can it be done?
I need to learn a way, using a bitmap, to display an array of tiles (for a map) as colored squares. What is the easiest way this can be done and how can it be done?
Well your going to need to use a graphics libary, I myself am a big fan of allegro.
Woop?
Is there anything I need to install to use a graphics library?
Yes you are going to need to install the headers and lib files for a library. This depends on your compiler.
Woop?
Check to see if your version of Dev-C++ has an update feature. It might be under help or tools. I know with the current version it not only lists updates put development packs as well. One of them should be Allegro.
Allegro For Dev:
http://devpaks.org/show.php?devpak=2
Tutorial:
http://www.loomsoft.net/resources/al...ltut_index.htm
Good Resource
http://www.allegro.cc
Woop?
Alright, I downloaded and installed the Allegro Dev-pack. Should that be it before I can use it?
Everything should work fine start a new project. It will in multimedia
Woop?
I'm getting some error messages when I try to compile the program in the first tutorial: It's not telling me that the file <allegro.h> is undefined but it is telling me that there are undefined references to all of the functions in the tutorial. They are all classified as linker errors.
A random guess is that you aren't including all of the libs in project settings, the specific errors would help
Actually, scratch that. I did what prog-bman said about the projects and now there is only one error: 'no new line at end of file'. What is that supposed to mean?
Hello,
This seems to be a continous error. View this previous thread: No newline at end of file
- Stack Overflow
Segmentation Fault: I am an error in which a running program attempts to access memory not allocated to it and core dumps with a segmentation violation error. This is often caused by improper usage of pointers, attempts to access a non-existent or read-only physical memory address, re-use of memory if freed within the same scope, de-referencing a null pointer, or (in C) inadvertently using a non-pointer variable as a pointer.
Kind of a silly error and easily fixed. Make sure each of your code files (.c/.cpp and .h) has a blank line at the bottom.Originally Posted by homeyg