Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF3D » glTranslatef signature
glTranslatef signature [message #4139] Tue, 02 June 2009 20:16 Go to next message
Miles Parker is currently offline Miles Parker
Messages: 1338
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] Tue, 02 June 2009 20:25 Go to previous messageGo to next message
Kristian Duske is currently offline Kristian Duske
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] Tue, 02 June 2009 20:46 Go to previous message
Miles Parker is currently offline Miles Parker
Messages: 1338
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] Tue, 02 June 2009 20:25 Go to previous message
Kristian Duske is currently offline Kristian Duske
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] Tue, 02 June 2009 20:46 Go to previous message
Miles Parker is currently offline Miles Parker
Messages: 1338
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: Sat Aug 23 11:31:12 EDT 2014

Powered by FUDForum. Page generated in 0.01778 seconds