src/Renderer.cpp
void Renderer::drawScreenPixels(const ScreenPixels &pixels)
{
	int numPixels = pixels.size();

	glEnableClientState(GL_VERTEX_ARRAY);
	glVertexPointer(2, GL_INT, sizeof(Pixel), &pixels[0]);

	glEnableClientState(GL_COLOR_ARRAY);
	glColorPointer(4, GL_UNSIGNED_BYTE, sizeof(Pixel), &pixels[0].color);

	glDrawArrays(GL_POINTS, 0, numPixels);
}
//this function turns on the specified pixels on screen

this function turns on the specified pixels on screen
this function turns on the specified pixels on screen
void Renderer::drawScreenPixels(const ScreenPixels &pixels)
{
	int numPixels = pixels.size();
	glEnableClientState(GL_VERTEX_ARRAY);
	glVertexPointer(2, GL_INT, sizeof(Pixel), &pixels[0]);
	glEnableClientState(GL_COLOR_ARRAY);
	glColorPointer(4, GL_UNSIGNED_BYTE, sizeof(Pixel), &pixels[0].color);
	glDrawArrays(GL_POINTS, 0, numPixels);
}
void Renderer :: drawScreenPixels ( const ScreenPixels & pixels ) { int numPixels = pixels . size ( ) ; glEnableClientState ( GL_VERTEX_ARRAY ) ; glVertexPointer ( 2 , GL_INT , sizeof ( Pixel ) , & pixels [ 0 ] ) ; glEnableClientState ( GL_COLOR_ARRAY ) ; glColorPointer ( 4 , GL_UNSIGNED_BYTE , sizeof ( Pixel ) , & pixels [ 0 ] . color ) ; glDrawArrays ( GL_POINTS , 0 , numPixels ) ; }
this function turns on the specified pixels on screen
this function turns on the specified pixels on screen