C# along with OpenGl and assembly. How to do that?

T

Teis Draiby

I am generally new to coding. Anyhow I managed to make a rather complex VC++
application containing SSE2 inline assembly and a OpenGl 3D interface. I
haven't yet come to friendly user interface in the manual so the application
is a nightmare of key shortcuts that I keep forgetting.

Instead of looking at MFC I am considering to transfer the code (or the user
interface parts of is) into C#.
Since the assembly code is substantial for the performance of the
application I need to keep that. I want to use OpenGl as well.

Question: How is it possible to use C# along with OpenGl code and inline
assembly? I am concerned that assembly and CLR are conflicting by nature.

I appreciate any answer.
Thanks, Teis
 
T

Teis Draiby

Thank you.
Can I use SSE2 intrinsics within C#?

OGL: I'll have a look at that. Which wrapper is preferrable?
regards, Teis


Nicholas Paldino said:
Teis,

You aren't going to be able to use inline assembly in C#. The language
doesn't support it (nor does the CLR, as far as I know). Using OpenGL from
C# is possible though. I came up with a number of sites on google.com
looking for "C#" and OpenGL. Here is the link to the results (watch for
line wrap):

http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q="C#"+OpenGL

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Teis Draiby said:
I am generally new to coding. Anyhow I managed to make a rather complex VC++
application containing SSE2 inline assembly and a OpenGl 3D interface. I
haven't yet come to friendly user interface in the manual so the application
is a nightmare of key shortcuts that I keep forgetting.

Instead of looking at MFC I am considering to transfer the code (or the user
interface parts of is) into C#.
Since the assembly code is substantial for the performance of the
application I need to keep that. I want to use OpenGl as well.

Question: How is it possible to use C# along with OpenGl code and inline
assembly? I am concerned that assembly and CLR are conflicting by nature.

I appreciate any answer.
Thanks, Teis
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top