public void OnApplyMatrix(/* final */ GL10 pGL) { GLHelper.SetProjectionIdentityMatrix(pGL); //pGL.GlOrthof(this.getMinX(), this.getMaxX(), this.getMaxY(), this.getMinY(), this.mNearZ, this.mFarZ); pGL.GlOrthof(this.MinX, this.MaxX, this.MaxY, this.MinY, this.mNearZ, this.mFarZ); /* final */ float rotation = this.mRotation; if (rotation != 0) { //this.ApplyRotation(pGL, this.getCenterX(), this.getCenterY(), rotation); this.ApplyRotation(pGL, this.CenterX, this.CenterY, rotation); } }
public void OnApplyCameraSceneMatrix(/* final */ GL10 pGL) { GLHelper.SetProjectionIdentityMatrix(pGL); /* final */ float width = this.mMaxX - this.mMinX; /* final */ float height = this.mMaxY - this.mMinY; pGL.GlOrthof(0, width, height, 0, this.mNearZ, this.mFarZ); /* final */ float cameraSceneRotation = this.mCameraSceneRotation; if (cameraSceneRotation != 0) { this.ApplyRotation(pGL, width * 0.5f, height * 0.5f, cameraSceneRotation); } }