Methods Summary |
---|
ScriptField_Light_s | getRSData()
if (mField != null) {
return mField;
}
RenderScriptGL rs = SceneManager.getRS();
if (rs == null) {
return null;
}
if (mField == null) {
mField = new ScriptField_Light_s(rs, 1);
mFieldData = new ScriptField_Light_s.Item();
}
updateRSData();
return mField;
|
abstract void | initLocalData()
|
public void | setColor(float r, float g, float b)
mColor.x = r;
mColor.y = g;
mColor.z = b;
updateRSData();
|
public void | setColor(android.renderscript.Float3 c)
setColor(c.x, c.y, c.z);
|
public void | setIntensity(float i)
mIntensity = i;
updateRSData();
|
public void | setName(java.lang.String n)
super.setName(n);
updateRSData();
|
public void | setTransform(Transform t)
mTransform = t;
updateRSData();
|
protected void | updateRSData()
if (mField == null) {
return;
}
RenderScriptGL rs = SceneManager.getRS();
mFieldData.transformMatrix = mTransform.getRSData().getAllocation();
mFieldData.name = getNameAlloc(rs);
mFieldData.color = mColor;
mFieldData.intensity = mIntensity;
initLocalData();
mField.set(mFieldData, 0, true);
|