Ejemplo n.º 1
0
 public void DrawRandar(
     int ShaderMode,
     float[] mModelMatrix,
     float[] mViewMatrix,
     float[] mProjectionMatrix,
     ElementInfo mElementInfo,
     int mTextureId,
     int mType) {
   if (ShaderMode == Mask.Square) {
     mSquareBorderMask.DrawRandar(mViewMatrix, mProjectionMatrix, mElementInfo);
   } else if (ShaderMode == Mask.Circle) {
     mCircleBorderMask.DrawRandar(mViewMatrix, mProjectionMatrix, mElementInfo, mTextureId);
   } else if (ShaderMode == Mask.Bar) {
     mTopBottomBarMask.DrawRandar(mViewMatrix, mProjectionMatrix, mElementInfo, mType);
   } else if (ShaderMode == Mask.Filter) {
     mFilterMask.DrawRandar(mModelMatrix, mViewMatrix, mProjectionMatrix, mElementInfo);
   }
 }
Ejemplo n.º 2
0
 public void CalcVertices() {
   mSquareBorderMask.CalcVertices();
   mCircleBorderMask.CalcVertices();
   mTopBottomBarMask.CalcVertices();
   mFilterMask.CalcVertices();
 }