The MASM Forum Archive 2004 to 2012

Project Support Forums => OpenGL Forum => Topic started by: shaldan on January 05, 2006, 03:09:24 PM

Title: Register preservation
Post by: shaldan on January 05, 2006, 03:09:24 PM
Hello ..  a question:

Do openGl functions preserve or destroy some registers automaticly like Win API ?
Title: Re: Register preservation
Post by: QvasiModo on January 05, 2006, 03:48:01 PM
I think the opengl functions follow the C calling convention.

Here's more info on the different calling conventions, from the assembly language point of view:
http://www.agner.org/assem/calling_conventions.pdf
Title: Re: Register preservation
Post by: shaldan on January 06, 2006, 08:54:45 AM
Great stuff ... thank you very much.  :U