Sunday, April 16, 2006

Gushing fanboy love for Linux.

I've started porting the engine code for Clockwork over to Linux (all 10,000 lines of it). I seriously just should have written the thing for Linux in the first place. I'll swap VC++ for Kate any day (yes, thats right. Kate).

While making the code fully cross-platform, I actually fixed some viewer issues that I was having in Windows. I was previously using a quick hack with a faux-GLUT menu, and some bool values for mouse locking (ie. gum and tape). The port forced me to re-write the mouse handler to use GLUT functions, rather than Windows cursor functions (GetCursorPos() and SetCursorPos()).

Due to this experience, I've concluded that you cannot write cross-platform code on Windows. The next (3D) project I start, I'm going to write in on Linux, and port it to Windows.

0 Comments:

Post a Comment

<< Home