Results 1 to 4 of 4

Thread: Debugging OpenGL: Converting GLDouble to char...

  1. #1
    Junior Member Newbie
    Join Date
    Feb 2011
    Posts
    2

    Debugging OpenGL: Converting GLDouble to char...

    Dear OpenGL community,

    I am trying to convert a GLDouble to a Char so I can printf it for debugging.
    How do i do that?

    I've searched the tinternet with zero success. I'm using a Mac i.e. in XCode.


  2. #2
    Senior Member Regular Contributor
    Join Date
    Dec 2009
    Posts
    105

    Re: Debugging OpenGL: Converting GLDouble to char...

    printf( "%f\n", gldWhatever );

    ?

  3. #3
    Junior Member Newbie
    Join Date
    Feb 2011
    Posts
    2

    Re: Debugging OpenGL: Converting GLDouble to char...

    Cheers. I had prinf("%s\n", X); should have been %f.

  4. #4

    Re: Debugging OpenGL: Converting GLDouble to char...

    You got gDEbugger already?
    http://www.gremedy.com/
    Very nifty tool to debug OpenGL.

Similar Threads

  1. GLdouble
    By dukey in forum OpenGL: Advanced Coding
    Replies: 3
    Last Post: 01-08-2013, 04:31 PM
  2. double precision (glDouble) useful at all or not?
    By felpy in forum OpenGL: Basic Coding
    Replies: 6
    Last Post: 12-23-2009, 09:46 AM
  3. about GLdouble
    By Barbary in forum OpenGL: Advanced Coding
    Replies: 7
    Last Post: 03-31-2005, 12:42 AM
  4. GLdouble & float compatibility
    By hoshi55 in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 03-25-2002, 06:05 AM
  5. Should you use double or GLdouble?
    By StudentFYP in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 03-19-2001, 02:18 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean