Advertisement
Guest User

Untitled

a guest
Aug 17th, 2017
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. std::cout << "water::draw_area line 200" << std::endl;
  2. glBlendFunc(GL_ONE, GL_ONE);
  3. std::cout << "water::draw_area line 202" << std::endl;
  4. #if defined(GL_OES_blend_subtract)
  5. glBlendEquationOES(GL_FUNC_REVERSE_SUBTRACT_OES);
  6. #elif defined(TARGET_PANDORA)
  7. std::cout << "water::draw_area line 206" << std::endl;
  8. if (glBlendEquationOES){
  9. std::cout << "water::draw_area line 208" << std::endl;
  10. glBlendEquationOES(GL_FUNC_REVERSE_SUBTRACT_OES);
  11. }
  12. std::cout << "water::draw_area line 211" << std::endl;
  13. #else
  14. if(GLEW_EXT_blend_equation_separate && (GLEW_ARB_imaging || GLEW_VERSION_1_4)) {
  15. glBlendEquation(GL_FUNC_REVERSE_SUBTRACT);
  16. } else {
  17. const int max_color = std::max(water_color[0], std::max(water_color[1], water_color[2]));
  18. water_color[0] = (max_color - water_color[0])/8;
  19. water_color[1] = (max_color - water_color[1])/8;
  20. water_color[2] = (max_color - water_color[2])/8;
  21. }
  22. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement