comp.lang.ada
 help / color / mirror / Atom feed
* Graphics
@ 1995-01-03  0:39 emerrif
  1995-01-05 21:15 ` Graphics Bernie Kopelove 703-913-2573
  0 siblings, 1 reply; 18+ messages in thread
From: emerrif @ 1995-01-03  0:39 UTC (permalink / raw)


Is there any way to use an advanced graphical innterface with ada?
Please forward suggestions.



^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Graphics
  1995-01-03  0:39 Graphics emerrif
@ 1995-01-05 21:15 ` Bernie Kopelove 703-913-2573
  1995-01-05 22:10   ` Graphics David Emery
  1995-01-06  3:11   ` Graphics Keith Thompson
  0 siblings, 2 replies; 18+ messages in thread
From: Bernie Kopelove 703-913-2573 @ 1995-01-05 21:15 UTC (permalink / raw)


emerrif@ibm.net wrote:
>
> Is there any way to use an advanced graphical innterface with ada?
> Please forward suggestions.
Yes,
That is if I understand your question correctly.

If you would like to use X-windows, there is a binding set available
free from DEC (ftp://gatekeeper.dec.com), as well as several others.
If you would like to use a different GUI, all that is needed really
is to build an Ada binding to the normal C(or whatever language) calls
example:
function createTextField(parent : widget;
			 name 	: system.address;--pointer to a string
			) return widget;
  pragma interface(c,createTextField);
  pragma interface_name(createTextField,
			language.c_subp_prefix &  -- The subprocess
						  -- prefix that the
						  -- binder uses
			"createTextField");       -- The internal
						  -- C function name

successful bindings have been produced for X-windows,MS-Windows,
Windows-NT, and many more.





^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Graphics
  1995-01-05 21:15 ` Graphics Bernie Kopelove 703-913-2573
@ 1995-01-05 22:10   ` David Emery
  1995-01-06  3:11   ` Graphics Keith Thompson
  1 sibling, 0 replies; 18+ messages in thread
From: David Emery @ 1995-01-05 22:10 UTC (permalink / raw)


<misleading stuff deleted>

As I have posted often before, producing Ada bindings to C is a subtle
thing.  There's a LOT more to it than Bernie's posting shows.  

For X/MOTIF, you should invest in a commercial product, produced by
people who understand the issues, and are willing to support the
product.  

				dave
--
--The preceeding opinions do not necessarily reflect the opinions of
--The MITRE Corporation or its sponsors. 
-- "A good plan violently executed -NOW- is better than a perfect plan
--  next week"                                      George Patton
-- "Any damn fool can write a plan.  It's the execution that gets you
--  all screwed up"                              James Hollingsworth
-------------------------------------------------------------------------



^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Graphics
  1995-01-05 21:15 ` Graphics Bernie Kopelove 703-913-2573
  1995-01-05 22:10   ` Graphics David Emery
@ 1995-01-06  3:11   ` Keith Thompson
  1 sibling, 0 replies; 18+ messages in thread
From: Keith Thompson @ 1995-01-06  3:11 UTC (permalink / raw)


In <3ehnhd$c02@lfsgate.lfs.loral.com> Bernie Kopelove 703-913-2573 <kopelove%postoffice.sdf.sbis.com@inetgw.fsc.ibm.com> writes:
> function createTextField(parent : widget;
> 			 name 	: system.address;--pointer to a string
> 			) return widget;
>   pragma interface(c,createTextField);
>   pragma interface_name(createTextField,
> 			language.c_subp_prefix &  -- The subprocess
> 						  -- prefix that the
> 						  -- binder uses
> 			"createTextField");       -- The internal

Please note that pragma Interface_Name is a vendor-specific pragma; it's
not part of the Ada 83 language definition.  Consult your documentation
for information on how to do this with whatever compiler you're using.

Ada 95's Annex B provides better mechanisms for interfacing to other
languages.

-- 
Keith Thompson (The_Other_Keith)  kst@thomsoft.com (kst@alsys.com still works)
TeleSoft^H^H^H^H^H^H^H^H Alsys^H^H^H^H^H Thomson Software Products
10251 Vista Sorrento Parkway, Suite 300, San Diego, CA, USA, 92121-2718
When you're a nail, every problem looks like a hammer.



^ permalink raw reply	[flat|nested] 18+ messages in thread

* Graphics
@ 2001-06-07 10:32 Aaron Como
  2001-06-07 11:56 ` Graphics Martin Dowie
                   ` (3 more replies)
  0 siblings, 4 replies; 18+ messages in thread
From: Aaron Como @ 2001-06-07 10:32 UTC (permalink / raw)


How would I implement graphics using Ada? I'm looking
for simple lines/points/colors and maybe a routine to display
BMP's or another file format. Where can I find more information
on this?
Thanks,
Aaron





^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Graphics
  2001-06-07 10:32 Graphics Aaron Como
@ 2001-06-07 11:56 ` Martin Dowie
  2001-06-07 13:36 ` Graphics Ted Dennison
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 18+ messages in thread
From: Martin Dowie @ 2001-06-07 11:56 UTC (permalink / raw)


Try John English's "JEWL"

http://www.it.bton.ac.uk/staff/je/jewl/



Aaron Como <druid@dbtech.net> wrote in message
news:3b1f5826$1@news.dbtech.net...
> How would I implement graphics using Ada? I'm looking
> for simple lines/points/colors and maybe a routine to display
> BMP's or another file format. Where can I find more information
> on this?
> Thanks,
> Aaron
>
>





^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Graphics
  2001-06-07 10:32 Graphics Aaron Como
  2001-06-07 11:56 ` Graphics Martin Dowie
@ 2001-06-07 13:36 ` Ted Dennison
  2001-06-07 15:31 ` Graphics M. A. Alves
  2001-06-07 20:36 ` Graphics Joachim Schr�er
  3 siblings, 0 replies; 18+ messages in thread
From: Ted Dennison @ 2001-06-07 13:36 UTC (permalink / raw)


In article <3b1f5826$1@news.dbtech.net>, Aaron Como says...
>
>How would I implement graphics using Ada? I'm looking
>for simple lines/points/colors and maybe a routine to display
>BMP's or another file format. Where can I find more information
>on this?

Generally, by calling the same routines you would in C. However, writing C
linkages is not most people's idea of fun, so you may prefer to get one of the
prebuilt GUI packages available. Which one depends on exactly what kind of stuff
you want to do, and what platform you want to do it on.

---
T.E.D.    homepage   - http://www.telepath.com/dennison/Ted/TED.html
          home email - mailto:dennison@telepath.com



^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Graphics
  2001-06-07 10:32 Graphics Aaron Como
  2001-06-07 11:56 ` Graphics Martin Dowie
  2001-06-07 13:36 ` Graphics Ted Dennison
@ 2001-06-07 15:31 ` M. A. Alves
  2001-06-07 19:44   ` Graphics tmoran
  2001-06-07 20:36 ` Graphics Joachim Schr�er
  3 siblings, 1 reply; 18+ messages in thread
From: M. A. Alves @ 2001-06-07 15:31 UTC (permalink / raw)
  To: comp.lang.ada

On Thu, 7 Jun 2001, Aaron Como wrote:

> How would I implement graphics using Ada? I'm looking
> for simple lines/points/colors . . .

Here's a minimal package for that:

  http://lexis.di.fct.unl.pt/ADaLIB/vga_screen.htm

> . . . and maybe a routine to display
> BMP's or another file format.

It seems PBM (Portable Bit Format), formerly NetPBM, is the way to go, at
least on Linux systems.

> Where can I find more information on this?

On Google ;-)

 *

Other folks on this list will direct you to strangely named graphic
libraries like DPPMG (?) and/or bindings to GUI systems like Motif (?) and
of course AdaGraph (?) for Windows (this I have tested and found
slowish) ;-)

--
   ,
 M A R I O   data miner, LIACC, room 221   tel 351+226078830, ext 121
 A M A D O   Rua Campo Alegre, 823         fax 351+226003654
 A L V E S   P-4150 PORTO, Portugal        mob 351+939354002




^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Graphics
  2001-06-07 15:31 ` Graphics M. A. Alves
@ 2001-06-07 19:44   ` tmoran
  0 siblings, 0 replies; 18+ messages in thread
From: tmoran @ 2001-06-07 19:44 UTC (permalink / raw)


>Other folks on this list will direct you to strangely named graphic
>libraries like DPPMG (?) and/or bindings to GUI systems like Motif (?) and
   Look at www.adapower.com  There are thin and thick bindings to Windows
(mention of BMP suggests Windows or DOS is the platform here) and SVGA IO
for DOS.



^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Graphics
  2001-06-07 10:32 Graphics Aaron Como
                   ` (2 preceding siblings ...)
  2001-06-07 15:31 ` Graphics M. A. Alves
@ 2001-06-07 20:36 ` Joachim Schr�er
  3 siblings, 0 replies; 18+ messages in thread
From: Joachim Schr�er @ 2001-06-07 20:36 UTC (permalink / raw)


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 687 bytes --]

If you look for e.g. BMP-display on windows you could look into
the code on my page www.adapower.com/schroer .
In the package opengl.bitmaps in ogl-src.zip you find source for
reading and displaying BMPs.
You could also look into my mail from the 14-th of may where the
download of all files is described (the page is not 100% correctly
set up till now).

    J. Schr�er

"Aaron Como" <druid@dbtech.net> schrieb im Newsbeitrag
news:3b1f5826$1@news.dbtech.net...
> How would I implement graphics using Ada? I'm looking
> for simple lines/points/colors and maybe a routine to display
> BMP's or another file format. Where can I find more information
> on this?
> Thanks,
> Aaron
>
>





^ permalink raw reply	[flat|nested] 18+ messages in thread

* Graphics
@ 2002-01-08 18:29 Necros
  2002-01-11  2:57 ` Graphics Bruce or Tracy Jacobs
  2002-01-13 16:00 ` Graphics David Botton
  0 siblings, 2 replies; 18+ messages in thread
From: Necros @ 2002-01-08 18:29 UTC (permalink / raw)


Somebody Knows if some package that allows to load images standard formats 
(gif,jpeg,bmp...).

Which the best graphic package is "Adagraph,Gwindows..." ????

Thanks,



^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Graphics
  2002-01-08 18:29 Graphics Necros
@ 2002-01-11  2:57 ` Bruce or Tracy Jacobs
  2002-01-13 16:00 ` Graphics David Botton
  1 sibling, 0 replies; 18+ messages in thread
From: Bruce or Tracy Jacobs @ 2002-01-11  2:57 UTC (permalink / raw)


Check with 

     Stephen Leake <stephen.a.leake.1@gsfc.nasa.gov>

He has Windex package that will read BMP, possibly GIF, too.

(Want to have some fun?  Read the GIF specs and write a program
to read a GIF image.  Been there, done that.  Am trying with JPEG,
but it appears to be even more difficult.)

Necros wrote:
> 
> Somebody Knows if some package that allows to load images standard formats
> (gif,jpeg,bmp...).
> 
> Which the best graphic package is "Adagraph,Gwindows..." ????
> 
> Thanks,



^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Graphics
@ 2002-01-11  5:47 Gautier Write-only-address
  0 siblings, 0 replies; 18+ messages in thread
From: Gautier Write-only-address @ 2002-01-11  5:47 UTC (permalink / raw)
  To: comp.lang.ada

>From: Necros:

>Somebody Knows if some package that allows to load images standard
>formats
>(gif,jpeg,bmp...).

If it can help, there are GIF and BMP decoder there
  http://www.mysunrise.ch/users/gdm/e3d_html/svga-io__ads.htm

>Which the best graphic package is "Adagraph,Gwindows..." ????

It depends on the direction it should be "best" - speed,
vectorial graphics,...
Of course for the latter I couldn't recommend but this:
  http://www.mysunrise.ch/users/gdm/graph.htm
;-)

HTH
____________________________________________________________
Gautier  --  http://www.mysunrise.ch/users/gdm/index.htm#Ada

NB: For a direct answer, address on the Web site!

_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com




^ permalink raw reply	[flat|nested] 18+ messages in thread

* RE: Graphics
@ 2002-01-11 16:50 Beard, Frank [Contractor]
  2002-01-11 18:11 ` Graphics Necros
  0 siblings, 1 reply; 18+ messages in thread
From: Beard, Frank [Contractor] @ 2002-01-11 16:50 UTC (permalink / raw)
  To: 'comp.lang.ada@ada.eu.org'

If you have the Win32 binding, you can use Win32.Winuser.LoadBitmapFile.
If I remember correctly, it will load all three of the ones you listed.

Frank

-----Original Message-----
From: Necros [mailto:necros@navegalia.com]
Sent: Tuesday, January 08, 2002 1:29 PM
To: comp.lang.ada@ada.eu.org
Subject: Graphics


Somebody Knows if some package that allows to load images standard formats 
(gif,jpeg,bmp...).

Which the best graphic package is "Adagraph,Gwindows..." ????

Thanks,
_______________________________________________
comp.lang.ada mailing list
comp.lang.ada@ada.eu.org
http://ada.eu.org/mailman/listinfo/comp.lang.ada



^ permalink raw reply	[flat|nested] 18+ messages in thread

* RE: Graphics
  2002-01-11 16:50 Graphics Beard, Frank [Contractor]
@ 2002-01-11 18:11 ` Necros
  2002-01-11 20:01   ` Graphics Stephen Leake
  0 siblings, 1 reply; 18+ messages in thread
From: Necros @ 2002-01-11 18:11 UTC (permalink / raw)


Ok, thanks...


I'm programming a Concurrency game in Ada95, and i would want to be able 
to generate the initial graphic elements from external program (Paint Shop 
Pro, Corel Draw)... it would only them in virtual memory to begin, and it 
would create miscelenea later with them,,, In language C is easy, in Ada, 
I don't Know for where to begin...

The game is a practice, PCMAN Vs Monsters.

Thanks,




^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Graphics
  2002-01-11 18:11 ` Graphics Necros
@ 2002-01-11 20:01   ` Stephen Leake
  0 siblings, 0 replies; 18+ messages in thread
From: Stephen Leake @ 2002-01-11 20:01 UTC (permalink / raw)


Necros <necros@navegalia.com> writes:

> Ok, thanks...
> 
> 
> I'm programming a Concurrency game in Ada95, and i would want to be able 
> to generate the initial graphic elements from external program (Paint Shop 
> Pro, Corel Draw)... it would only them in virtual memory to begin, and it 
> would create miscelenea later with them,,, In language C is easy, 

You must mean "using this wizzy graphics package I have that has a C
interface, it is easy".

> in Ada, I don't Know for where to begin...

Write a binding to the wizzy graphics package, and do the same things
you were doing in C.

Then publish the binding, so the rest of us can do the same :).

> The game is a practice, PCMAN Vs Monsters.

I'd like to see that, enough that I'll offer to help. I wrote Windex,
an Ada binding to Win32. If you don't mind being restricted to
Windows, it's a good way to go (see
http://users.erols.com/leakstan/Stephe/Ada/windex.html). I can help
you write the binding to the wizzy graphics package, or just use
Windex straight.

-- 
-- Stephe



^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Graphics
  2002-01-08 18:29 Graphics Necros
  2002-01-11  2:57 ` Graphics Bruce or Tracy Jacobs
@ 2002-01-13 16:00 ` David Botton
  2002-01-14  1:26   ` Graphics Ted Dennison
  1 sibling, 1 reply; 18+ messages in thread
From: David Botton @ 2002-01-13 16:00 UTC (permalink / raw)


Since this is a Windows program. I would suggest converting your graphics in
to BMPs and putting them in to you resources. This way you get one EXE with
everything in it. If size is a factor, you can using UPX to compress your
exe.

GWindows (http://www.adapower.com/gwindows) is currently the best Modified
GPL (ie. Free as in liberty) library available (I wrote it, so I am biased
of course :-)

I am currently working on completing GTK+ bindings that will be integrated
with GWindows that will allow for all the whiz bang stuff that MS has been
pumping about XP's graphics (loading, modifying and savings of most graphic
types, Alpha channels etc.) on Win98/ME/NT/2K/XP).

Any library you would use from C/C++ to load in Gif's, etc. can be used with
Ada also. Take a look at the way I build the thick GWindows bindings, in
particular how each function is bound in the body of the procedure and makes
far more use of the excellent design of Ada's ability to bind to C then thin
bindings do. I would also recommend looking at Windex to get a handle on
thin binding as well.

David Botton


On 1/8/02 1:29 PM, in article
Xns9190C634612F8necrosmanawanadooes@62.36.220.94, "Necros"
<necros@navegalia.com> wrote:

> Somebody Knows if some package that allows to load images standard formats
> (gif,jpeg,bmp...).
> 
> Which the best graphic package is "Adagraph,Gwindows..." ????
> 
> Thanks,




^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Graphics
  2002-01-13 16:00 ` Graphics David Botton
@ 2002-01-14  1:26   ` Ted Dennison
  0 siblings, 0 replies; 18+ messages in thread
From: Ted Dennison @ 2002-01-14  1:26 UTC (permalink / raw)


David Botton wrote:

> GWindows (http://www.adapower.com/gwindows) is currently the best Modified
> GPL (ie. Free as in liberty) library available (I wrote it, so I am biased
> of course :-)
> 
> I am currently working on completing GTK+ bindings that will be integrated

I'd argue that GTK+ is better in any situation where Unix portability 
may be an issue. That's why there really is no one answer to the 
question of which one is "best".




^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2002-01-14  1:26 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-06-07 10:32 Graphics Aaron Como
2001-06-07 11:56 ` Graphics Martin Dowie
2001-06-07 13:36 ` Graphics Ted Dennison
2001-06-07 15:31 ` Graphics M. A. Alves
2001-06-07 19:44   ` Graphics tmoran
2001-06-07 20:36 ` Graphics Joachim Schr�er
  -- strict thread matches above, loose matches on Subject: below --
2002-01-11 16:50 Graphics Beard, Frank [Contractor]
2002-01-11 18:11 ` Graphics Necros
2002-01-11 20:01   ` Graphics Stephen Leake
2002-01-11  5:47 Graphics Gautier Write-only-address
2002-01-08 18:29 Graphics Necros
2002-01-11  2:57 ` Graphics Bruce or Tracy Jacobs
2002-01-13 16:00 ` Graphics David Botton
2002-01-14  1:26   ` Graphics Ted Dennison
1995-01-03  0:39 Graphics emerrif
1995-01-05 21:15 ` Graphics Bernie Kopelove 703-913-2573
1995-01-05 22:10   ` Graphics David Emery
1995-01-06  3:11   ` Graphics Keith Thompson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox