Graphics programming

Gulab

Distinguished
Oct 3, 2011
23
0
18,510
Hello,
plz tell me WHY, graphics programming is not run in turbo c++, but c/c++ programming is run , with amd athlon 5000+
 
Let me see if I get this one right...

You can't "program" a Video card with code directed to the CPU, that's the first thing it has to be clear. If you want to code for the GPU, you must have:

1- a proper compiler for the code
2- a video card that can actually run custom code (DX9/OCL gen and forth)
3- libraries to tell the CPU you'll be using the GPU to off load stuff

It's a mixed bag of things if you're not familiar with it, but GPGPU is kind of new and it's not targeted to use CPU code (for the already CPU compiled code) directly, but use special libraries and special code for them.

Also, even though you actually compile code for the GPU, the CPU is used as well and it can't be avoided.

I'm no expert in it, but I've tried using the AMD APP libraries. It's been fun, but haven't done anything seriously.

Also, this answer doesn't cover the OGL/DX "classic" approach to use a video card, just GPGPU.

Cheers!