Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Opengl

Name: Anonymous 2010-02-21 13:51

Riddle me this:

If OpenGL is supposed to be just as good if not even better than Direct3D (Not talking about DirectX here), then why don't developers use OpenGL to program their games generating some extra sales on GNU/Linux and Macintosh?

Name: Anonymous 2010-02-23 6:48

>>29
No function should use so many parameters at the same time, even if it did it would use separate params at separate times within its block. So a well-designed API would define more functions that use less parameters, such that a programmer could call two or three functions instead of wasting readability on one with a dozen NULLs.

It would of course have to assume they are being called in the correct order (or at least check for that). Which is harder to spot - calling init_that_thing before init_this_thing, or putting NULL, NULL, NULL, NULL, 6, NULL, NULL, NULL instead of NULL, NULL, NULL, 6, NULL, NULL, NULL, NULL?

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List