Next | Prev | Up | Top | Contents | Index
Portability
If you expect to port your program from X to other windowing systems (such as Windows NT), certain programming practices make porting easier. Here's a partial list:
- Isolate your windowing functions and calls from your rendering functions. The more modular your code is in this respect, the easier it is to switch to another windowing system.
- (For Windows NT porting only) Avoid naming variables with any variation of the words "near" and "far"--they are reserved words in Intel(TM) xx86 compilers. For instance, you should avoid the names _near, _far, __near, __far, near, far, Near, Far, NEAR, FAR, and so on.
- Windows NT programs by default have a small stack; don't allocate large arrays on the stack.
- Windows NT does not have an equivalent to glXCopyContext().
Next | Prev | Up | Top | Contents | Index