GLES20.glAttachShader(program, fragmentShader) GLES20.glAttachShader(program, vertexShader) Int fragmentShader = loadShader(GLES20.GL_FRAGMENT_SHADER, fragmentShaderCode) What's peculiar is that I have another emulator in my AVD Manager of which I do have the "Hardware" table:Īnd just to show you exactly what I'm doing, here's some code that does some stuff I want to do in OpenGL ES 2.0 (I mainly got this from Android's own tutorials): int vertexShader = loadShader(GLES20.GL_VERTEX_SHADER, vertexShaderCode) However, here is what I see when I look at mine: Then, everywhere I looked said that you must go into the AVD Manager, select the emulator, go to "Hardware", add "GPU emulation" and set the boolean to "yes". SetRenderMode(GLSurfaceView.RENDERMODE_WHEN_DIRTY) Then, when I want to instantiate my GLSurfaceView, I use this sequence of code to instantiate it: super(context) Does the Android emulator support OpenGL ES 2.0? I've seen some people say "Yes, but you have to change a few settings." and I've also seen "No, it doesn't support it, period." Here's what I've done to try and correct the problem, including some error messages that I got.įirst, I modified the AndroidManifest.xml to contain the following code:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |