cocos2d x - OpenGL ES 2.0 with static (Fixed Function) pipeline API? -
i know opengl es 2.0 standard threw out methods can achieve same results keeping one. result why static pipeline removed specification , dynamic pipeline present. strange use code , works:
glcolor3f(0, 1, 1);//white glbegin(gl_line_loop); glvertex2f(lower.x, lower.y); glvertex2f(upper.x, lower.y); glvertex2f(upper.x, upper.y); glvertex2f(lower.x, upper.y); glend();
this api function use belong static pipeline, right draw without using shader. btw cocos2d-x 3.5 based on opengl es 2.0.
btw cocos2d-x 3.5 based on opengl es 2.0.
from cocos2d-x github page (my emphasis):
- opengl es 2.0 (mobile) / opengl 2.1 (desktop) based
you not using gles2 context @ all, gl 2.1 one, support of legacy features fixed function pipeline , immediate mode.
note immediate mode (glbegin
/glend
) never feature of gles, not in 1.x did implement fixed-function pipeline. exist in legacy desktop gl. code fail if run on mobile devices.
Comments
Post a Comment