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