1. RE: EuAllegro
- Posted by Brian Broker <bkb at cnw.com> Jan 10, 2004
- 479 views
Hi Lewis, I'm not sure why Ray links some routines from his own "euAlleg40.dll" but you can fix this problem in "euallegro.ew" (pre-release 0.21) by linking to the functions in "alleg40.dll": ----------------------------- line 2360 in "euallegro.ew" -- vline ----------------------------- integer my_vline my_vline = link_proc(AllegroLib, "vline", {C_POINTER, C_INT, C_INT, C_INT, C_INT} ) global procedure vline(atom bmp, integer x, integer y1, integer y2, integer color) c_proc(my_vline, {bmp, x, y1, y2, color}) end procedure ----------------------------- -- hline ----------------------------- integer my_hline my_hline = link_proc(AllegroLib, "hline", {C_POINTER, C_INT, C_INT, C_INT, C_INT} ) global procedure hline(atom bmp, integer x1, integer y, integer x2, integer color) c_proc(my_hline, {bmp, x1, y, x2, color}) end procedure -- Brian Lewis Townsend wrote: > > > Hello, > I am playing with EuAllegro and I discovered a problem. > vline() and hline() both draw horizontal lines. > I looked at the .ew file and it looks ok so it must be the dll maybe? > > LewyT >
2. RE: EuAllegro
- Posted by Ray Smith <smithr at ix.net.au> Jan 10, 2004
- 466 views
Brian Broker wrote: > > > Hi Lewis, > > I'm not sure why Ray links some routines from his own "euAlleg40.dll" > but you can fix this problem in "euallegro.ew" (pre-release 0.21) by > linking to the functions in "alleg40.dll": Hi Brian, Originally I linked everything through eualleg40.dll. The reason for this was that Allegro (when programming in C) uses lots of very complex macros. I didn't know how to convert those macros so I wrapped then in a c dll (eualleg40.dll). Then after heaps of re-defining functions in euallegro40.dll I realised it was the wrong thing to do and then went through and linked everything but these complex macros but to the alleg40.dll. I must have missed some functions ( hline and vline). Well, that was the theory anyway ;) Regards, Ray Smith http://rays-web.com
3. RE: EuAllegro
- Posted by Lewis Townsend <Keroltarr at hotmail.com> Jan 10, 2004
- 449 views
Howdy, I don't have "alleg40.dll" but I did what Brian said using "all3933.dll" and it works fine now. I will upgrade my dll from the Allegro website. What do I need to change in the eu code to make it work with the new dll? TIA, LewyT
4. RE: EuAllegro
- Posted by Lewis Townsend <Keroltarr at hotmail.com> Jan 10, 2004
- 438 views
Never mind, I downloaded the newest EuAllegro from Ray's website and it has 40 and I just had to make the same changes again is all later, LewyT
5. RE: EuAllegro
- Posted by Lewis Townsend <Keroltarr at hotmail.com> Jan 11, 2004
- 434 views
Okay, I am furthering my knowledge of EuAllegro by porting my GUI I wrote for ExoticaX to EuAllegro. I have run upon a discrepency that will require some work to port; that is the way colors are referenced. In ExoticaX I always used the #RRGGBB format to imput colors for drawing routines. It appears that this is not possible in EuAllegro. I think I will have to do palette references and convert all my color references to work this way. If anyone has any suggestions, they would be appreciated. LewyT
6. RE: EuAllegro
- Posted by "Bernard W. Ryan" <xotron at bluefrognet.net> Jan 11, 2004
- 435 views
Lewis: According to the on-line docs allegro uses RGB. http://www.talula.demon.co.uk/allegro/onlinedocs/en/index020.html Bernie
7. RE: EuAllegro
- Posted by Ray Smith <smithr at ix.net.au> Jan 11, 2004
- 433 views
Lewis Townsend wrote: > > > Okay, > > I am furthering my knowledge of EuAllegro by porting my GUI I wrote for > ExoticaX to EuAllegro. I have run upon a discrepency that will require > some work to port; that is the way colors are referenced. In ExoticaX I > always used the #RRGGBB format to imput colors for drawing routines. It > appears that this is not possible in EuAllegro. I think I will have to > do palette references and convert all my color references to work this > way. If anyone has any suggestions, they would be appreciated. > > LewyT > Hi Lewis, If you use hi colour resolutions you can use the makecol() function. Look at the eutruec.exw example. Regards, Ray Smith http://rays-web.com
8. RE: EuAllegro
- Posted by Lewis Townsend <Keroltarr at hotmail.com> Jan 12, 2004
- 451 views
Thank you, Bernie and Ray. I got that taken care of now. Next question: how do I change fonts? For example, loading a .ttf file would be cool. LewyT
9. RE: EuAllegro
- Posted by Brian Broker <bkb at cnw.com> Jan 12, 2004
- 439 views
Hi Lewis, I've emailed Ray and will take over the EuAllegro project. TTF fonts aren't natively supported by Allegro but I've already built a dll that will support TTF fonts (as opposed to using static fonts). I'll dedicate this next week for a usable release so long as I know somebody will use it. You can email me personally for any questions regarding the lib but I or (I think) Ray will help out if you have any probs in the mean time... -- Brian Lewis Townsend wrote: > > > Thank you, > Bernie and Ray. > > I got that taken care of now. > Next question: how do I change fonts? > For example, loading a .ttf file would be cool. > > LewyT >
10. RE: EuAllegro
- Posted by Chris Burch <chriscrylex at aol.com> Jan 13, 2004
- 447 views
Hi Yes, yes, I'll use it! Played with euallegro (nothing serious), explored allegro site - found vavoom, and am now playing doom and heretic as they were meant to be played (although truthfully has nothing to do with euphoria, and also uses opengl and openal too) Tons of possibilities - i think these libraries will give blitz and dark basic a run for there money with maturity (speed issues, nott too relavent with compiling and modern computers) Chris Brian Broker wrote: > > > Hi Lewis, > > I've emailed Ray and will take over the EuAllegro project. TTF fonts > aren't natively supported by Allegro but I've already built a dll that > will support TTF fonts (as opposed to using static fonts). I'll > dedicate this next week for a usable release so long as I know somebody > will use it. > > You can email me personally for any questions regarding the lib but I or > > (I think) Ray will help out if you have any probs in the mean time... > > -- Brian > > Lewis Townsend wrote: > > > > > > Thank you, > > Bernie and Ray. > > > > I got that taken care of now. > > Next question: how do I change fonts? > > For example, loading a .ttf file would be cool. > > > > LewyT > > >
11. RE: EuAllegro
- Posted by Lewis Townsend <Keroltarr at hotmail.com> Jan 13, 2004
- 427 views
Thanks Brian, Sounds great. TTF fonts aren't critical at this point but I would like to be able to load a font - of some kind - to replace the default (8x8) font. thanks again, LewyT
12. RE: EuAllegro
- Posted by Brian Broker <bkb at cnw.com> Jan 13, 2004
- 433 views
Lewis, I know you can put static fonts into a .dat file and load them that way. See the example program "eudata.exw". The grabber utility (in tools folder) can help you make a dat file. Not the most intuitive but I hope to change that eventually. And as far as my progress updating the libs, all I can say is that Ray sure did a tremendous amount of work on that suite of tools... -- Brian Lewis Townsend wrote: > > > Thanks Brian, > > Sounds great. TTF fonts aren't critical at this point but I would like > to be able to load a font - of some kind - to replace the default (8x8) > font. > > thanks again, > LewyT >