Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. OpenGL - Using QOpenGLShaderProgram with GLM Math Library ...
Forum Updated to NodeBB v4.3 + New Features

OpenGL - Using QOpenGLShaderProgram with GLM Math Library ...

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 1.7k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    tmason101
    wrote on 12 Feb 2015, 11:24 last edited by
    #1

    Hello,

    I have a working OpenGL program written with the GLM math library for all of my Matrix mathematics, etc.

    I would like to convert my program to use Qt; the problem I am running into is when I would like to use QOpenGLShaderProgram to upload my uniforms/attributes/etc. to the graphics card.

    QOpenGLShaderProgram has nifty functions like setAttribute* and setUniform* for these items but they don't seem to accept the value pointers from GLM.

    Am I mistaken?

    Long story short, would I have to convert GLM datatypes to Qt datatypes for efficiency purposes or is there a way for the QOpenGLShaderProgram to accept the value pointers to the GLM data types so I don't have to convert the data from GLM.

    I am willing to convert to Qt datatypes to keep from having to convert from GLM datatypes to Qt datatypes in memory but I would like to avoid doing so.

    Thank you.

    1 Reply Last reply
    0

    1/1

    12 Feb 2015, 11:24

    • Login

    • Login or register to search.
    1 out of 1
    • First post
      1/1
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved