Ejemplo n.º 1
0
 static Framebuffer()
 {
     glGenFramebuffers        = OpenGL.GetDelegateFor <OpenGL.glGenFramebuffersEXT>();
     glBindFramebuffer        = OpenGL.GetDelegateFor <OpenGL.glBindFramebufferEXT>();
     glFramebufferTexture2D   = OpenGL.GetDelegateFor <OpenGL.glFramebufferTexture2DEXT>();
     glCheckFramebufferStatus = OpenGL.GetDelegateFor <OpenGL.glCheckFramebufferStatusEXT>();
     glDeleteFramebuffers     = OpenGL.GetDelegateFor <OpenGL.glDeleteFramebuffersEXT>();
 }
Ejemplo n.º 2
0
 static Framebuffer()
 {
     glGenFramebuffers = OpenGL.GetDelegateFor<OpenGL.glGenFramebuffersEXT>();
     glBindFramebuffer = OpenGL.GetDelegateFor<OpenGL.glBindFramebufferEXT>();
     glFramebufferTexture2D = OpenGL.GetDelegateFor<OpenGL.glFramebufferTexture2DEXT>();
     glCheckFramebufferStatus = OpenGL.GetDelegateFor<OpenGL.glCheckFramebufferStatusEXT>();
     glDeleteFramebuffers = OpenGL.GetDelegateFor<OpenGL.glDeleteFramebuffersEXT>();
 }
Ejemplo n.º 3
0
 private void InitFramebufferExtensions()
 {
     if (glGenFramebuffers == null)
     {
         glGenFramebuffers        = OpenGL.GetDelegateFor <OpenGL.glGenFramebuffersEXT>();
         glBindFramebuffer        = OpenGL.GetDelegateFor <OpenGL.glBindFramebufferEXT>();
         glFramebufferTexture2D   = OpenGL.GetDelegateFor <OpenGL.glFramebufferTexture2DEXT>();
         glCheckFramebufferStatus = OpenGL.GetDelegateFor <OpenGL.glCheckFramebufferStatusEXT>();
         glDeleteFramebuffers     = OpenGL.GetDelegateFor <OpenGL.glDeleteFramebuffersEXT>();
     }
 }
Ejemplo n.º 4
0
        /// <summary>
        /// Create an empty framebuffer object.
        /// </summary>
        public Framebuffer()
        {
            if (glGenFramebuffers == null)
            {
                glGenFramebuffers      = OpenGL.GetDelegateFor <OpenGL.glGenFramebuffersEXT>();
                glBindFramebuffer      = OpenGL.GetDelegateFor <OpenGL.glBindFramebufferEXT>();
                glFramebufferTexture2D = OpenGL.GetDelegateFor <OpenGL.glFramebufferTexture2DEXT>();
                //glDrawBuffers = OpenGL.GetDelegateFor<OpenGL.glDrawBuffers>();
                glFramebufferRenderbuffer = OpenGL.GetDelegateFor <OpenGL.glFramebufferRenderbufferEXT>();
                glFramebufferParameteri   = OpenGL.GetDelegateFor <OpenGL.glFramebufferParameteri>();
                glCheckFramebufferStatus  = OpenGL.GetDelegateFor <OpenGL.glCheckFramebufferStatusEXT>();
            }

            glGenFramebuffers(1, frameBuffer);
        }