OpenGL core profile version string: 3.3 (Core Profile) Mesa 12.0.6 OpenGL core profile shading language version string: 3.30 OpenGL core profile context flags: (none) OpenGL core profile profile mask: core profile OpenGL version string: 3.0 Mesa 12.0.6 OpenGL shading language version string: 1.30 OpenGL context flags: (none) OpenGL ES profile version string: OpenGL ES 3.0 Mesa 12.0.6 OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.00 |
const int visualAttr[]={GLX_RGBA, GLX_DOUBLEBUFFER, GLX_RED_SIZE, 8, GLX_GREEN_SIZE, 8, GLX_BLUE_SIZE, 8, None}; XVisualInfo* vinfo=glXChooseVisual(gp->dsp, screen, (int*)visualAttr); gppl->ctx=glXCreateContext(gp->dsp, vinfo, NULL, 1); XFree(vinfo); |
PFNGLXCREATECONTEXTATTRIBSARBPROC glXCreateContextAttribsARB=(PFNGLXCREATECONTEXTATTRIBSARBPROC)glXGetProcAddressARB((const uint8_t*)"glXCreateContextAttribsARB"); const int fbConfigAttr[]={GLX_X_RENDERABLE,True, GLX_DOUBLEBUFFER,True, GLX_RENDER_TYPE,GLX_RGBA_BIT, GLX_DRAWABLE_TYPE,GLX_WINDOW_BIT, GLX_X_VISUAL_TYPE, GLX_TRUE_COLOR, GLX_RED_SIZE, 8, GLX_GREEN_SIZE, 8, GLX_BLUE_SIZE, 8, None}; int fbCount; GLXFBConfig* fbc=glXChooseFBConfig(gp->dsp, screen,fbConfigAttr,&fbCount); const int contextAttribs[] = { GLX_CONTEXT_MAJOR_VERSION_ARB,3, GLX_CONTEXT_MINOR_VERSION_ARB,3, None }; GLXContext ctx = glXCreateContextAttribsARB(gp->dsp, fbc[0], 0,True, contextAttribs ); XFree(fbc); |
0:4(25): error: C-style initialization requires the GL_ARB_shading_language_420pack extension |
void main(){ const vec2 TexCoord[]={{-1,-1}, {-1,1}, {1,-1}, {1,1}}; gl_Position=vec4(TexCoord[gl_VertexID],0,1); outTexCoord=gl_Position.xy*vec2(0.5, -0.5)+vec2(0.5,0.5); } |
void main(){ vec2 TexCoord[4]; TexCoord[0]=vec2(-1,-1); TexCoord[1]=vec2(-1,1); TexCoord[2]=vec2(1,-1); TexCoord[3]=vec2(1,1); gl_Position=vec4(TexCoord[gl_VertexID],0,1); outTexCoord=gl_Position.xy*vec2(0.5, -0.5)+vec2(0.5,0.5); } |
活動與參展 (0)
└活動與參展資訊 (1)
└活動與製作後記 (11)
└販售會遊戲團調查 (14)
遊戲團隊「電子妖精實驗室」 (0)
└重要消息 (4)
└Cyber Sprite遊戲秘密 (2)
└製作進度 (26)
創作 (0)
└繪圖 (24)
└程式 (48)
└故事、劇本 (3)