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 4 of 4

Thread: simple question

  1. #1
    Intern Newbie
    Join Date
    May 2017
    Posts
    37

    simple question

    I have:

    glm::vec3 x(3,2,3)

    I now want to change x to

    1,4,-1

    How do I do this?

  2. #2
    Senior Member OpenGL Guru
    Join Date
    Jun 2013
    Posts
    2,404
    Code :
    x = glm::vec3(1,4,-1);

  3. #3
    Intern Newbie
    Join Date
    May 2017
    Posts
    37

    Quote Originally Posted by GClements View Post
    Code :
    x = glm::vec3(1,4,-1);
    Thanks, that worked.

    Need to close the thread. Can anyone tell me how?thx

  4. #4
    Senior Member OpenGL Guru
    Join Date
    Jun 2013
    Posts
    2,404
    This forum doesn't have a concept of "closing" threads. Once a thread has been created, it usually remains open forever. Occasionally people post to threads which have been dormant for years (usually because the thread came up in a search).

Posting Permissions

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