Back to project page TinyVoxel.
The source code is released under:
GNU General Public License
If you think the Android project TinyVoxel listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.toet.TinyVoxel.Util; /*from w ww. j a v a 2s .c o m*/ import com.badlogic.gdx.graphics.GL20; import com.badlogic.gdx.graphics.GLTexture; /** * Created by Kajos on 8/30/2014. */ public class NonBackedTexture extends GLTexture { int width, height; public NonBackedTexture() { super(GL20.GL_TEXTURE_2D, createGLHandle()); } public void setWidth(int width) { this.width = width; } public void setHeight(int height) { this.height = height; } @Override public int getWidth() { return width; } @Override public int getHeight() { return height; } @Override public int getDepth() { return 0; } @Override public boolean isManaged() { return false; } @Override protected void reload() { } }