I like the methods like readInt in COgreMeshFileLoader.cpp
We should extend the file readers with such methods, so that endian conversion is done automatically: readIntLE for reading data that is known to be little endian, etc.
Search found 48 matches
- Sat Jul 29, 2006 10:37 pm
- Forum: Open Discussion and Dev Announcements
- Topic: Endian Issues
- Replies: 31
- Views: 5148
- Fri Jul 28, 2006 12:14 am
- Forum: Open Discussion and Dev Announcements
- Topic: Endian Issues
- Replies: 31
- Views: 5148
- Thu Jul 27, 2006 10:04 pm
- Forum: Open Discussion and Dev Announcements
- Topic: Endian Issues
- Replies: 31
- Views: 5148
How about we use POSIX htonl, htons, ntohl, ntohs? These will be optimized for the platform they're on, I imagine. We can just use our own #defines to change the API. Perhaps we should take care of endian issues in the reading and writing functions; we can pass flags to the file readers specifying t...
- Mon Jul 24, 2006 7:43 pm
- Forum: Open Discussion and Dev Announcements
- Topic: Endian Issues
- Replies: 31
- Views: 5148
Currently, Irrlicht makes liberal use of OSReadSwapInt32 , and its ilk, for BIG_ENDIAN fixes. However, these are a Mac OS X thing, and the functionality is somewhat incomplete, as there is no way to deal with floats and doubles (in fact, a recent addition to Irrlicht uses OSReadSwapFloat32 , which d...
- Mon Jul 24, 2006 6:44 am
- Forum: Open Discussion and Dev Announcements
- Topic: Irrlicht and Speed
- Replies: 19
- Views: 2213
- Sun Jul 23, 2006 5:37 am
- Forum: Open Discussion and Dev Announcements
- Topic: Irrlicht and Speed
- Replies: 19
- Views: 2213
- Fri Jul 21, 2006 4:32 am
- Forum: Open Discussion and Dev Announcements
- Topic: Endian Issues
- Replies: 31
- Views: 5148
- Thu Jul 20, 2006 9:54 am
- Forum: Open Discussion and Dev Announcements
- Topic: Endian Issues
- Replies: 31
- Views: 5148
I think I've got the image loading problems pretty much narrowed down: 1) jpegs and pngs should already work, because they are loaded with jpeglib and libpng. 2) BMP and TGA have been fixed ; BMP now supports 16-bit files too. 3) PCX is incomplete 4) PSD isn't confirmed as yet I will first get textu...
- Tue Jul 18, 2006 4:09 am
- Forum: Open Discussion and Dev Announcements
- Topic: A New Line on Newlines
- Replies: 10
- Views: 1049
Well, I imagine SVN tries to maintain the encoding as it is submitted. The files I have dealt with are CRLF. I figure SVN stores the files as normalized LF, but has flags to convert them to their original forms, which in my case has been CRLF. Sometimes my editor gives me troubles; even though I hav...
- Mon Jul 17, 2006 7:58 pm
- Forum: Open Discussion and Dev Announcements
- Topic: A New Line on Newlines
- Replies: 10
- Views: 1049
- Mon Jul 17, 2006 7:57 pm
- Forum: Open Discussion and Dev Announcements
- Topic: Endian Issues
- Replies: 31
- Views: 5148
- Mon Jul 17, 2006 10:47 am
- Forum: Open Discussion and Dev Announcements
- Topic: Endian Issues
- Replies: 31
- Views: 5148
OpenGL has two ways to deal with texture data: 1) standard : OpenGL deals with bytes. That is, GL_RGB and GL_UNSIGNED_BYTE specify that unsigned char* data; data[0] = R; data[1] = G; data[2] = B; On all machines, byte locations are the same, but bit locations are not. 2) nonstandard : Actual bit loc...
- Mon Jul 17, 2006 4:50 am
- Forum: Open Discussion and Dev Announcements
- Topic: A New Line on Newlines
- Replies: 10
- Views: 1049
- Sun Jul 16, 2006 9:55 pm
- Forum: Open Discussion and Dev Announcements
- Topic: A New Line on Newlines
- Replies: 10
- Views: 1049
- Sun Jul 16, 2006 9:13 pm
- Forum: Open Discussion and Dev Announcements
- Topic: A New Line on Newlines
- Replies: 10
- Views: 1049
A New Line on Newlines
Does anybody object to making the default line ending for source code the unix line ending, \n?
Please voice your support as well.
Please voice your support as well.