View Full Version : GLfixed data type
10-04-2004, 01:08 AM
I would like to know Hybrid and Vincent implemented the fixed point math or not? If not what is the use of GLfixed? Thanks.
10-04-2004, 04:34 AM
Yes, both of them implement the fixed point API. Is that your question?
10-04-2004, 02:36 PM
thanks. Is there any references on the fixed point API. (fadsf, sqrt etc.)
10-04-2004, 04:52 PM
I am not quite sure what your question is. You are not asking about any OpenGL ES API entry point, are you?
10-05-2004, 01:45 AM
Sorry my english is bad ... :P
In fact, from the gl.h header I found out that the GLfixed is an int data type. therefore, It can't use normal math library function such as "sqrt", "fabsf" (which is for float).
Thus, I would like to know is there any fixed point math library functions (e.g. to compute square root) for the Hybrid and Vincent implemention?
Thank you very much :)
10-05-2004, 03:41 AM
[ October 05, 2004: Message edited by: Hans-Martin Will ]
10-05-2004, 09:09 AM
But I don't find anything the like with Gerbera... Is it possible that the Fixed Point Math is not part of the implementation they gave free.
10-05-2004, 05:58 PM
Thanks ~ ^^
10-05-2004, 10:21 PM
<BLOCKQUOTE><font size="1" face="Arial, Verdana, Helvetica, sans-serif">quote:</font><HR>But I don't find anything the like with Gerbera... Is it possible that the Fixed Point Math is not part of the implementation they gave free.<HR></BLOCKQUOTE>
Gerbera implements both OpenGL ES 1.1 and EGL 1.1 specifications completely. This is to say that both the float and fixed point API entries are implemented and exposed. However, we do not expose any utilitary fixed point math since they're not part of the specs mentioned above, and would be considered extraneous.
There are lots of example code dealing with fixed point calculation all across the internet. Once you get your calculations up and running, Gerbera will gladly accept your fixed point input data.
10-05-2004, 11:21 PM
No slight intended, Jasin.
I know the specs and I know Gerbera implements them just fine with all the FP entry points. But an additional FP math library like with Vincent would have been a nice bonus. ;)
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.