コード例 #1
0
ファイル: Framebuffer.cs プロジェクト: vipyami/OpenGL.Net
 public void AttachDepth(Texture2d texture, uint level)
 {
     AttachDepth(new TextureAttachment(texture, level));
 }
コード例 #2
0
ファイル: Framebuffer.cs プロジェクト: vipyami/OpenGL.Net
 public void AttachDepth(Texture2d texture)
 {
     AttachDepth(texture, 0);
 }
コード例 #3
0
ファイル: Texture2d.cs プロジェクト: yaram/OpenGL.Net
 /// <summary>
 /// Construct a EmptyTechnique.
 /// </summary>
 /// <param name="texture">
 /// The <see cref="Texture2d"/> affected by this Technique.
 /// </param>
 /// <param name="target">
 /// A <see cref="TextureTarget"/> that specify the texture target.
 /// </param>
 /// <param name="level">
 /// The specific level of the target to define. Defaults to zero.
 /// </param>
 /// <param name="pixelFormat">
 /// The texture pixel format.
 /// </param>
 /// <param name="image">
 /// The <see cref="Image"/> holding the texture data.
 /// </param>
 public ImageTechnique(Texture2d texture, TextureTarget target, PixelLayout pixelFormat, Image image) :
     this(texture, target, 0, pixelFormat, image)
 {
 }
コード例 #4
0
ファイル: Framebuffer.cs プロジェクト: vipyami/OpenGL.Net
 /// <summary>
 /// Attach a 2D texture image to color buffer.
 /// </summary>
 /// <param name="texture">
 /// A <see cref="Texture"/> which will be used for read/write operation on this RenderFrambuffer.
 /// </param>
 /// <param name="level">
 /// A <see cref="UInt32"/> that specify the texture level to bind.
 /// </param>
 /// <param name="attachmentIndex">
 /// A <see cref="UInt32"/> that specify the framebuffer color attachment index.
 /// </param>
 public void AttachColor(uint attachmentIndex, Texture2d texture, uint level)
 {
     AttachColor(attachmentIndex, new TextureAttachment(texture, level));
 }
コード例 #5
0
ファイル: Texture2d.cs プロジェクト: yaram/OpenGL.Net
 /// <summary>
 /// Construct a ImmutableEmptyTechnique.
 /// </summary>
 /// <param name="texture">
 /// The <see cref="Texture2d"/> affected by this Technique.
 /// </param>
 /// <param name="target">
 /// A <see cref="TextureTarget"/> that specify the texture target.
 /// </param>
 /// <param name="pixelFormat">
 /// The texture pixel format.
 /// </param>
 /// <param name="width">
 /// The width of the texture.
 /// </param>
 /// <param name="height">
 /// The height of the texture.
 /// </param>
 public ImmutableEmptyTechnique(Texture2d texture, TextureTarget target, PixelLayout pixelFormat, uint width, uint height) :
     this(texture, target, pixelFormat, width, height, GetMipmapCompleteLevels(width, height, 1, 0))
 {
 }