Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » GEF3D » glTranslatef signature
glTranslatef signature [message #4139] Wed, 03 June 2009 00:16 Go to next message
Miles Parker is currently offline Miles ParkerFriend
Messages: 1341
Registered: July 2009
Senior Member
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] Wed, 03 June 2009 00:25 Go to previous messageGo to next message
Kristian Duske is currently offline Kristian DuskeFriend
Messages: 64
Registered: July 2009
Member
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] Wed, 03 June 2009 00:46 Go to previous message
Miles Parker is currently offline Miles ParkerFriend
Messages: 1341
Registered: July 2009
Senior Member
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] Wed, 03 June 2009 00:25 Go to previous message
Kristian Duske is currently offline Kristian DuskeFriend
Messages: 64
Registered: July 2009
Member
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] Wed, 03 June 2009 00:46 Go to previous message
Miles Parker is currently offline Miles ParkerFriend
Messages: 1341
Registered: July 2009
Senior Member
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: Fri Apr 19 17:12:27 GMT 2024

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

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

Back to the top