Skip to content

Cannot achieve anti-aliasing to work #1330

@Seymur

Description

@Seymur

I am trying to create a basic game in the Heaps. When I run it, I see Anti Aliasing not working. This is the screenshot and my sample code.

Image
import h3d.Engine;

class Main extends hxd.App {
	var bmp:h2d.Bitmap;

	override function init() {
		Engine.ANTIALIASING = 4;
		var default_font = hxd.res.DefaultFont.get();
		default_font.resizeTo(24);
		var tf = new h2d.Text(default_font, s2d);
		tf.text = "Hello World !";

		var tile = h2d.Tile.fromColor(0xFF0000, 100, 100);
		bmp = new h2d.Bitmap(tile, s2d);

		bmp.x = s2d.width * 0.5;
		bmp.y = s2d.height * 0.5;
	}

	override function update(dt:Float) {
		super.update(dt);

		bmp.rotation += 0.1 * dt;
	}

	static function main() {
		new Main();
	}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions