⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 d.java~121~

📁 jbenchmark3D 的源码,带jbuilder工程
💻 JAVA~121~
📖 第 1 页 / 共 2 页
字号:
                 exception1.printStackTrace();
                 d_int_fld += 2;
             }
             d_int_fld++;

        }
        else if(d_int_fld==3)
        {
            if(a_long_fld < 10L)
            {
                c(g);//(a_javax_microedition_lcdui_Graphics_fld);
                return;
            }
            else
            {
                d_int_fld++;
                a_JBenchmark3D_JBenchmark3D_fld.a_c_fld.c_int_fld = (int)((b_long_fld * (long)a_int_fld * (long)e) / a_long_fld);
            }

        }
        else if(d_int_fld==4)
        {
            a("JBenchmark3D LQ");
            try {
               // System.out.println("now call c\n");
                c();
                d_int_fld++;
            } catch (Exception exception2) {
                exception2.printStackTrace();
                a_JBenchmark3D_JBenchmark3D_fld.a_c_fld.j = -1;
                a_JBenchmark3D_JBenchmark3D_fld.a_c_fld.d_int_fld = -1;
                d_int_fld += 4;
            }
        }
        else if(d_int_fld==5)
        {
            if(a_long_fld < 30000L)
            {
                //System.out.println("now test LQ\n");
                b(g);//a_javax_microedition_lcdui_Graphics_fld);
                return;
            }
           else
           {
               d_int_fld++;
               a_JBenchmark3D_JBenchmark3D_fld.a_c_fld.j = (int)b_long_fld;
           }
        }
        else if(d_int_fld==6)
        {
            a("JBenchmark3D HQ");
            try {

                g();
                //a_javax_microedition_m3g_Camera_fld.translate(0f,0.7f,0f);
                //a_javax_microedition_m3g_Camera_fld.preRotate(90f,1f,0f,0f);

                d_int_fld++;
            } catch (Exception exception2) {
                exception2.printStackTrace();
                a_JBenchmark3D_JBenchmark3D_fld.a_c_fld.j = -1;
                a_JBenchmark3D_JBenchmark3D_fld.a_c_fld.d_int_fld = -1;
                d_int_fld += 4;
            }
        }
        else if(d_int_fld==7)
        {
            if(a_long_fld < 30000L)
            {
                System.out.println("now test LQ\n");
                b(g);//a_javax_microedition_lcdui_Graphics_fld);
                return;
            }
           else
           {
               d_int_fld++;
//               a_JBenchmark3D_JBenchmark3D_fld.a_c_fld.j = (int)b_long_fld;
               a_JBenchmark3D_JBenchmark3D_fld.a_c_fld.d_int_fld = (int)b_long_fld;
           }
        }
        else
        {

            b_boolean_fld = false;
            a_JBenchmark3D_JBenchmark3D_fld.a_c_fld.d_boolean_fld = true;
            a_JBenchmark3D_JBenchmark3D_fld.stopbenchmark();
            a_javax_microedition_lcdui_Display_fld.setCurrent(a_JBenchmark3D_JBenchmark3D_fld.a_javax_microedition_lcdui_Form_fld);
        }
    }

    public void run()
    {
        a("Triangle Test");
        try
        {
            f();
        }
        catch(Exception exception)
        {
            exception.printStackTrace();
            d_int_fld += 2;
        }
        d_int_fld++;
        while(a_long_fld < 15000L)
        {
            a(a_javax_microedition_lcdui_Graphics_fld);
            //paint(a_javax_microedition_lcdui_Graphics_fld);
        }
        d_int_fld++;
        a_JBenchmark3D_JBenchmark3D_fld.a_c_fld.e = (int)((b_long_fld * 1000L * 992L) / a_long_fld);
        a("Texturing Test");
        try
        {
            b();
        }
        catch(Exception exception1)
        {
            exception1.printStackTrace();
            d_int_fld += 2;
        }
        d_int_fld++;
        while(a_long_fld < 15000L)
            c(a_javax_microedition_lcdui_Graphics_fld);
        d_int_fld++;
        a("JBenchmark3D LQ");
        try
        {
            c();
        }
        catch(Exception exception2)
        {
            exception2.printStackTrace();
            a_JBenchmark3D_JBenchmark3D_fld.a_c_fld.j = -1;
            a_JBenchmark3D_JBenchmark3D_fld.a_c_fld.d_int_fld = -1;
            d_int_fld += 4;
        }
        d_int_fld++;
        while(a_long_fld < 30000L)
            b(a_javax_microedition_lcdui_Graphics_fld);
        d_int_fld++;
        a_JBenchmark3D_JBenchmark3D_fld.a_c_fld.j = (int)b_long_fld;
        a("JBenchmark3D HQ");
        try
        {
            g();

        }
        catch(Exception exception3)
        {
            exception3.printStackTrace();
            a_JBenchmark3D_JBenchmark3D_fld.a_c_fld.d_int_fld = -1;
            d_int_fld += 2;
        }
        d_int_fld++;
        while(a_long_fld < 30000L)
            b(a_javax_microedition_lcdui_Graphics_fld);
        d_int_fld++;
        a_JBenchmark3D_JBenchmark3D_fld.a_c_fld.d_int_fld = (int)b_long_fld;
        b_boolean_fld = false;
        a_JBenchmark3D_JBenchmark3D_fld.a_c_fld.d_boolean_fld = true;
        a_JBenchmark3D_JBenchmark3D_fld.stopbenchmark();
        a_javax_microedition_lcdui_Display_fld.setCurrent(a_JBenchmark3D_JBenchmark3D_fld.a_javax_microedition_lcdui_Form_fld);
    }

    public void a(Node node)
    {
        Transform transform = new Transform();
        node.getTransformTo(a_javax_microedition_m3g_World_fld, transform);
        float af[] = new float[16];
        transform.get(af);
        if(node.getClass().getName().equals("javax.microedition.m3g.Mesh"))
            try
            {
                Mesh mesh = (Mesh)node;
                VertexBuffer vertexbuffer = mesh.getVertexBuffer();
                float af1[] = new float[4];
                vertexbuffer.getPositions(af1);
                float f1 = (-128F * af1[0] + af1[1]) * af[0] + af[3];
                float f2 = (127F * af1[0] + af1[1]) * af[0] + af[3];
                if(f1 < b_float_fld)
                    b_float_fld = f1;
                else
                if(f1 > a_float_fld)
                    a_float_fld = f1;
                if(f2 < b_float_fld)
                    b_float_fld = f2;
                else
                if(f2 > a_float_fld)
                    a_float_fld = f2;
                float f3 = (-128F * af1[0] + af1[3]) * af[0] + af[11];
                float f4 = (127F * af1[0] + af1[3]) * af[0] + af[11];
                if(f3 < d_float_fld)
                    d_float_fld = f3;
                else
                if(f3 > c_float_fld)
                    c_float_fld = f3;
                if(f4 < d_float_fld)
                    d_float_fld = f4;
                else
                if(f4 > c_float_fld)
                    c_float_fld = f4;
            }
            catch(Exception exception)
            {
                System.out.println(exception.toString() + 15);
                if(af[3] < b_float_fld)
                    b_float_fld = af[3];
                else
                if(af[3] > a_float_fld)
                    a_float_fld = af[3];
                if(af[11] < d_float_fld)
                    d_float_fld = af[11];
                else
                if(af[11] > c_float_fld)
                    c_float_fld = af[11];
            }
        if(node.getClass().getName().equals("javax.microedition.m3g.Group") || node.getClass().getName().equals("javax.microedition.m3g.World"))
        {
            Group group = (Group)node;
            for(int i = 0; i < group.getChildCount(); i++)
                try
                {
                    a(group.getChild(i));
                }
                catch(Exception exception1)
                {
                    System.out.println(exception1.toString() + 5);
                }

        }
    }

    public void b(Node node)
    {
        Transform transform = new Transform();
        node.getTransformTo(a_javax_microedition_m3g_World_fld, transform);
        float af[] = new float[16];
        transform.get(af);
        int i = 0;
        if(node.getClass().getName().equals("javax.microedition.m3g.Mesh"))
            try
            {
                Mesh mesh = (Mesh)node;
                VertexBuffer vertexbuffer = mesh.getVertexBuffer();
                float af1[] = new float[4];
                vertexbuffer.getPositions(af1);
                float f1 = (-128F * af1[0] + af1[1]) * af[0] + af[3];
                float f2 = (127F * af1[0] + af1[1]) * af[0] + af[3];
                float f3 = (-128F * af1[0] + af1[3]) * af[0] + af[11];
                float f4 = (127F * af1[0] + af1[3]) * af[0] + af[11];
                int j1 = (int)(((f1 - b_float_fld) / (a_float_fld - b_float_fld)) * (float)f);
                if(j1 == f)
                    j1 = f - 1;
                int k1 = (int)(((f2 - b_float_fld) / (a_float_fld - b_float_fld)) * (float)f);
                if(k1 == f)
                    k1 = f - 1;
                if(k1 < j1)
                {
                    int l1 = k1;
                    k1 = j1;
                    j1 = l1;
                }
                int i2 = (int)(((f3 - d_float_fld) / (c_float_fld - d_float_fld)) * (float)c_int_fld);
                if(i2 == c_int_fld)
                    i2 = c_int_fld - 1;
                int j2 = (int)(((f4 - d_float_fld) / (c_float_fld - d_float_fld)) * (float)c_int_fld);
                if(j2 == c_int_fld)
                    j2 = c_int_fld - 1;
                if(j2 < i2)
                {
                    int k2 = j2;
                    j2 = i2;
                    i2 = k2;
                }
                for(int l2 = i2; l2 <= j2; l2++)
                {
                    for(int i3 = j1; i3 <= k1; i3++)
                        i |= 1 << l2 * f + i3;

                }

            }
            catch(Exception exception)
            {
                System.out.println(exception.toString() + 7);
                int j = (int)(((af[3] - b_float_fld) / (a_float_fld - b_float_fld)) * (float)f);
                if(j == f)
                    j = f - 1;
                int i1 = (int)(((af[11] - d_float_fld) / (c_float_fld - d_float_fld)) * (float)c_int_fld);
                if(j == c_int_fld)
                    j = c_int_fld - 1;
                i = 1 << i1 * f + j;
            }
        if(node.getClass().getName().equals("javax.microedition.m3g.SkinnedMesh"))
            node.setScope(-1);
        else
            node.setScope(i);
        if(node.getClass().getName().equals("javax.microedition.m3g.Light"))
        {
            if(a_javax_microedition_m3g_Light_array1d_fld == null)
            {
                a_javax_microedition_m3g_Light_array1d_fld = new Light[1];
                a_javax_microedition_m3g_Light_array1d_fld[0] = (Light)node;
            } else
            {
                Light alight[] = new Light[a_javax_microedition_m3g_Light_array1d_fld.length + 1];
                for(int k = 0; k < a_javax_microedition_m3g_Light_array1d_fld.length; k++)
                    alight[k] = a_javax_microedition_m3g_Light_array1d_fld[k];

                alight[a_javax_microedition_m3g_Light_array1d_fld.length] = (Light)node;
                a_javax_microedition_m3g_Light_array1d_fld = alight;
            }
            System.out.print("lights: ");
            System.out.println(a_javax_microedition_m3g_Light_array1d_fld.length);
        }
        if(node.getClass().getName().equals("javax.microedition.m3g.Group") || node.getClass().getName().equals("javax.microedition.m3g.World"))
        {
            Group group = (Group)node;
            for(int l = 0; l < group.getChildCount(); l++)
                b(group.getChild(l));

        }
    }

    public float a(float f1)
    {
        float f2 = (f1 / (float)(getWidth() + getHeight())) * 3F;
        return (a_java_util_Random_fld.nextFloat() - 0.5F) * f2;
    }

    public a aa(float f1)
    {
        float f2 = 0.0F;
        float f3 = 0.0F;
        float f4 = 0.0F;
        if(f1 < 0.5F)
            f2 = f1 * 2.0F;
        else
            f2 = (1.0F - f1) * 2.0F;
        if(f1 >= 0.3F && f1 < 0.8F)
            f3 = (f1 - 0.3F) * 2.0F;
        else
        if(f1 < 0.3F)
            f3 = (0.3F - f1) * 2.0F;
        else
            f3 = (1.3F - f1) * 2.0F;
        if(f1 >= 0.5F)
            f4 = (f1 - 0.5F) * 2.0F;
        else
            f4 = (0.5F - f1) * 2.0F;
        return new a(this, (int)(f2 * 255F), (int)(f3 * 255F), (int)(f4 * 255F));
    }

    public Image a_Image()
    {
        float f1 = a_java_util_Random_fld.nextFloat();
        float f2 = a_java_util_Random_fld.nextFloat();
        float f3 = a_java_util_Random_fld.nextFloat();
        float f4 = a_java_util_Random_fld.nextFloat();
        Image image = Image.createImage(a_int_fld, e);
        Graphics g1 = image.getGraphics();
        a(g1, 0.0F, 0.0F, a_int_fld, e, f1, f2, f3, f4);
        a_javax_microedition_lcdui_Graphics_fld.setColor(255, 255, 255);
        return image;
    }

    public void a(Graphics g1, float f1, float f2, float f3, float f4, float f5, float f6,
            float f7, float f8)
    {
        float f14 = f3 / 2.0F;
        float f15 = f4 / 2.0F;
        g1.setColor(0, 255, 0);
        g1.drawRect(0, 0, 256, 512);
    }

    public long b_long_fld;
    public long c_long_fld;
    public long a_long_fld;
    public int d_int_fld;
    public boolean a_boolean_fld;
    private Display a_javax_microedition_lcdui_Display_fld;
    private Graphics3D a_javax_microedition_m3g_Graphics3D_fld;
    private Graphics a_javax_microedition_lcdui_Graphics_fld;
    public int b_int_fld;
    public int a_int_fld;
    public int e;
    private Object3D a_javax_microedition_m3g_Object3D_array1d_fld[];
    private World a_javax_microedition_m3g_World_fld;
    private Camera a_javax_microedition_m3g_Camera_fld;
    private Light a_javax_microedition_m3g_Light_array1d_fld[];
    private Mesh a_javax_microedition_m3g_Mesh_fld;
    private Background a_javax_microedition_m3g_Background_fld;
    private JBenchmark3D a_JBenchmark3D_JBenchmark3D_fld;
    public boolean b_boolean_fld;
    public float d_float_fld;
    public float c_float_fld;
    public float b_float_fld;
    public float a_float_fld;
    public int g;
    private int f;
    private int c_int_fld;
    private Random a_java_util_Random_fld;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -