Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- std::cout << "water::draw_area line 200" << std::endl;
- glBlendFunc(GL_ONE, GL_ONE);
- std::cout << "water::draw_area line 202" << std::endl;
- #if defined(GL_OES_blend_subtract)
- glBlendEquationOES(GL_FUNC_REVERSE_SUBTRACT_OES);
- #elif defined(TARGET_PANDORA)
- std::cout << "water::draw_area line 206" << std::endl;
- if (glBlendEquationOES){
- std::cout << "water::draw_area line 208" << std::endl;
- glBlendEquationOES(GL_FUNC_REVERSE_SUBTRACT_OES);
- }
- std::cout << "water::draw_area line 211" << std::endl;
- #else
- if(GLEW_EXT_blend_equation_separate && (GLEW_ARB_imaging || GLEW_VERSION_1_4)) {
- glBlendEquation(GL_FUNC_REVERSE_SUBTRACT);
- } else {
- const int max_color = std::max(water_color[0], std::max(water_color[1], water_color[2]));
- water_color[0] = (max_color - water_color[0])/8;
- water_color[1] = (max_color - water_color[1])/8;
- water_color[2] = (max_color - water_color[2])/8;
- }
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement