This is what I do:
Code: Select all
Import "Opengl32.lib"
glBlendFuncSeparate(a.l,b.l,c.l,d.l)
EndImport
CompilerOptions :
Yep, it's a DLL since it 's a VST-plugin.
Anybody any idea?
Code: Select all
Import "Opengl32.lib"
glBlendFuncSeparate(a.l,b.l,c.l,d.l)
EndImport
Code: Select all
EnableExplicit
Prototype.i PROT_glBlendFuncSeparate(srcRGB.i,dstRGB.i,srcAlpha.i,dstAlpha.i)
Global glBlendFuncSeparate_.PROT_glBlendFuncSeparate
;you need to have a opengl context for this to work!
glBlendFuncSeparate_ = wglGetProcAddress_("glBlendFuncSeparate")
Debug glBlendFuncSeparate_
End
Great, never heard of wglGetProcAddress_() function.Mijikai wrote:Try this:Code: Select all
EnableExplicit Prototype.i PROT_glBlendFuncSeparate(srcRGB.i,dstRGB.i,srcAlpha.i,dstAlpha.i) Global glBlendFuncSeparate_.PROT_glBlendFuncSeparate ;you need to have a opengl context for this to work! glBlendFuncSeparate_ = wglGetProcAddress_("glBlendFuncSeparate") Debug glBlendFuncSeparate_ End
Oh, it's that simple!Mijikai wrote:OpenWindowedSrceen() (with OpenGL as subsystem) should create the context.
wglGetProcAddress_() should work then.