[jitter] Re: lua questions
yair reshef
yair99 at gmail.com
Wed Jan 2 10:05:14 MST 2008
- Previous message: [jitter] Re: lua questions
- Next message: [jitter] Re: lua questions
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
ye, i got an error. im on beta4
ob3d_draw_preamble initial: GL Error: Invalid enumeration
function init()
--initialize the dispaly list
if(this.context ~= 0) then
BuildLists()
gl.Enable("BLEND")
gl.BlendFunc("ONE", "ONE_MINUS_SRC_ALPHA")
--gl.ClearColor(1,1,0,1)
end
end
On Jan 2, 2008 6:42 PM, Wesley Smith <wesley.hoke at gmail.com> wrote:
> On Jan 2, 2008 4:51 AM, Erik Mijwaard <erik at videotroopers.com> wrote:
> >
> >
> > try this:
> >
> > gl.BlendFunc(ONE, ONE_MINUS_SRC_ALPHA)
> >
>
> Indeed, this is the way to go. The Jitter constants for blend
> functions just enumerate the list of enums. In jit.gl.lua, the enums
> have become strings corresponding to the name of the enum. BTW, if
> you get errors from the ONE enum and you have the latest version of
> jit.gl.lua for your platform, let me know.
>
> wes
> _______________________________________________
> jitter mailing list
> jitter at cycling74.com
> http://www.cycling74.com/mailman/listinfo/jitter
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.cycling74.com/pipermail/jitter/attachments/20080102/da3820da/attachment.htm
- Previous message: [jitter] Re: lua questions
- Next message: [jitter] Re: lua questions
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
