com.gempukku.libgdx.graph.pipeline.TextureFrameBuffer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of libgdx-graph Show documentation
Show all versions of libgdx-graph Show documentation
libGDX-graph runtime library for pipeline rendering
The newest version!
package com.gempukku.libgdx.graph.pipeline;
import com.badlogic.gdx.graphics.Pixmap;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.glutils.FrameBuffer;
public class TextureFrameBuffer extends FrameBuffer {
public TextureFrameBuffer(int width, int height, Pixmap.Format format) {
super(format, width, height, true, false);
}
public Texture setColorTexture(Texture texture) {
begin();
attachFrameBufferColorTexture(texture);
end();
Texture oldTexture = textureAttachments.removeIndex(0);
textureAttachments.insert(0, texture);
return oldTexture;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy