Blending modes

18 views
Skip to first unread message

Lily Surette

unread,
Apr 20, 2012, 10:21:59 PM4/20/12
to Rabbyt
A quick question for the Marshalls: is there any plan on adding
different blending modes into Rabbyt sprites? Because that's the one
thing I wish it had at this point - it's the only thing it lacks that
Pygame has. I'm not sure how it's typically done in OpenGL, but I'd
imagine there's some kind of functionality in the spec by this point.

Also, as an aside, any chance we'll see 0.8.4 soon?

Matthew Marshall

unread,
May 5, 2012, 11:06:29 PM5/5/12
to rab...@googlegroups.com
Lily,

Rabbyt itself doesn't have support for different blend modes, but if
you change the OpenGL blend mode it will affect rabbyt sprites. For
example, to draw your sprites with additive blending:

from OpenGL import glBlendFunc, GL_ONE

...

glBlendFunc(GL_ONE, GL_ONE)
some_sprite.render()

MWM
> --
> You received this message because you are subscribed to the Google Groups "Rabbyt" group.
> To post to this group, send email to rab...@googlegroups.com.
> To unsubscribe from this group, send email to rabbyt+un...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/rabbyt?hl=en.
>

Temia Eszteri

unread,
May 5, 2012, 11:27:18 PM5/5/12
to rab...@googlegroups.com
Well, it's a bit rough of a workaround, but I could make use of this
for the time being! I was mostly just wondering if there were any
*future* plans, that's all. ;)

~Lily
--
When on earth, do as the earthlings do.
Reply all
Reply to author
Forward
0 new messages