All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jtransc.media.limelibgdx.soft.BitmapDataFloat Maven / Gradle / Ivy

Go to download

JVM AOT compiler currently generating JavaScript, Haxe, with initial focus on Kotlin and games.

There is a newer version: 0.6.7
Show newest version
package com.jtransc.media.limelibgdx.soft;

public class BitmapDataFloat {
	public float[] data;
	public int width;
	public int height;

	public BitmapDataFloat(int width, int height) {
		this.data = new float[width * height];
		this.width = width;
		this.height = height;
	}

	public void set(int x, int y, float value) {
		this.data[y * width + x] = value;
	}

	public float get(int x, int y) {
		return this.data[y * width + x];
	}

	public void fill(float value) {
		for (int n = 0; n < data.length; n++) data[n] = value;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy