[ yn / yndd / fg / yume ] [ o / lit / media / og / ig / 2 ] [ ot / cc / x / sugg ] [ hikki / rec ] [ news / rules / faq / recent / annex / manage ] [ discord / matrix / scans / mud / minecraft / usagi ] [ aurorachan / desuchan / sushigirl / lewd ]

/dev/ - Software Dev.

All the finer topics not covered in /fg/.
Name
Email
Subject
Comment
Verification
File
Password (For file deletion.)

A server move will likely be done in the near future to provide upgraded hardware. This could cause a few hours to a couple days of downtime.

File: 1347095108072.png (14.48 KB, 476x452, fur real.PNG)

 No.19

I'm trying to learn how to use Allegro with dev-c++. Anyone got any tips.

 No.20

My first API wasn't allegro, but SDL, but they seem similar from the allegro documentation. I'm not sure how much of this may apply to allegro.

-Remember to initialize allegro before creating any allegro objects, this will probably crash your program. I was using global objects in my program and had to turn them into pointers and then allocate them after the initialization.

-Remember to make sure your color formats match up (RBGA, GBR, etc).

-Always delete allegro objects when you're done with them (if they're pointers, which I can see some of them have to be from the API functions). I had an issue with a huge memory leak that randomly made my screen go blank and it took me awhile to realize it.



[Return][Go to top] [Catalog] [Post a Reply]
Delete Post [ ]
[ yn / yndd / fg / yume ] [ o / lit / media / og / ig / 2 ] [ ot / cc / x / sugg ] [ hikki / rec ] [ news / rules / faq / recent / annex / manage ] [ discord / matrix / scans / mud / minecraft / usagi ] [ aurorachan / desuchan / sushigirl / lewd ]