@Narendra I know OpenGL but actually in my assignment I have to use ROM BIOS functions. To invoke this functions I have to use interrupt and registers available in 8086. These functions can be used in windows by including dos.h. I want to know that is there something similar in Linux.
@Tavish I included these files but it doesn't recognize "int86" & "REGS" function that I use in windows. Any idea, what can be used at their place? On Sun, Oct 16, 2011 at 8:12 PM, Narendra Sisodiya <[email protected]> wrote: > > > On Oct 16, 6:24 pm, Rishi <[email protected]> wrote: >> Hi, >> >> I am required to make a assignment in Computer Graphics using C++ in which I >> have to control the mouse. I tried making it in Turbo C++ in windows 7 but >> gave up due to its medieval interface. I set up environment to do this in >> Linux using steps given here >> :http://itsanimesh.com/2009/01/08/c_graphics_in_linux/. But the problem is >> that there is no substitute for dos.h in Linux which allows to access REGS - >> register which is used to store mouse positions. I googled it and find out >> that providing this type of access compromises OS's security so Linux >> doesn't provide it. Is there any work around? >> >> Regards, >> Rishi Agarwal > > > > Dear Rishi, > why you want to learn graphics in DOS ? Why not learn graphics > which works cross platform ? standard .. > > Here are few options. > > Use DevCPP and Learn Open GL > OpenGL is heavy, you can learn GTL http://www.nigels.com/glt/ > > > Other 2D graphics APIs > > cairo – a cross platform graphical vectorial draw and text > toolkit. > GTK+ – a cross platform graphical widget toolkit. > Java 2D – a cross platform API for drawing two-dimensional > graphics. > Qt – a cross platform graphical widget toolkit. > wxWidgets – a cross platform graphical widget toolkit. > Asymptote Vector Graphics Language – a script driven, LaTex > compatible, language for high quality sketches, graphs, diagrams, > geometry and typesetting with output in PostScript, PDF, SVG, and 3D > PRC. > > > > Must read discussion - > http://stackoverflow.com/questions/1924171/simple-c-graphics-library > > -- > Mailing list guidelines and other related articles: http://lug-iitd.org/Footer > -- Rishi Agarwal 3rd Year Undergraduate Department of Mathematics Indian Institute of Technology, Delhi -- Mailing list guidelines and other related articles: http://lug-iitd.org/Footer
