Java 类org.lwjgl.util.mapped.MappedObjectTransformer 实例源码

项目:Wolf_game    文件:TestMappedObject.java   
public static void main(String[] args) throws Exception {
    MappedObjectTransformer.register(MappedFloat.class);
    MappedObjectTransformer.register(MappedVec2.class);
    MappedObjectTransformer.register(MappedVec3.class);
    MappedObjectTransformer.register(MappedSomething.class);
    MappedObjectTransformer.register(MappedObjectTests3.Xyz.class);
    MappedObjectTransformer.register(MappedObjectTests4.MappedPointer.class);
    MappedObjectTransformer.register(MappedObjectTests4.MappedCacheLinePadded.class);
    MappedObjectTransformer.register(MappedObjectTests4.MappedFieldCacheLinePadded.class);

    if ( MappedObjectClassLoader.fork(TestMappedObject.class, args) ) {
        return;
    }

    MappedObjectTests1.testViewField();

    MappedObjectTests2.testFields();

    // MappedObjectBench.benchmarkMapped();
    // MappedObjectBench.benchmarkInstances();
    // MappedObjectBench.benchmarkIndirectArray();
    // MappedObjectBench.benchmarkDirectArray();
    // MappedObjectBench.benchmarkUnsafe();

    MappedObjectTests3.testMappedBuffer();
    MappedObjectTests3.testForeach();
    MappedObjectTests3.testConstructor();
    MappedObjectTests3.testMappedSet();

    MappedObjectTests4.testLocalView();
    //MappedObjectTests4.testLWJGL();
    MappedObjectTests4.testPointer();
    MappedObjectTests4.testCacheLineAlignment();
    MappedObjectTests4.testCacheLinePadding();
    MappedObjectTests4.testCacheLinePaddingPOJO();

    System.out.println("done");
}
项目:Wolf_game    文件:SpriteShootoutMapped.java   
public static void main(String[] args) {
    MappedObjectTransformer.register(Pixel4b.class);
    MappedObjectTransformer.register(Pixel3b.class);
    MappedObjectTransformer.register(Sprite.class);
    MappedObjectTransformer.register(SpriteRender.class);

    if ( MappedObjectClassLoader.fork(SpriteShootoutMapped.class, args) )
        return;

    try {
        new SpriteShootoutMapped().start();
    } catch (LWJGLException e) {
        e.printStackTrace();
    }
}
项目:GPVM    文件:TestMappedObject.java   
public static void main(String[] args) throws Exception {
    MappedObjectTransformer.register(MappedFloat.class);
    MappedObjectTransformer.register(MappedVec2.class);
    MappedObjectTransformer.register(MappedVec3.class);
    MappedObjectTransformer.register(MappedSomething.class);
    MappedObjectTransformer.register(MappedObjectTests3.Xyz.class);
    MappedObjectTransformer.register(MappedObjectTests4.MappedPointer.class);
    MappedObjectTransformer.register(MappedObjectTests4.MappedCacheLinePadded.class);
    MappedObjectTransformer.register(MappedObjectTests4.MappedFieldCacheLinePadded.class);

    if ( MappedObjectClassLoader.fork(TestMappedObject.class, args) ) {
        return;
    }

    MappedObjectTests1.testViewField();

    MappedObjectTests2.testFields();

    // MappedObjectBench.benchmarkMapped();
    // MappedObjectBench.benchmarkInstances();
    // MappedObjectBench.benchmarkIndirectArray();
    // MappedObjectBench.benchmarkDirectArray();
    // MappedObjectBench.benchmarkUnsafe();

    MappedObjectTests3.testMappedBuffer();
    MappedObjectTests3.testForeach();
    MappedObjectTests3.testConstructor();
    MappedObjectTests3.testMappedSet();

    MappedObjectTests4.testLocalView();
    //MappedObjectTests4.testLWJGL();
    MappedObjectTests4.testPointer();
    MappedObjectTests4.testCacheLineAlignment();
    MappedObjectTests4.testCacheLinePadding();
    MappedObjectTests4.testCacheLinePaddingPOJO();

    System.out.println("done");
}
项目:GPVM    文件:SpriteShootoutMapped.java   
public static void main(String[] args) {
    MappedObjectTransformer.register(Pixel4b.class);
    MappedObjectTransformer.register(Pixel3b.class);
    MappedObjectTransformer.register(Sprite.class);
    MappedObjectTransformer.register(SpriteRender.class);

    if ( MappedObjectClassLoader.fork(SpriteShootoutMapped.class, args) )
        return;

    try {
        new SpriteShootoutMapped().start();
    } catch (LWJGLException e) {
        e.printStackTrace();
    }
}
项目:GPVM    文件:TestMappedObject.java   
public static void main(String[] args) throws Exception {
    MappedObjectTransformer.register(MappedFloat.class);
    MappedObjectTransformer.register(MappedVec2.class);
    MappedObjectTransformer.register(MappedVec3.class);
    MappedObjectTransformer.register(MappedSomething.class);
    MappedObjectTransformer.register(MappedObjectTests3.Xyz.class);
    MappedObjectTransformer.register(MappedObjectTests4.MappedPointer.class);
    MappedObjectTransformer.register(MappedObjectTests4.MappedCacheLinePadded.class);
    MappedObjectTransformer.register(MappedObjectTests4.MappedFieldCacheLinePadded.class);

    if ( MappedObjectClassLoader.fork(TestMappedObject.class, args) ) {
        return;
    }

    MappedObjectTests1.testViewField();

    MappedObjectTests2.testFields();

    // MappedObjectBench.benchmarkMapped();
    // MappedObjectBench.benchmarkInstances();
    // MappedObjectBench.benchmarkIndirectArray();
    // MappedObjectBench.benchmarkDirectArray();
    // MappedObjectBench.benchmarkUnsafe();

    MappedObjectTests3.testMappedBuffer();
    MappedObjectTests3.testForeach();
    MappedObjectTests3.testConstructor();
    MappedObjectTests3.testMappedSet();

    MappedObjectTests4.testLocalView();
    //MappedObjectTests4.testLWJGL();
    MappedObjectTests4.testPointer();
    MappedObjectTests4.testCacheLineAlignment();
    MappedObjectTests4.testCacheLinePadding();
    MappedObjectTests4.testCacheLinePaddingPOJO();

    System.out.println("done");
}
项目:GPVM    文件:SpriteShootoutMapped.java   
public static void main(String[] args) {
    MappedObjectTransformer.register(Pixel4b.class);
    MappedObjectTransformer.register(Pixel3b.class);
    MappedObjectTransformer.register(Sprite.class);
    MappedObjectTransformer.register(SpriteRender.class);

    if ( MappedObjectClassLoader.fork(SpriteShootoutMapped.class, args) )
        return;

    try {
        new SpriteShootoutMapped().start();
    } catch (LWJGLException e) {
        e.printStackTrace();
    }
}
项目:SpaceStationAlpha    文件:TestMappedObject.java   
public static void main(String[] args) throws Exception {
    MappedObjectTransformer.register(MappedFloat.class);
    MappedObjectTransformer.register(MappedVec2.class);
    MappedObjectTransformer.register(MappedVec3.class);
    MappedObjectTransformer.register(MappedSomething.class);
    MappedObjectTransformer.register(MappedObjectTests3.Xyz.class);
    MappedObjectTransformer.register(MappedObjectTests4.MappedPointer.class);
    MappedObjectTransformer.register(MappedObjectTests4.MappedCacheLinePadded.class);
    MappedObjectTransformer.register(MappedObjectTests4.MappedFieldCacheLinePadded.class);

    if ( MappedObjectClassLoader.fork(TestMappedObject.class, args) ) {
        return;
    }

    MappedObjectTests1.testViewField();

    MappedObjectTests2.testFields();

    // MappedObjectBench.benchmarkMapped();
    // MappedObjectBench.benchmarkInstances();
    // MappedObjectBench.benchmarkIndirectArray();
    // MappedObjectBench.benchmarkDirectArray();
    // MappedObjectBench.benchmarkUnsafe();

    MappedObjectTests3.testMappedBuffer();
    MappedObjectTests3.testForeach();
    MappedObjectTests3.testConstructor();
    MappedObjectTests3.testMappedSet();

    MappedObjectTests4.testLocalView();
    //MappedObjectTests4.testLWJGL();
    MappedObjectTests4.testPointer();
    MappedObjectTests4.testCacheLineAlignment();
    MappedObjectTests4.testCacheLinePadding();
    MappedObjectTests4.testCacheLinePaddingPOJO();

    System.out.println("done");
}
项目:SpaceStationAlpha    文件:SpriteShootoutMapped.java   
public static void main(String[] args) {
    MappedObjectTransformer.register(Pixel4b.class);
    MappedObjectTransformer.register(Pixel3b.class);
    MappedObjectTransformer.register(Sprite.class);
    MappedObjectTransformer.register(SpriteRender.class);

    if ( MappedObjectClassLoader.fork(SpriteShootoutMapped.class, args) )
        return;

    try {
        new SpriteShootoutMapped().start();
    } catch (LWJGLException e) {
        e.printStackTrace();
    }
}
项目:TeacherSmash    文件:TestMappedObject.java   
public static void main(String[] args) throws Exception {
    MappedObjectTransformer.register(MappedFloat.class);
    MappedObjectTransformer.register(MappedVec2.class);
    MappedObjectTransformer.register(MappedVec3.class);
    MappedObjectTransformer.register(MappedSomething.class);
    MappedObjectTransformer.register(MappedObjectTests3.Xyz.class);
    MappedObjectTransformer.register(MappedObjectTests4.MappedPointer.class);
    MappedObjectTransformer.register(MappedObjectTests4.MappedCacheLinePadded.class);
    MappedObjectTransformer.register(MappedObjectTests4.MappedFieldCacheLinePadded.class);

    if ( MappedObjectClassLoader.fork(TestMappedObject.class, args) ) {
        return;
    }

    MappedObjectTests1.testViewField();

    MappedObjectTests2.testFields();

    // MappedObjectBench.benchmarkMapped();
    // MappedObjectBench.benchmarkInstances();
    // MappedObjectBench.benchmarkIndirectArray();
    // MappedObjectBench.benchmarkDirectArray();
    // MappedObjectBench.benchmarkUnsafe();

    MappedObjectTests3.testMappedBuffer();
    MappedObjectTests3.testForeach();
    MappedObjectTests3.testConstructor();
    MappedObjectTests3.testMappedSet();

    MappedObjectTests4.testLocalView();
    //MappedObjectTests4.testLWJGL();
    MappedObjectTests4.testPointer();
    MappedObjectTests4.testCacheLineAlignment();
    MappedObjectTests4.testCacheLinePadding();
    MappedObjectTests4.testCacheLinePaddingPOJO();

    System.out.println("done");
}
项目:TeacherSmash    文件:SpriteShootoutMapped.java   
public static void main(String[] args) {
    MappedObjectTransformer.register(Pixel4b.class);
    MappedObjectTransformer.register(Pixel3b.class);
    MappedObjectTransformer.register(Sprite.class);
    MappedObjectTransformer.register(SpriteRender.class);

    if ( MappedObjectClassLoader.fork(SpriteShootoutMapped.class, args) )
        return;

    try {
        new SpriteShootoutMapped().start();
    } catch (LWJGLException e) {
        e.printStackTrace();
    }
}
项目:3d-Demo    文件:TestMappedObject.java   
public static void main(String[] args) throws Exception {
    MappedObjectTransformer.register(MappedFloat.class);
    MappedObjectTransformer.register(MappedVec2.class);
    MappedObjectTransformer.register(MappedVec3.class);
    MappedObjectTransformer.register(MappedSomething.class);
    MappedObjectTransformer.register(MappedObjectTests3.Xyz.class);
    MappedObjectTransformer.register(MappedObjectTests4.MappedPointer.class);
    MappedObjectTransformer.register(MappedObjectTests4.MappedCacheLinePadded.class);
    MappedObjectTransformer.register(MappedObjectTests4.MappedFieldCacheLinePadded.class);

    if ( MappedObjectClassLoader.fork(TestMappedObject.class, args) ) {
        return;
    }

    MappedObjectTests1.testViewField();

    MappedObjectTests2.testFields();

    // MappedObjectBench.benchmarkMapped();
    // MappedObjectBench.benchmarkInstances();
    // MappedObjectBench.benchmarkIndirectArray();
    // MappedObjectBench.benchmarkDirectArray();
    // MappedObjectBench.benchmarkUnsafe();

    MappedObjectTests3.testMappedBuffer();
    MappedObjectTests3.testForeach();
    MappedObjectTests3.testConstructor();
    MappedObjectTests3.testMappedSet();

    MappedObjectTests4.testLocalView();
    //MappedObjectTests4.testLWJGL();
    MappedObjectTests4.testPointer();
    MappedObjectTests4.testCacheLineAlignment();
    MappedObjectTests4.testCacheLinePadding();
    MappedObjectTests4.testCacheLinePaddingPOJO();

    System.out.println("done");
}
项目:3d-Demo    文件:SpriteShootoutMapped.java   
public static void main(String[] args) {
    MappedObjectTransformer.register(Pixel4b.class);
    MappedObjectTransformer.register(Pixel3b.class);
    MappedObjectTransformer.register(Sprite.class);
    MappedObjectTransformer.register(SpriteRender.class);

    if ( MappedObjectClassLoader.fork(SpriteShootoutMapped.class, args) )
        return;

    try {
        new SpriteShootoutMapped().start();
    } catch (LWJGLException e) {
        e.printStackTrace();
    }
}