• R/O
  • SSH
  • HTTPS

hamigaki: 提交


Commit MetaInfo

修訂1625 (tree)
時間2008-04-29 21:58:19
作者hamigaki

Log Message

added alpha blending

Change Summary

差異

--- sandbox/trunk/tools/gtk_test/png_test.cpp (revision 1624)
+++ sandbox/trunk/tools/gtk_test/png_test.cpp (revision 1625)
@@ -58,8 +58,8 @@
5858 ::glClearColor(0.0f, 0.0f, 1.0f, 1.0f);
5959 ::glClear(GL_COLOR_BUFFER_BIT);
6060
61- ::glAlphaFunc(GL_GREATER, 0.1f);
62- ::glEnable(GL_ALPHA_TEST);
61+ ::glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
62+ ::glEnable(GL_BLEND);
6363 ::glEnable(GL_TEXTURE_2D);
6464 texture_.bind();
6565
Show on old repository browser