blending modes added (#54)

This commit is contained in:
itsmattkc
2018-06-23 17:01:19 -07:00
parent 3f918d6ce9
commit daeef50aa6
4 changed files with 40 additions and 2 deletions
+3 -1
View File
@@ -41,7 +41,7 @@ void ViewerWidget::initializeGL() {
glMatrixMode(GL_PROJECTION);
glEnable(GL_TEXTURE_2D);
glEnable(GL_BLEND);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
// glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
}
//void ViewerWidget::resizeGL(int w, int h)
@@ -58,6 +58,8 @@ void ViewerWidget::paintGL()
glClear(GL_COLOR_BUFFER_BIT);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
long playhead = panel_timeline->playhead;
handle_media(sequence, playhead, multithreaded);