Exemplo n.º 1
0
 public static extern void bgfx_calc_texture_size(ref Texture.TextureInfo info, ushort width, ushort height, ushort depth, [MarshalAs(UnmanagedType.U1)] bool cubeMap, [MarshalAs(UnmanagedType.U1)] bool hasMips, ushort numLayers, TextureFormat format);
Exemplo n.º 2
0
        /// <summary>
        /// Gets the texture associated with a particular framebuffer attachment.
        /// </summary>
        /// <param name="attachment">The attachment index.</param>
        /// <returns>The texture associated with the attachment.</returns>
        public Texture GetTexture(int attachment = 0)
        {
            var info = new Texture.TextureInfo();

            return(new Texture(NativeMethods.bgfx_get_texture(handle, (byte)attachment), ref info));
        }
Exemplo n.º 3
0
 public static extern ushort bgfx_create_texture(MemoryBlock.DataPtr *mem, TextureFlags flags, byte skip, out Texture.TextureInfo info);
Exemplo n.º 4
0
 public static extern void bgfx_calc_texture_size(ref Texture.TextureInfo info, ushort width, ushort height, ushort depth, [MarshalAs(UnmanagedType.U1)] bool cubeMap, byte mipCount, TextureFormat format);