1. RE: EuAllegro

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
>

new topic     » topic index » view message » categorize

2. RE: EuAllegro

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

new topic     » goto parent     » topic index » view message » categorize

3. RE: EuAllegro

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

new topic     » goto parent     » topic index » view message » categorize

4. RE: EuAllegro

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

new topic     » goto parent     » topic index » view message » categorize

5. RE: EuAllegro

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

new topic     » goto parent     » topic index » view message » categorize

6. RE: EuAllegro

Lewis:
  According to the on-line docs allegro uses RGB.
  http://www.talula.demon.co.uk/allegro/onlinedocs/en/index020.html
Bernie

new topic     » goto parent     » topic index » view message » categorize

7. RE: EuAllegro

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

new topic     » goto parent     » topic index » view message » categorize

8. RE: EuAllegro

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

new topic     » goto parent     » topic index » view message » categorize

9. RE: EuAllegro

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
>

new topic     » goto parent     » topic index » view message » categorize

10. RE: EuAllegro

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
> > 
>

new topic     » goto parent     » topic index » view message » categorize

11. RE: EuAllegro

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

new topic     » goto parent     » topic index » view message » categorize

12. RE: EuAllegro

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
>

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu