Пример #1
0
 static partial void InitFrameBuffer()
 {
     CreateFramebuffers           = Get <CreateFramebuffersProc>("glCreateFramebuffers");
     DeleteFramebuffers           = Get <DeleteFramebuffersProc>("glDeleteFramebuffers");
     BindFramebuffer              = Get <BindFramebufferProc>("glBindFramebuffer");
     NamedFramebufferTexture      = Get <NamedFramebufferTextureProc>("glNamedFramebufferTexture");
     NamedFramebufferRenderbuffer = Get <NamedFramebufferRenderbufferProc>("glNamedFramebufferRenderbuffer");
 }
Пример #2
0
 static Gl()
 {
     _glBindFramebufferProc =
         (BindFramebufferProc)Marshal.GetDelegateForFunctionPointer(GetProcAddress("glBindFramebuffer"),
                                                                    typeof(BindFramebufferProc));
 }