Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: editing variables

  1. #1
    Guest

    editing variables

    Are there any functions in OpenGL like glTranlsatef() and glRotatef() that allow you to send it an array which would signify coordinates
    ex.
    double bob[] = { 10.0, 0.0, -5.0 };
    glTranslate(1.0, 0.0, -1.0, bob);

    does anyone know of a function like this or is it easier to do the math myself?

    Shaggy

  2. #2
    Junior Member Newbie
    Join Date
    Dec 2000
    Location
    Hannover, Germany
    Posts
    12

    Re: editing variables

    Originally posted by Shaggy:
    Are there any functions in OpenGL like glTranlsatef() and glRotatef() that allow you to send it an array which would signify coordinates
    ex.
    double bob[] = { 10.0, 0.0, -5.0 };
    glTranslate(1.0, 0.0, -1.0, bob);

    does anyone know of a function like this or is it easier to do the math myself?

    Shaggy
    Do it yourself .. it's faster and easier ...
    adios dariusz

    BTW You could use the feedback mode to do such stuff ... but you better don't ...

Posting Permissions

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