Search found 48 matches

by lingwitt
Sat Jul 29, 2006 10:37 pm
Forum: Open Discussion and Dev Announcements
Topic: Endian Issues
Replies: 31
Views: 5148

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.
by lingwitt
Fri Jul 28, 2006 12:14 am
Forum: Open Discussion and Dev Announcements
Topic: Endian Issues
Replies: 31
Views: 5148

Ah, I think you're right.

Network Byte Order is actually Big Endian. Thus, these methods won't swap bytes on a big endian machine.
by lingwitt
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...
by lingwitt
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...
by lingwitt
Mon Jul 24, 2006 6:44 am
Forum: Open Discussion and Dev Announcements
Topic: Irrlicht and Speed
Replies: 19
Views: 2213

The OpenGL backend is being cleaned up as we speak. DirectX 9 will be cleaned up as well.
by lingwitt
Sun Jul 23, 2006 5:37 am
Forum: Open Discussion and Dev Announcements
Topic: Irrlicht and Speed
Replies: 19
Views: 2213

This may seem simple to say, but make sure you optimize your binary with the proper compiler flags. This can tremendously improve performance; at least it did for me.
by lingwitt
Fri Jul 21, 2006 4:32 am
Forum: Open Discussion and Dev Announcements
Topic: Endian Issues
Replies: 31
Views: 5148

JPEG, BMP, PNG, and TGA seem more than enough at this point, and they all work now (with the patches listed in my last comment).

The PCX and PSD code is currently very old and incomplete and it certainly doesn't handle endianness.

Does anybody actually use these? Can we just drop them?
by lingwitt
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...
by lingwitt
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...
by lingwitt
Mon Jul 17, 2006 7:58 pm
Forum: Open Discussion and Dev Announcements
Topic: A New Line on Newlines
Replies: 10
Views: 1049

Unfortunately, auto-props only apply to newly introduced files; it doesn't apply on checkout or to existing files.
by lingwitt
Mon Jul 17, 2006 7:57 pm
Forum: Open Discussion and Dev Announcements
Topic: Endian Issues
Replies: 31
Views: 5148

I call it standard and nonstandard for the sake of discussion; I'm defining those two terms. In particular, the OpenGL specification uses packed pixel formats instead of nonstandard; these were added later, and they are probably around, because of Windows and Endian issues.
by lingwitt
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...
by lingwitt
Mon Jul 17, 2006 4:50 am
Forum: Open Discussion and Dev Announcements
Topic: A New Line on Newlines
Replies: 10
Views: 1049

Unfortunately, there is no way to set default properties.

Consequently, I'll just have to deal with each file individually.
by lingwitt
Sun Jul 16, 2006 9:55 pm
Forum: Open Discussion and Dev Announcements
Topic: A New Line on Newlines
Replies: 10
Views: 1049

I'd prefer to have each platform use its own line ending and let subversion do the conversion.
Sounds great. I didn't realize SVN did that though, because it certainly doesn't for me.

Do I need to tell SVN to do so?
Edit: Ah yes, it's a property that can be set. Thank you!
by lingwitt
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.