Bug#602424: elmerfem: More armel qreal trouble

Adam C Powell IV hazelsct at debian.org
Fri Nov 5 13:05:03 UTC 2010


Hello Phil,

On Thu, 2010-11-04 at 22:07 +0000, Phil Endecott wrote:
> Hi Adam,
> 
> I saw your message to debian-arm, a list which I sometimes read but am 
> not subscribed to, hence this off-list reply.  I don't know anything 
> about qt but I have been learning OpenGL recently.  Here's my suggestion:
> 
> inline void glGetQrealv(GLenum e, GLfloat* data) { glGetFloatv(e,data); }
> inline void glGetQrealv(GLenum e, GLdouble* data) { 
> glGetDoublev(e,data); }
> 
> Then replace the calls to glGetDoublev() that want qreals with calls to 
> glGetQrealv().  This should work on platforms where qreal is of either type.

Because I'm not generally a C++ guy, and thus not accustomed to thinking
polymorphically, I had to stare at this for a minute or two before being
convinced that it would work.  But having stared, I can see that it's
brilliant!

Thanks very much, I'll give it a shot.

-Adam
-- 
GPG fingerprint: D54D 1AEE B11C CE9B A02B  C5DD 526F 01E8 564E E4B6

Engineering consulting with open source tools
http://www.opennovation.com/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/debian-science-maintainers/attachments/20101105/a23fdc66/attachment.pgp>


More information about the debian-science-maintainers mailing list