Graphics Mode programming SDL..... GDI.....

Started by
12 comments, last by Renran 16 years, 1 month ago
I know it is undocumented.
But perhaps there are other programs:

http://developer.nvidia.com/object/cg_toolkit.html
http://libsh.org/

Let us try them?

Renran
Advertisement
I know it is undocumented.
But perhaps there are other programs:

http://developer.nvidia.com/object/cg_toolkit.html
http://libsh.org/

Let us try them?

Renran
Those are essentially programming languages for the GPU, which is different from what you're asking for. The fastest way to do things in GDI is with a DIB section, as CET Kaerf demonstrated. You can use assembly to write the pixel values if you like, but unless you've been doing assembly for over a decade, and you know all about instruction pairing, register allocation, and various other very low level performance tweaks for assembly, the compiler will generate more efficient assembly.
Similarly, the fastest D3D way would be with a dynamic texture which you Lock() every frame and then write into the buffer it hands back to you.
I don't know how OpenGL works, but I imagine it's exactly the same concept.
Well Evil Steve,

I will look into it, and I know my way into MASM and FASM, so that's no
problem.

Thanks,

Renran

This topic is closed to new replies.

Advertisement