Jump to content

Recommended Posts

Posted

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.

Posted
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

Posted

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.

Posted (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 by Sensei

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.