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 7:13

>>35
Most people use some sort of IDE that looks up the function prototype and highlights the current function/argument, so getting the order wrong is rarely an issue. Sometimes I write ANSI C in simple editors and do get argument order wrong, even in functions with small argcounts (3+, for example, I don't remember how many times I looked up fseek/fread's definition).

As for redesigning the function APIs, I think it would be rather tricky to do given Win32 APIs features and complexity.

Try redesigning these fairly common APIs while keeping all the functionality:
http://msdn.microsoft.com/en-us/library/aa363858(VS.85).aspx
(CreateFile)
http://msdn.microsoft.com/en-us/library/aa366890(VS.85).aspx (VirtualAllocEx)
http://msdn.microsoft.com/en-us/library/ms682425(VS.85).aspx
(CreateProcess)
Most of the time, operations have to be atomic. Spreading it through multiple function calls would require defering the actual action, and you'd end up specifying a lot of those arguments anyway. Wether this is a solution or a problem is unknown to me.

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