mcompengr Posted December 7, 2014 Posted December 7, 2014 When compiling GLUT/GL graphics program vs a QT/GL program, a pointer into data (float **) must be decremented with the former and incremented for the latter. The data is hard-coded (float [3][6]) =...) and the pointer is initialized to the "top" of wherever, the same for both! Huh? -Martin Compac, AMD64, MS Vista, cygwin X-Server Get this and you win a cookie.
fiveworlds Posted December 7, 2014 Posted December 7, 2014 The data is hard-coded (float [3][6]) =...) The float of what? [ ] usually means an array pointer which would mean you are using the data assigned to the array float[3][6] but it isn't good practice to call arrays float
Strange Posted December 7, 2014 Posted December 7, 2014 I don't really know what you are asking about (what is GLUT/GL and QT/GL) but endianness wouldn't affect whether a pointer is incremented or decremented. That is determined by the order of the data structure in memory, which is compiler, application and, possibly, architecture dependent. Endianness would define whether the pointer points to the least or most significant byte.
fiveworlds Posted December 7, 2014 Posted December 7, 2014 Usually the variable is the pointer itself so in php $a is a pointer. Whatever is assigned to $a is stored at that location in memory.
Sensei Posted December 7, 2014 Posted December 7, 2014 (edited) When compiling GLUT/GL graphics program vs a QT/GL program, a pointer into data (float **) must be decremented with the former and incremented for the latter. The data is hard-coded (float [3][6]) =...) and the pointer is initialized to the "top" of wherever, the same for both! Huh? Show bigger code of what you're talking about.. Qt is Qt GUI? http://en.wikipedia.org/wiki/Qt_%28software%29 I don't really know what you are asking about (what is GLUT/GL and QT/GL) GLUT is OpenGL Utility Toolkit.. Pretty basic standard thing. http://en.wikipedia.org/wiki/OpenGL_Utility_Toolkit QT GUI has some controls where OpenGL commands can be executed. Edited December 7, 2014 by Sensei
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now