I'm trying to render a large number of separated pixels like the screen on a GameBoy. I'm new to OpenGL and so I'd like to get some advice on what sorts of ways I can approach this problem.
I'm currently rendering like so:
glColorPointer( 4, GL_FLOAT, 0, &colors );
glVertexPointer( 2, GL_FLOAT, 0, &triangles );
glDrawArrays( GL_TRIANGLES, 0, sizeof( triangles ) / sizeof( CGPoint ) );
so i build an array of 6 (vertices per pixel) * numPixels. Is this an appropriate approach? I have no idea if this will scale up etc--any thoughts/advice is appreciated.
Thanks!