コード例 #1
0
ファイル: GLTexture.cs プロジェクト: Wiladams/NewTOAPIA
        protected GLTexture(GraphicsInterface gi, TextureBindTarget target)
        {
            fGI = gi;
            fBindTarget = target;

            // Get a texture ID
            fTextureID = GetNewTextureID();

            // Bind the texture to create the default texture
            GI.BindTexture(BindTarget, TextureID);
        }
コード例 #2
0
 public void BindTexture(TextureBindTarget target, uint texture)
 {
     gl.glBindTexture((int)target, texture);
     CheckException();
 }
コード例 #3
0
ファイル: GL.cs プロジェクト: Wiladams/NewTOAPIA
 public static void BindTexture(TextureBindTarget target, uint texture)
 {
     gl.glBindTexture((int)target, texture);
 }
コード例 #4
0
ファイル: GLTexture2D.cs プロジェクト: Wiladams/NewTOAPIA
 protected GLTexture2D(GraphicsInterface gi, TextureBindTarget bindTarget)
     : base(gi, bindTarget)
 {
 }