Is it smart to create an OpenGL C # application to replace GDI

I developed a fairly large application using MFC. Naturally, I used GDI for drawing, CCmdTarget for event routing and document architecture. It was a convenient development path.

Now the client is interested in converting this application to .Net. I would prefer (and they too) to write a new product in C #.

The application displays and interacts with thousands of graphic objects, so I decided to go with GDI +, although it seems natuaral, it can cause performance problems, so I’m thinking about using OpenGL, in particular - OpenTK - as a graphics library (this is 2D).

I know that OpenGL works differently, that these are Windows APIs that rely on the inadmissibility of part of the screen. OpenGL has a rendering cycle that constantly draws on the screen.

My question is: This is an acceptable way to go, thinking:

  • Performance - Do users need special graphics cards (hardware?). This is intense graphics, but it is not a high quality game.

  • print and print preview - are these things difficult to achieve?

  • multiple selection and context menus

Is this library the best inside Windows forms?

+3
source share
5 answers

CAD- OpenGL DirectX - , , . , , , , , API- .

:

  • 2D-, GDI, GDI + . , 2D GDI GDI + , 2D OpenGL DirectX. , , , , , GDI +.

  • (, , ) . OpenGL DirectX .

  • OpenGL DirectX, () . , , , .

  • OpenGL DirectX . , . , , .

  • OpenGL DirectX... ; ~)

  • , , Managed DirectX, ​​ , 100 .

+4

. WPF, , DirectX, .

, , .NET(microsoft) Windows (microsoft), DirectX... Microsoft.

: . open-gl , , .

+7

#, , openGL .

, openGL , . , .

0

Direct X Open GL , GDI +.

0

TAO OpenTK.

0

Source: https://habr.com/ru/post/1715900/


All Articles