DiGiTaIErRoR
Oct 26th, 2001, 01:38 PM
I'm new to c++ and as such I don't know a lot... especially about graphics in c++.
I have a program in VB which I'd like to convert to C++ for obvious speed reasons, it uses the .line function of a picture box and also has a setting for SetPixelV API which is incredibly faster(usually 4-5 times). I can handle to math part but I don't know how to draw the x, y grids. I think the h file is grafix, but I'm not sure. And even after I include that I don't know what to use to actually draw the points, and hopefully lines. My program makes 3d spirographs, along with lighting, as you can imagine this is slow in VB.
The more source you could give me on doing this, that is: lines/dots, and setting their color(s), along with includes, etc. I'd be very thankful and I'll soon release my program.
Thanks,
I have a program in VB which I'd like to convert to C++ for obvious speed reasons, it uses the .line function of a picture box and also has a setting for SetPixelV API which is incredibly faster(usually 4-5 times). I can handle to math part but I don't know how to draw the x, y grids. I think the h file is grafix, but I'm not sure. And even after I include that I don't know what to use to actually draw the points, and hopefully lines. My program makes 3d spirographs, along with lighting, as you can imagine this is slow in VB.
The more source you could give me on doing this, that is: lines/dots, and setting their color(s), along with includes, etc. I'd be very thankful and I'll soon release my program.
Thanks,