Handbook
Glossary
blend-function? ( object -- ? )
Vocabulary
gpu
.
state
Inputs and outputs
object
an
object
?
a
boolean
Word description
Tests if the object is an instance of the
blend-function
class.
Definition
USING:
kernel
;
IN:
gpu.state
:
blend-function?
( object -- ? )
dup
func-one-minus-constant-alpha?
[
drop
t
]
[
dup
func-constant-alpha?
[
drop
t
]
[
dup
func-one-minus-dest-alpha?
[
drop
t
]
[
dup
func-dest-alpha?
[
drop
t
]
[
dup
func-one-minus-source-alpha?
[
drop
t
]
[
dup
func-source-alpha?
~quotation~
~quotation~
if
]
if
]
if
]
if
]
if
]
if
;