Blame |
Last modification |
View Log
| RSS feed
package com.gebauz.pingK.common.framework;
public class RenderTexture extends Texture
{
protected RenderTexture()
{
}
public static RenderTexture create(int w, int h)
{
RenderTexture result = null;
if (GLUtil.checkExtension("GL_OES_framebuffer_object"))
{
result = new RenderTextureFbo();
}
else
{
result = new RenderTextureBasic();
}
result.createTarget(w, h);
return result;
}
public void createTarget(int w, int h)
{
width = w;
height = h;
}
public void activate()
{
}
public void deactivate()
{
}
}