All pastes #902538 Raw Edit

Miscellany

public text v1 · immutable
·published 2008-02-13 16:19 UTC
rendered paste body
void Drawer::Draw(int iT)
{
	int i = 0;
	while(i < iScreenHeight)
	{
		int j = 0;

		glBegin(GL_LINE_STRIP);
		
		while(j < iScreenWidth)
		{
			float fResult = Wrangle((float)(i-64)*fTimes,(float)(j-64)*fTimes,iT);

			glColor3f(0.0f,1.0f,0.0f);
			//glColor3f(Red,Green,Blue);
			//glColor3f ( 0.5f + fResult/2.0f , 0.0f,0.0f);
			glVertex3f(fMinX + (j * fDistX),fMinY + (i * fDistY), fResult/5);
			//glVertex2f(fMinX + (j * fDistX),fMinY + (i * fDistY));
			j++;
		}
		glEnd();
		
		i++;
	}
}