Factor Documentation
|
Home
|
Glossary
|
Search
factorcode.org
reset-blend-mode ( texture -- )
Vocabulary
opengl.textures.private
Definition
USING:
accessors
images
kernel
opengl.gl
;
IN:
opengl.textures.private
:
reset-blend-mode
( texture -- )
image>>
dup
has-alpha?
[
premultiplied-alpha?>>
[
GL_SRC_ALPHA
GL_ONE_MINUS_SRC_ALPHA
glBlendFunc
]
when
]
[
drop
GL_BLEND
glEnable
]
if
;