Ejemplo n.º 1
0
        /// <summary>
        /// Gets a boolean value for the specified frustum attribute.
        /// </summary>
        ///
        /// <param name="attribute">
        /// The frustum attribute to retrieve the boolean value for.
        /// </param>
        ///
        /// <returns>
        /// The boolean value for the specified frustum attribute.
        /// </returns>
        public bool GetAttributeBool(ZFrustumAttribute attribute)
        {
            bool value = false;

            ZPlugin.LogOnError(ZPlugin.GetFrustumAttributeB(
                                   this._nativePtr, attribute, out value), "GetFrustumAttributeB");

            return(value);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Gets a float value for the specified frustum attribute.
        /// </summary>
        ///
        /// <param name="attribute">
        /// The frustum attribute to retrieve the float value for.
        /// </param>
        ///
        /// <returns>
        /// The float value for the specified frustum attribute.
        /// </returns>
        public float GetAttributeFloat(ZFrustumAttribute attribute)
        {
            float value = 0;

            ZPlugin.LogOnError(ZPlugin.GetFrustumAttributeF32(
                                   this._nativePtr, attribute, out value),
                               "GetFrustumAttributeF32");

            return(value);
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Sets the boolean value for the specified frustum attribute.
 /// </summary>
 ///
 /// <param name="attribute">
 /// The frustum attribute to update.
 /// </param>
 /// <param name="value">
 /// The boolean value to update the frustum attribute with.
 /// </param>
 public void SetAttribute(ZFrustumAttribute attribute, bool value)
 {
     ZPlugin.LogOnError(ZPlugin.SetFrustumAttributeB(
                            this._nativePtr, attribute, value), "SetFrustumAttributeB");
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Sets the float value for the specified frustum attribute.
 /// </summary>
 ///
 /// <param name="attribute">
 /// The frustum attribute to update.
 /// </param>
 /// <param name="value">
 /// The float value to update the frustum attribute with.
 /// </param>
 public void SetAttribute(ZFrustumAttribute attribute, float value)
 {
     ZPlugin.LogOnError(ZPlugin.SetFrustumAttributeF32(
                            this._nativePtr, attribute, value), "SetFrustumAttributeF32");
 }