[SOLVED]OpenGL as underlay with qml
-
Hi, what you mean not access ?
I can see a std::vector and even expand it to see all elements.However, I had to do the following
Tools -> Options -> Debugger -> GDB tab
Uncheck the option (Load system GDB pretty printers)For it to work.
No idea if its related to what you ask but better to ask than to assume its not :)
-
Thanks for the hint , it did solve part of the issue, I do can see the value of the 3rd party library members (glm) and am still working on what may have causing the crash without any hint. I have tried with gdb backtrace command , but it shows only ?? and as mentioned before the application crashes at
glDrawArrays(GL_LINE_STRIP,0,mShowPoints);
Any further hint over this ?
Thanks
-
@sajis997 said:
have you output value of mShowPoints ?
Any chance it get bigger than the list ?also did you check that
sizeof(glm::vec3) * mVertices.size()
yields the expected size? -
Hi
I am sorry. I would like to ask, did you manage all the element values of std::vectorglm::vec3 mVertices ? I still cannot , even after I made the necessary changes as you suggested. It shows "not accessible".
Thanks
-
@sajis997
Hi well I did not try with that type (glm::vec3) but
for my own std::vector with all types I can see inside. even expand the inner struct/class.
Are you on windows or linux/mac? -
I am at Ubuntu Linux with Qt 5.4.1 on it.
-
@sajis997
Strange it was exactly on ubuntu I had that
problem also and the after the option It did show.if you make another list say with <int>, it is still not willing to show it ?
-
I checked with the vector :
std::vector<GLushort> mIndices;
And I do see all the values inside the vector for type GLushort , but not for type glm::vec3 type. The latter shows "not accessible".
In that case I cannot be sure if the vector is getting populated with the value I am looking for which may have caused the crash at the point mentioned in my last post.Thanks
-
@sajis997 said:
glm::vec3
Ok. Maybe the namespace confuses it.
If you press F2 and see definition and then copy it to you program to say
vec3Test
and make a list with that, will it see it then ?
Also you could try to switch to clang code model and see if that helps. (in options) -
I checked the value of size of the vector mVertices and the value of the variable mShowPoints and both of them are showing the same value in the debugger. The application still crashes at
glDrawArrays(GL_LINE_STRIP,0,mShowPoints);
Any more hint to look into ?