bozmillar
11-04-2010, 11:39 AM
So from SetControlFromPlug() I can update a value that will be drawn to the screen. it accepts an ID and a value. But let's say I wanted to make a spectrum analyzer and need to update a lot of values often.
At first look my guess is to make a new class that extends IGraphics with a function that accepts and ID and a pointer. That way I could just fill a buffer and send it to whatever function will draw the frequency curve.
My other thought would be to just call SetControlFromPlug() a million times every once my buffer is full, but that just seems like a bad idea.
Is there some other way that I'm not thinking of to update a large number of points on the screen to be drawn?
At first look my guess is to make a new class that extends IGraphics with a function that accepts and ID and a pointer. That way I could just fill a buffer and send it to whatever function will draw the frequency curve.
My other thought would be to just call SetControlFromPlug() a million times every once my buffer is full, but that just seems like a bad idea.
Is there some other way that I'm not thinking of to update a large number of points on the screen to be drawn?