OpenGL ES

 36 Minutes
 18 Questions


This test will assess a candidate's knowledge of the basic concepts of OpenGL ES, as well as their understanding of shaders and texturing. The test will include questions on topics such as the fundamentals of 3D graphics, the use of shaders to create visual effects, and how to apply textures to 3D models. Candidates should be able to demonstrate their ability to use OpenGL ES to create 3D graphics and manipulate textures.


Example Question:

Multiple-Choice
Which of the following correctly describes the following code snippet?
Note: Choose the programming language which best fit your knowledge
Java
public void createSimpleTexture2D( )
{
byte[] pixels =
{
0, 0, 0,
0, 0, 0,
0, 0, 0,
0, 0, (byte) 0xff
};
GLES20.glPixelStorei(GLES20.GL_UNPACK_ALIGNMENT, 1);
int[] renderTex = new int[1];
GLES20.glGenTextures(1, renderTex, 0);
GLES20.glBindTexture(GLES20.GL_TEXTURE_2D, renderTex[0]);
GLES20.glTexImage2D(GLES20.GL_TEXTURE_2D, 0, GLES20.GL_RGB, 2, 2, 0, GLES20.GL_RGB, GLES20.GL_UNSIGNED_BYTE, texBuffer);
}
C++
GLuint textureId;
GLubyte pixels[4 * 3] =
{
0, 0, 0,
0, 0, 0,
0, 0, 0,
0, 0, 255
};
glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
glGenTextures(1, &textureId);
glBindTexture(GL_TEXTURE_2D, textureId);
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, 2, 2, 0, GL_RGB, GL_UNSIGNED_BYTE, pixels);