public String getAutoTypeFromAnnotation(AnnotationMirror annotation) { Class annotation_class = NativeTypeTranslator.getClassFromType(annotation.getAnnotationType()); if ( annotation_class.equals(GLint.class) ) return "GL11.GL_INT"; else if ( annotation_class.equals(GLbyte.class) ) return "GL11.GL_BYTE"; else if ( annotation_class.equals(GLshort.class) ) return "GL11.GL_SHORT"; if ( annotation_class.equals(GLuint.class) ) return "GL11.GL_UNSIGNED_INT"; else if ( annotation_class.equals(GLubyte.class) ) return "GL11.GL_UNSIGNED_BYTE"; else if ( annotation_class.equals(GLushort.class) ) return "GL11.GL_UNSIGNED_SHORT"; else if ( annotation_class.equals(GLfloat.class) ) return "GL11.GL_FLOAT"; else if ( annotation_class.equals(GLdouble.class) ) return "GL11.GL_DOUBLE"; else return null; }
public String getAutoTypeFromAnnotation(AnnotationMirror annotation) { Class annotation_class = NativeTypeTranslator.getClassFromType(annotation.getAnnotationType()); if ( annotation_class.equals(GLint.class) ) return "GLES20.GL_INT"; else if ( annotation_class.equals(GLbyte.class) ) return "GLES20.GL_BYTE"; else if ( annotation_class.equals(GLshort.class) ) return "GLES20.GL_SHORT"; if ( annotation_class.equals(GLuint.class) ) return "GLES20.GL_UNSIGNED_INT"; else if ( annotation_class.equals(GLubyte.class) ) return "GLES20.GL_UNSIGNED_BYTE"; else if ( annotation_class.equals(GLushort.class) ) return "GLES20.GL_UNSIGNED_SHORT"; else if ( annotation_class.equals(GLfloat.class) ) return "GLES20.GL_FLOAT"; else return null; }