コード例 #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Stereo3D"/> class.
        /// </summary>
        /// <param name="mode">The 3D rendering mode. anaglyph=0, oculus=1.</param>
        /// <param name="width">The width of the render output in pixels.</param>
        /// <param name="height">The height of the render output in pixels.</param>
        public Stereo3D(Stereo3DMode mode, int width, int height)
        {
            _activeMode = mode;

            _screenWidth  = width;
            _screenHeight = height;
        }
コード例 #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Stereo3D"/> class.
        /// </summary>
        /// <param name="mode">The 3D rendering mode. anaglyph=0, oculus=1.</param>
        /// <param name="width">The width of the render output in pixels.</param>
        /// <param name="height">The height of the render output in pixels.</param>
        public Stereo3D(Stereo3DMode mode, int width, int height)
        {
            _activeMode = mode;

            _screenWidth = width;
            _screenHeight = height;
        }
コード例 #3
0
 public StereoCameraRig(Stereo3DMode mode, int width, int height, float iod = 6.5f) : base(mode, width, height)
 {
     Iod = iod;
 }