Search in sources :

Example 1 with FilterBilinear

use of com.b3dgs.lionengine.core.filter.FilterBilinear in project lionengine by b3dgs.

the class LoaderTest method testBilinear.

/**
 * Test with bilinear filter.
 */
@Test
public void testBilinear() {
    final Resolution output = new Resolution(640, 480, 0);
    final Config config = new Config(output, 16, true);
    Loader.start(config, SequenceFilterMock.class, new FilterBilinear()).await();
}
Also used : Config(com.b3dgs.lionengine.Config) Resolution(com.b3dgs.lionengine.Resolution) FilterBilinear(com.b3dgs.lionengine.core.filter.FilterBilinear) Test(org.junit.Test)

Example 2 with FilterBilinear

use of com.b3dgs.lionengine.core.filter.FilterBilinear in project lionengine by b3dgs.

the class SpriteAnimatedTest method testFilterBilinear.

/**
 * Test filter bilinear.
 */
@Test
public void testFilterBilinear() {
    final SpriteAnimated sprite = new SpriteAnimatedImpl(Graphics.createImageBuffer(64, 32), 16, 8);
    sprite.filter(new FilterBilinear());
    Assert.assertEquals(64, sprite.getWidth());
    Assert.assertEquals(32, sprite.getHeight());
}
Also used : SpriteAnimated(com.b3dgs.lionengine.graphic.SpriteAnimated) FilterBilinear(com.b3dgs.lionengine.core.filter.FilterBilinear) Test(org.junit.Test)

Example 3 with FilterBilinear

use of com.b3dgs.lionengine.core.filter.FilterBilinear in project lionengine by b3dgs.

the class SpriteFontTest method testFilterBilinear.

/**
 * Test filter bilinear.
 */
@Test
public void testFilterBilinear() {
    final SpriteFont sprite = new SpriteFontImpl(media, font, 6, 7);
    sprite.load();
    sprite.filter(new FilterBilinear());
    Assert.assertEquals(64, sprite.getWidth());
    Assert.assertEquals(32, sprite.getHeight());
}
Also used : SpriteFont(com.b3dgs.lionengine.graphic.SpriteFont) FilterBilinear(com.b3dgs.lionengine.core.filter.FilterBilinear) Test(org.junit.Test)

Example 4 with FilterBilinear

use of com.b3dgs.lionengine.core.filter.FilterBilinear in project lionengine by b3dgs.

the class SpriteTest method testFilterBilinear.

/**
 * Test filter bilinear.
 */
@Test
public void testFilterBilinear() {
    final Sprite sprite = new SpriteImpl(Graphics.createImageBuffer(64, 32));
    sprite.filter(new FilterBilinear());
    Assert.assertEquals(64, sprite.getWidth());
    Assert.assertEquals(32, sprite.getHeight());
}
Also used : Sprite(com.b3dgs.lionengine.graphic.Sprite) FilterBilinear(com.b3dgs.lionengine.core.filter.FilterBilinear) Test(org.junit.Test)

Example 5 with FilterBilinear

use of com.b3dgs.lionengine.core.filter.FilterBilinear in project lionengine by b3dgs.

the class SpriteTiledTest method testFilterBilinear.

/**
 * Test filter bilinear.
 */
@Test
public void testFilterBilinear() {
    final SpriteTiled sprite = new SpriteTiledImpl(Graphics.createImageBuffer(64, 32), 16, 8);
    sprite.filter(new FilterBilinear());
    Assert.assertEquals(64, sprite.getWidth());
    Assert.assertEquals(32, sprite.getHeight());
}
Also used : SpriteTiled(com.b3dgs.lionengine.graphic.SpriteTiled) FilterBilinear(com.b3dgs.lionengine.core.filter.FilterBilinear) Test(org.junit.Test)

Aggregations

FilterBilinear (com.b3dgs.lionengine.core.filter.FilterBilinear)5 Test (org.junit.Test)5 Config (com.b3dgs.lionengine.Config)1 Resolution (com.b3dgs.lionengine.Resolution)1 Sprite (com.b3dgs.lionengine.graphic.Sprite)1 SpriteAnimated (com.b3dgs.lionengine.graphic.SpriteAnimated)1 SpriteFont (com.b3dgs.lionengine.graphic.SpriteFont)1 SpriteTiled (com.b3dgs.lionengine.graphic.SpriteTiled)1