Help With graphics

Hello all,

I am trying to make a sort of a graph with SDL

What i wanted to ask was if there is a pixel pointing mechanism in SDL to
use.I had thought of putting values in the equation and then simply plotting
the pixel to generate a graph.

Also if you could tell me if there is another method to draw curves besides
the above.

I have another thing to ask which is that the graphics move in SDL very
slowly.Is that normal or can I change the output to smooth graphics??

Thanks…

Naman

Several years ago, I wrote a polynomial graphing program for my students. If
you think it would be useful for what you want to do, let me know and I’ll
send you the tar.gz file (C++ source, 57KB).

JeffOn Friday 23 April 2010 03:12, naman kohli wrote:

Hello all,

I am trying to make a sort of a graph with SDL

What i wanted to ask was if there is a pixel pointing mechanism in SDL to
use.I had thought of putting values in the equation and then simply
plotting the pixel to generate a graph.

Also if you could tell me if there is another method to draw curves besides
the above.

I have another thing to ask which is that the graphics move in SDL very
slowly.Is that normal or can I change the output to smooth graphics??

Thanks…

Naman

try looking at SDL_gfx library
http://www.ferzkopp.net/joomla/content/view/19/14/

it has framreate and drawing functions that might help you.On 23 April 2010 11:12, naman kohli wrote:

Hello all,

I am trying to make a sort of a graph with SDL

What i wanted to ask was if there is a pixel pointing mechanism in SDL to
use.I had thought of putting values in the equation and then simply plotting
the pixel to generate a graph.

Also if you could tell me if there is another method to draw curves besides
the above.

I have another thing to ask which is that the graphics move in SDL very
slowly.Is that normal or can I change the output to smooth graphics??

Thanks…

Naman
checked for viruses and spam by CanIt.
http://www.canit4.3d.net.uk/


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org