コード例 #1
0
 @Override
 public CCDataObject data() {
   CCDataObject myResult = super.data();
   CCShaderObject myShaderObject = value();
   myResult.put("source", myShaderObject.sourceCode());
   return myResult;
 }
コード例 #2
0
 @Override
 public void data(CCDataObject theData) {
   CCShaderObject myShaderObject = value();
   if (theData.containsKey("source")) {
     myShaderObject.sourceCode(theData.getString("source"));
   } else {
     myShaderObject.sourceCode("");
   }
   onChange();
 }