Package org.yajsdl.video

Examples of org.yajsdl.video.Screen



    @Test
    public void notSetVideoMode() {
        assertEquals( Screen.videoModeOK( 0, 0, 0, 0 ), 0 );
        Screen screen = Screen.setVideoMode( 0, 0, 0, 0 );
        SDL_Surface content = screen.toSource();

        assertNotNull( content );

        System.out.format( "screen.width = %d\n", content.w );
        System.out.format( "screen.height = %d\n", content.h );
        System.out.format( "screen.flags = %x\n", content.flags );
        System.out.format( "screen.pitch = %d\n", content.pitch );
        System.out.format( "screen.locked = %d\n", content.locked );
        System.out.format( "screen.format_version = %d\n", content.format_version );

        assertTrue( screen.isScreen() );
    }
View Full Code Here

TOP

Related Classes of org.yajsdl.video.Screen

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.