Reputation: 14687
i am writing a simple program actually implementing scan line algorithm in C++ using Visual Studio 2010. but i am getting an error saying graphics.h file can not be found. can anybody tell me how to solve that problem? or any other way(without using graphics.h) to implement scan line algorithm.
Upvotes: 1
Views: 4883
Reputation: 10405
Actually, graphics.h
is a deprecated header file for graphics. It is used for old age compilers like Turbo-C++.
In my knowledge, graphics.h
does not support scan line algorithm, better use some better graphics libraries like OpenGL.
Good luck. :)
Upvotes: 0
Reputation: 490713
You'd probably #include <windows.h>
. It's not entirely clear what you mean by "scan line algorithm", but at first blush it sounds a bit like LineDDA
might be what you're after.
Upvotes: 0