![]() 'Called when the surface has changed size. Sub glsv_SurfaceChanged(gl As GL1, width As Int, height As Int) Gl.glDrawArrays(gl.GL_LINE_STRIP,0,(vn/2)) Gl.glEnableClientState(gl.GL_VERTEX_ARRAY) 'gl.glTranslatef(-int2float(160*GetDeviceLayoutValues.Scale*1000) ,0,-int2float(SeekBar1.Value)) Gl.glClear(Bit.OR(gl.GL_COLOR_BUFFER_BIT, gl.GL_DEPTH_BUFFER_BIT)) ![]() 'The view wants to be drawn using the suppllied GL1 ![]() ' and not report the exception as would happen on the main thread so we use a Try Catch block ![]() ' As this is running on a separate thread exceptions will cause the application to force close ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |