FileDocCategorySizeDatePackage
ProgramRaster.javaAPI DocAndroid 5.1 API4325Thu Mar 12 22:22:42 GMT 2015android.renderscript

ProgramRaster

public class ProgramRaster extends BaseObj
hide
deprecated
in API 16 Program raster is primarily used to specify whether point sprites are enabled and to control the culling mode. By default, back faces are culled.

Fields Summary
boolean
mPointSprite
CullMode
mCullMode
Constructors Summary
ProgramRaster(long id, RenderScript rs)

        super(id, rs);

        mPointSprite = false;
        mCullMode = CullMode.BACK;
    
Methods Summary
public static android.renderscript.ProgramRasterCULL_BACK(RenderScript rs)

deprecated
in API 16

        if(rs.mProgramRaster_CULL_BACK == null) {
            ProgramRaster.Builder builder = new ProgramRaster.Builder(rs);
            builder.setCullMode(CullMode.BACK);
            rs.mProgramRaster_CULL_BACK = builder.create();
        }
        return rs.mProgramRaster_CULL_BACK;
    
public static android.renderscript.ProgramRasterCULL_FRONT(RenderScript rs)

deprecated
in API 16

        if(rs.mProgramRaster_CULL_FRONT == null) {
            ProgramRaster.Builder builder = new ProgramRaster.Builder(rs);
            builder.setCullMode(CullMode.FRONT);
            rs.mProgramRaster_CULL_FRONT = builder.create();
        }
        return rs.mProgramRaster_CULL_FRONT;
    
public static android.renderscript.ProgramRasterCULL_NONE(RenderScript rs)

deprecated
in API 16

        if(rs.mProgramRaster_CULL_NONE == null) {
            ProgramRaster.Builder builder = new ProgramRaster.Builder(rs);
            builder.setCullMode(CullMode.NONE);
            rs.mProgramRaster_CULL_NONE = builder.create();
        }
        return rs.mProgramRaster_CULL_NONE;
    
public android.renderscript.ProgramRaster$CullModegetCullMode()

deprecated
in API 16 Specifies how triangles are culled based on their orientation
return
cull mode

        return mCullMode;
    
public booleanisPointSpriteEnabled()

deprecated
in API 16 Specifies whether vertices are rendered as screen aligned elements of a specified size
return
whether point sprites are enabled

        return mPointSprite;