FileDocCategorySizeDatePackage
TextureRenderTarget.javaAPI DocAndroid 5.1 API1715Thu Mar 12 22:22:44 GMT 2015com.android.scenegraph

TextureRenderTarget

public class TextureRenderTarget extends TextureBase
hide

Fields Summary
Constructors Summary
public TextureRenderTarget()

        super(ScriptC_export.const_TextureType_TEXTURE_RENDER_TARGET);
    
public TextureRenderTarget(Allocation tex)

        super(ScriptC_export.const_TextureType_TEXTURE_RENDER_TARGET);
        setTexture(tex);
    
Methods Summary
ScriptField_Texture_sgetRsData(boolean loadNow)

        if (mField != null) {
            return mField;
        }

        RenderScriptGL rs = SceneManager.getRS();
        if (rs == null) {
            return null;
        }

        mField = new ScriptField_Texture_s(rs, 1);
        mField.set(mData, 0, true);
        return mField;
    
voidload()

    
public voidsetTexture(Allocation tex)

        mData.texture = tex;
        if (mField != null) {
            mField.set_texture(0, mData.texture, true);
        }