comp.lang.ada
 help / color / mirror / Atom feed
From: David Holm <david@realityrift.com>
Subject: Re: generic type identification
Date: Sun, 05 Jan 2003 03:25:27 GMT
Date: 2003-01-05T03:25:27+00:00	[thread overview]
Message-ID: <HANR9.4571$LY2.262084@newsc.telia.net> (raw)
In-Reply-To: tAGR9.629018$NH2.43402@sccrnsc01

tmoran@acm.org wrote:

>   So you don't really need to know the "type" in the Ada sense of the
> word, just in the C sense.  If it's OK to call the "double" version for
> any float, and the "int" version for shorts as well as ints, then one
> generic for int and one for double should do the job.  So how about:

I wish it was this simple but as you will probably pass OpenGL alot of 
vertices every frame (if there are lots of stuff changing in the scene) you 
don't want to pass it 64bit doubles if 32bit floats are enough. Same goes 
for int vs short.

//David



  reply	other threads:[~2003-01-05  3:25 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-04  1:50 generic type identification David Holm
2003-01-04  2:04 ` chris.danx
2003-01-04  5:39 ` tmoran
2003-01-04 12:39   ` David Holm
2003-01-04 16:13     ` James S. Rogers
2003-01-05  3:28       ` David Holm
2003-01-05 10:03         ` Gautier
2003-01-04 19:27     ` tmoran
2003-01-05  3:25       ` David Holm [this message]
2003-01-05  5:42         ` tmoran
2003-01-06 17:56     ` Stephen Leake
replies disabled

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