|
new ideas
Hello again.Yesterday night i was thniking about it.
i think it would be more simple than using opengl.
I was reading the sources of simpleFilter.cpp and i think it would be easy implement
rotation here,only need the angle (teta) and r,which would be calculate with the keys for motion and apply here.
for example in funtion Simple4x32, calculate cos(teta) and sin(teta) before the bucle,and apply it to all new points.
x = r cos a
y = r sin a
when it enter again in next frame it will do the same .
no??
I see there are two bucles for x and two for i,and i dont undertand well why are the second.
|