Jump to content

A hardware (big vs little endian) issue in software??

Featured Replies

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.

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

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.

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.

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

Archived

This topic is now archived and is closed to further replies.

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.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.