From OpenGL 2.1 to DirectX 10

Started by
10 comments, last by V-man 15 years, 8 months ago
Quote:Original post by V-man
Is there a middleware that allows you to use C++, call some routines in a link library which routes to XNA?


Why would you want to?

That aside, you could always use C++/CLI. But if you're going to go that route, you might as well use C#. And if you mix unmanaged code in, you won't be able to deploy to the XBox360.
Mike Popoloski | Journal | SlimDX
Advertisement
Quote:Original post by Mike.Popoloski
Quote:Original post by V-man
Is there a middleware that allows you to use C++, call some routines in a link library which routes to XNA?


Why would you want to?

That aside, you could always use C++/CLI. But if you're going to go that route, you might as well use C#. And if you mix unmanaged code in, you won't be able to deploy to the XBox360.


Because I have a lot of code in C++ and don't want to translate. Reduced productivity.
Sig: http://glhlib.sourceforge.net
an open source GLU replacement library. Much more modern than GLU.
float matrix[16], inverse_matrix[16];
glhLoadIdentityf2(matrix);
glhTranslatef2(matrix, 0.0, 0.0, 5.0);
glhRotateAboutXf2(matrix, angleInRadians);
glhScalef2(matrix, 1.0, 1.0, -1.0);
glhQuickInvertMatrixf2(matrix, inverse_matrix);
glUniformMatrix4fv(uniformLocation1, 1, FALSE, matrix);
glUniformMatrix4fv(uniformLocation2, 1, FALSE, inverse_matrix);

This topic is closed to new replies.

Advertisement