Example #1
0
        /// <summary>
        /// Assigns a cube texture to the shader parameter with the specified name.
        /// </summary>
        /// <param name="name">Name of the shader parameter.</param>
        /// <param name="value">Value of the parameter.</param>
        public void SetTextureCube(string name, TextureCube value)
        {
            IntPtr texturePtr = IntPtr.Zero;

            if (value != null)
            {
                texturePtr = value.GetCachedPtr();
            }

            Internal_SetTextureCube(mCachedPtr, name, texturePtr);
        }
Example #2
0
 private static extern void Internal_CreateInstance(TextureCube instance, PixelFormat format, int width,
                                                    int height, TextureUsage usage, int numSamples, bool hasMipmaps, bool gammaCorrection);
Example #3
0
 private static extern void Internal_CreateInstance(TextureCube instance, PixelFormat format, int width,
     int height, TextureUsage usage, int numSamples, bool hasMipmaps, bool gammaCorrection);
Example #4
0
        /// <summary>
        /// Assigns a cube texture to the shader parameter with the specified name.
        /// </summary>
        /// <param name="name">Name of the shader parameter.</param>
        /// <param name="value">Value of the parameter.</param>
        public void SetTextureCube(string name, TextureCube value)
        {
            IntPtr texturePtr = IntPtr.Zero;
            if (value != null)
                texturePtr = value.GetCachedPtr();

            Internal_SetTextureCube(mCachedPtr, name, texturePtr);
        }