Java 类org.lwjgl.util.generator.NativeTypeTranslator 实例源码

项目:PhET    文件:GLTypeMap.java   
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;
}
项目:Wolf_game    文件:GLTypeMap.java   
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;
}
项目:Wolf_game    文件:GLESTypeMap.java   
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;
}
项目:GPVM    文件:GLTypeMap.java   
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;
}
项目:GPVM    文件:GLESTypeMap.java   
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;
}
项目:GPVM    文件:GLTypeMap.java   
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;
}
项目:GPVM    文件:GLESTypeMap.java   
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;
}
项目:SpaceStationAlpha    文件:GLTypeMap.java   
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;
}
项目:SpaceStationAlpha    文件:GLESTypeMap.java   
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;
}
项目:TeacherSmash    文件:GLTypeMap.java   
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;
}
项目:TeacherSmash    文件:GLESTypeMap.java   
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;
}
项目:3d-Demo    文件:GLTypeMap.java   
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;
}
项目:3d-Demo    文件:GLESTypeMap.java   
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;
}