Currently I use GR32 functions for my project, where I have lots of blending, image operations such as saturation, contrast, blur etc. Also custom image operations.
Basically I would like to replace GR32 (or GDI, no difference) with graphic card instructions, in order to use graphics card for processing instead of CPU.
I don't need OpenGL unit, I don't want to make any 3D operations, I just want to use graphics card calculations instead of CPU instructions.
My questions are >
- What is the best way to use GPU?
- Is there any libs written for these purposes?
Use OpenGL or Direct3D. These are the APIs for talking to the GPU.
Also neither OpenGL nor Direct3D operate on 3D scenes. All they do is drawing points, lines or triangles to a pixel framebuffer, applying programmable shaders and fixed function blending operations. In other words they do exactly what you want.
The only thing that is "3D" about OpenGL and Direct3D is, that the coordinates for the points, lines or triangles have more than 2 dimensions, but ultimately these coordinates are projected into 2D window coordinates. And the points, lines and triangles are then rasterized as flat, 2 dimensional shapes in window coordinate space.