Skip to main content



      Home
Home » Archived » GEF3D » glTranslatef signature
glTranslatef signature [message #4139] Tue, 02 June 2009 20:16 Go to next message
Eclipse UserFriend
I hope all of my questions aren't becoming annoying..

I'm wondering why Graphics3D#glTranslatef takes an int parameter for z?
The underlying OpenGL call doesn't..
Re: glTranslatef signature [message #4210 is a reply to message #4139] Tue, 02 June 2009 20:25 Go to previous messageGo to next message
Eclipse UserFriend
Hi Miles,

> I hope all of my questions aren't becoming annoying..

Not at all! We're happy that you are using GEF3D!

>
> I'm wondering why Graphics3D#glTranslatef takes an int parameter for z?
> The underlying OpenGL call doesn't..

That's a mistake that must have been introduced when the Graphics3DDraw
interface was created. The only call to this method happens in a test
application and the third parameter is set to 0, so I guess that's why
it was declared as int. I fixed it in SVN already.

Best regards
Kristian
Re: glTranslatef signature [message #4350 is a reply to message #4210] Tue, 02 June 2009 20:46 Go to previous message
Eclipse UserFriend
On 2009-06-02 17:25:16 -0700, Kristian Duske
<kristian.duske@fernuni-hagen.de> said:

> Hi Miles,
>
>> I hope all of my questions aren't becoming annoying..
>
> Not at all! We're happy that you are using GEF3D!
>
>>
>> I'm wondering why Graphics3D#glTranslatef takes an int parameter for z?
>> The underlying OpenGL call doesn't..
>
> That's a mistake that must have been introduced when the Graphics3DDraw
> interface was created. The only call to this method happens in a test
> application and the third parameter is set to 0, so I guess that's why
> it was declared as int. I fixed it in SVN already.


OK, I'll replace my fix with yours. :D
Re: glTranslatef signature [message #561895 is a reply to message #4139] Tue, 02 June 2009 20:25 Go to previous message
Eclipse UserFriend
Hi Miles,

> I hope all of my questions aren't becoming annoying..

Not at all! We're happy that you are using GEF3D!

>
> I'm wondering why Graphics3D#glTranslatef takes an int parameter for z?
> The underlying OpenGL call doesn't..

That's a mistake that must have been introduced when the Graphics3DDraw
interface was created. The only call to this method happens in a test
application and the third parameter is set to 0, so I guess that's why
it was declared as int. I fixed it in SVN already.

Best regards
Kristian
Re: glTranslatef signature [message #561935 is a reply to message #4210] Tue, 02 June 2009 20:46 Go to previous message
Eclipse UserFriend
On 2009-06-02 17:25:16 -0700, Kristian Duske
<kristian.duske@fernuni-hagen.de> said:

> Hi Miles,
>
>> I hope all of my questions aren't becoming annoying..
>
> Not at all! We're happy that you are using GEF3D!
>
>>
>> I'm wondering why Graphics3D#glTranslatef takes an int parameter for z?
>> The underlying OpenGL call doesn't..
>
> That's a mistake that must have been introduced when the Graphics3DDraw
> interface was created. The only call to this method happens in a test
> application and the third parameter is set to 0, so I guess that's why
> it was declared as int. I fixed it in SVN already.


OK, I'll replace my fix with yours. :D
Previous Topic:glTranslatef signature
Next Topic:Lighting
Goto Forum:
  


Current Time: Tue May 13 09:12:47 EDT 2025

Powered by FUDForum. Page generated in 0.03364 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top