![]() |
|
wxWidgets and Allegro.... |
Slazer
Member #1,591
October 2001
![]() |
I know this question has been asked before by people in the past. I HAVE looked up and read old threads (the best one being at http://www.allegro.cc/forums/view_thread.php?_id=329755) but even that, although kinda helpful, wasn't enough Anyway, ARE there any resources online SOMEWHERE that I'd be able to use to learn how to integrate and use Allegro with wxWidgets? I just need some code that does somethings I want to do (display bitmaps and read from a dat file) and I should be well off. Thanks for any help. |
ReyBrujo
Moderator
January 2001
![]() |
According to the wxWidgets wiki here, it should not be too difficult. Not many, as you have seen, have tried merging both. What does "display properly" means? Can you load other pictures? Post some code, I am too lazy to begin from the begining to test something (OT: According to that wiki, Development has been stuck in the same version for years, there are a lack of core developers (original developer is no longer on the team), and there are some internal disputes which may lead to a fork. Someone should go edit there and put the right facts -- |
Slazer
Member #1,591
October 2001
![]() |
Quote: What does "display properly" means? Look at the attached screenshot. =) Quote: Can you load other pictures? As in other BMPs? I haven't tried. ... Ok I just tried, same thing happens with other BMPs as you see in the screenshot. And I'm using Win2K. DevC++ Beta 5(4.9.9.2) with the newest (or close to it) Mingw compiler.
This code is the exact code from the thread I posted about in my frist post except for the lines: //stretch_blit(bmp,tmp,0,0,bmp->w, bmp->h, 0,0, tmp->w, tmp->h); draw_sprite(tmp, bmp, 0, 0); I just wanted to see if maybe that could have been it but it wasn't. I HAVE tried a few other things too (rather simple ideas) but nothing worked. As of the OT: I thought the same thing when I read that before, heh. |
BAF
Member #2,981
December 2002
![]() |
I wrote a wx widgets and Allegro thing, and it paints the bitmap loaded from allegro on the screen: allegrowx.cpp
|
Slazer
Member #1,591
October 2001
![]() |
I'm at work right now so I can't try out that code but when I get home I will. Thanks for the help and I'll be back if I need it. |
|