1. Any Way For Euphoria To Interface With Gfx Cards

Hey Guys,

Is there any way that Euphoria can interface with graphics cards on the machine level? It would be really for Eu to do this, very helpful with game development.

new topic     » topic index » view message » categorize

2. Re: Any Way For Euphoria To Interface With Gfx Cards

Lone_EverGreen_Ranger said...

Is there any way that Euphoria can interface with graphics cards on the machine level? It would be really for Eu to do this, very helpful with game development.

On Windows, I don't think anybody can do that. I thought they mostly go through APIs like DirectX or OpenGL or SDL.

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

3. Re: Any Way For Euphoria To Interface With Gfx Cards

Lone_EverGreen_Ranger said...

Hey Guys,

Is there any way that Euphoria can interface with graphics cards on the machine level? It would be really for Eu to do this, very helpful with game development.

I suppose there is, but for speed and ease I recommend that you use one of the dedicated libraries such as OpenGL. These have had thousands of man-hours invested in them and are about as fast as anyone can get them. Performance depends more on which algorithm to use rather than which programming language or technique one uses. These libraries have been tested to death and are very bug free and use top algorithms. Why bother trying to reinvent the wheel smile

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

4. Re: Any Way For Euphoria To Interface With Gfx Cards

DerekParnell said...
Lone_EverGreen_Ranger said...

Hey Guys,

Is there any way that Euphoria can interface with graphics cards on the machine level? It would be really for Eu to do this, very helpful with game development.

I suppose there is, but for speed and ease I recommend that you use one of the dedicated libraries such as OpenGL. These have had thousands of man-hours invested in them and are about as fast as anyone can get them. Performance depends more on which algorithm to use rather than which programming language or technique one uses. These libraries have been tested to death and are very bug free and use top algorithms. Why bother trying to reinvent the wheel smile

OK, do the DirectX and OpenGL libs work with Eu 4? Also, I think they could use some work as well. I might take a gander at them and see what I can do.

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

5. Re: Any Way For Euphoria To Interface With Gfx Cards

Lone_EverGreen_Ranger said...

OK, do the DirectX and OpenGL libs work with Eu 4? Also, I think they could use some work as well. I might take a gander at them and see what I can do.

DirectX is Windows only, OpenGL is cross platform, SDL will wrap (I think) both of those and provide a whole lot more functionality than either of them, functionality common to game/graphics development. I'd look first at SDL. In the archive, a search for SDL shows quite a bit already done with Euphoria.

Jeremy

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

6. Re: Any Way For Euphoria To Interface With Gfx Cards

jeremy said...
Lone_EverGreen_Ranger said...

OK, do the DirectX and OpenGL libs work with Eu 4? Also, I think they could use some work as well. I might take a gander at them and see what I can do.

DirectX is Windows only, OpenGL is cross platform, SDL will wrap (I think) both of those and provide a whole lot more functionality than either of them, functionality common to game/graphics development. I'd look first at SDL. In the archive, a search for SDL shows quite a bit already done with Euphoria.

Jeremy

Yea SDL has a lot of wrappers and stuff done in Eu, but I'd rather go with OpenGL. I'm just looking for something to render with right now.

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

7. Re: Any Way For Euphoria To Interface With Gfx Cards

Lone_EverGreen_Ranger said...

Yea SDL has a lot of wrappers and stuff done in Eu, but I'd rather go with OpenGL. I'm just looking for something to render with right now.

By going with SDL, you can go with OpenGL:

This is a series of example programs showing how to use OpenGL with SDL that were converted from C to Euphoria. The programs here make use of SDL_Wrap and version 030130 of EuGL, Mic's remarkable OpenGL interface. Essentially these files allow the Euphoria programming language to utilize all the incredibly cool 3D graphics functions in OpenGL. Why use OpenGL on top of SDL? SDL provides additional functions for audio, timing, and input that can be combined with OpenGL graphics, in short everything else you might need to create a game or other application. This set of conversions includes the first 8 out of 29 examples, so (time permitting) I'll convert some more.

Mark Akita's SDL+OpenGL Demos

I made some demos for running OpenGL in Windows (with Win32Lib), but they're so old. I'm sure they'll take quite a bit of work to update.

EUPHORIA + OpenGL Programmers Wanted

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

8. Re: Any Way For Euphoria To Interface With Gfx Cards

The programs here make use of SDL_Wrap and version 030130 of EuGL 

Yikes, that's pretty old. Iirc, most of the stuff related to shaders were added in the latest version of EuGL, i.e. the one from march 2008.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu