

Public class GameRenderer implements GLSurfaceView. Related classes I didn't think were relevant enough to post:įPSCounter - outputs the average FPS to logcat every 100 frames. Sprite - creates a square and draws a texture on itĪlso, I'll post my vertex and fragment shader source.

GameRenderer - the renderer for my GLSurfaceView And if it's not immediately apparent what I'm doing wrong, perhaps some advice on how to figure it out? Thanks in advance for looking through all the code I'm about to post. I'm going to dump all the relevant code here and hopefully somebody can give me an answer or some advice as to what I'm doing wrong. I'm exhausted trying to figure out what I'm doing wrong, but I have a strong feeling it has to do with my shaders. I got this much working fine and well with ES 1.0, but now that I've switched to 2.0, I am getting a black screen with no errors. To practice, I have two Sprite objects that are drawn alternating in the same place. I am starting off by creating a "Sprite" class that creates a plane and renders a texture to it. Since 2010, the goal remains the same: provide a way to universally run OpenGL ES 2.0 content on Windows. I'm new to OpenGL and I'm teaching myself by making a 2D game for Android with ES 2.0. ANGLE, or Almost Native Graphics Layer Engine, is an open-source project that allows Windows developers to seamlessly run OpenGL ES 2.0 content by translating OpenGL ES 2.0 API calls to DirectX 11 API calls.
