Results 1 to 10 of 10

Thread: GLfixed data type

  1. #1
    Junior Member
    Join Date
    Sep 2004
    Location
    Hong Kong
    Posts
    13

    GLfixed data type

    I would like to know Hybrid and Vincent implemented the fixed point math or not? If not what is the use of GLfixed? Thanks.

  2. #2
    Senior Member
    Join Date
    Sep 2003
    Location
    Seattle, WA
    Posts
    246

    Re: GLfixed data type

    Yes, both of them implement the fixed point API. Is that your question?

    - HM

  3. #3
    Junior Member
    Join Date
    Sep 2004
    Location
    Hong Kong
    Posts
    13

    Re: GLfixed data type

    thanks. Is there any references on the fixed point API. (fadsf, sqrt etc.)

  4. #4
    Senior Member
    Join Date
    Sep 2003
    Location
    Seattle, WA
    Posts
    246

    Re: GLfixed data type

    I am not quite sure what your question is. You are not asking about any OpenGL ES API entry point, are you?

    - HM

  5. #5
    Junior Member
    Join Date
    Sep 2004
    Location
    Hong Kong
    Posts
    13

    Re: GLfixed data type

    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

  6. #6
    Senior Member
    Join Date
    Sep 2003
    Location
    Seattle, WA
    Posts
    246

    Re: GLfixed data type


  7. #7
    Junior Member
    Join Date
    Sep 2004
    Posts
    5

    Re: GLfixed data type

    Thanks Hans-Martin!

    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.

    Greetz,

    Markus

  8. #8
    Junior Member
    Join Date
    Sep 2004
    Location
    Hong Kong
    Posts
    13

    Re: GLfixed data type

    Thanks ~ ^^

  9. #9
    Junior Member
    Join Date
    Sep 2004
    Posts
    13

    Re: GLfixed data type

    <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.

    Regards,
    Jasin
    Jasin Bushnaief
    Hybrid Graphics Ltd. http://www.hybrid.fi

  10. #10
    Junior Member
    Join Date
    Sep 2004
    Posts
    5

    Re: GLfixed data type

    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.

    Thanks!

    Markus

Similar Threads

  1. 128-bit data type support
    By audiophile128 in forum OpenCL
    Replies: 0
    Last Post: 08-27-2012, 12:12 PM
  2. data type FILE in kernel
    By agmegharaj in forum OpenCL
    Replies: 2
    Last Post: 09-05-2011, 08:48 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •