View Full Version : Porting to OpenGL for Microsoft Visual C++.NET (2002)
08-04-2003, 04:32 AM
I am a new user of OpenGL version 1.2. Please tell me how to do porting to OpenGL 1.2 for Managed C++ coding in Microsoft Visual C++.NET (2002).
Thanks in advance,
08-04-2003, 07:58 AM
To .NET from ??? VC6?
08-04-2003, 09:10 AM
I want to use OpenGL 1.2 in Managed C++ Coding of VC++.NET (2002)that is quite different from VC++ 6.0 - _tmain () or wmain () [not main ()] is used in Managed C++. Any special things do we have to watch out? Please reply if you have used OpenGL 1.2 in this new Managed C++ environment.
08-04-2003, 09:31 AM
There is nothing special to it, well it will run a bit slower but that's it.
When you use managed code it is just another compiler that outputs MSIL code instead of machine code, but you can also use #pragma's to control which part of the source that should generate native code, so you can go on and call OpenGL just as usual.
The only problem is that the calling gateway between .NET managed code and native code is pretty heavy so you will lose lots of performance if you go on and call OpenGL functions from managed code, try to make the methods/functions that makes calls to OpenGL native (#pragma unmanaged)
I hope that helps
[This message has been edited by mikael_aronsson (edited 08-04-2003).]
Powered by vBulletin® Version 4.2.2 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.