Lines Matching refs:SHADER
150 GL_APICALL void GL_APIENTRY glAttachShader(GLuint program, GLuint shader){
153 const GLuint globalProgramName = ctx->shareGroup()->getGlobalName(SHADER,program);
155 const GLuint globalShaderName = ctx->shareGroup()->getGlobalName(SHADER,shader);
158 ObjectDataPtr programData = ctx->shareGroup()->getObjectData(SHADER,program);
159 ObjectDataPtr shaderData = ctx->shareGroup()->getObjectData(SHADER,shader);
167 pData->attachShader(shader,shaderType);
177 const GLuint globalProgramName = ctx->shareGroup()->getGlobalName(SHADER,program);
179 ObjectDataPtr objData = ctx->shareGroup()->getObjectData(SHADER,program);
347 GL_APICALL void GL_APIENTRY glCompileShader(GLuint shader){
350 const GLuint globalShaderName = ctx->shareGroup()->getGlobalName(SHADER,shader);
352 ObjectDataPtr objData = ctx->shareGroup()->getObjectData(SHADER,shader);
400 SHADER, 0, true);
401 ctx->shareGroup()->replaceGlobalName(SHADER,localProgramName,globalProgramName);
402 ctx->shareGroup()->setObjectData(SHADER,localProgramName,ObjectDataPtr(programInfo));
416 const GLuint localShaderName = ctx->shareGroup()->genName(SHADER, 0, true);
418 ctx->shareGroup()->replaceGlobalName(SHADER,localShaderName,globalShaderName);
419 ctx->shareGroup()->setObjectData(SHADER,localShaderName,ObjectDataPtr(sp));
494 const GLuint globalProgramName = ctx->shareGroup()->getGlobalName(SHADER,program);
496 ctx->shareGroup()->deleteName(SHADER,program);
501 GL_APICALL void GL_APIENTRY glDeleteShader(GLuint shader){
503 if(shader && ctx->shareGroup().Ptr()) {
504 const GLuint globalShaderName = ctx->shareGroup()->getGlobalName(SHADER,shader);
506 ctx->shareGroup()->deleteName(SHADER,shader);
525 GL_APICALL void GL_APIENTRY glDetachShader(GLuint program, GLuint shader){
528 const GLuint globalProgramName = ctx->shareGroup()->getGlobalName(SHADER,program);
530 const GLuint globalShaderName = ctx->shareGroup()->getGlobalName(SHADER,shader);
533 ObjectDataPtr objData = ctx->shareGroup()->getObjectData(SHADER,program);
538 SET_ERROR_IF(!programData->isAttached(shader),GL_INVALID_OPERATION);
539 programData->detachShader(shader);
569 //Enable texture generation for GL_POINTS and gl_PointSize shader variable
786 const GLuint globalProgramName = ctx->shareGroup()->getGlobalName(SHADER,program);
788 ObjectDataPtr objData = ctx->shareGroup()->getObjectData(SHADER,program);
797 const GLuint globalProgramName = ctx->shareGroup()->getGlobalName(SHADER,program);
799 ObjectDataPtr objData = ctx->shareGroup()->getObjectData(SHADER,program);
808 const GLuint globalProgramName = ctx->shareGroup()->getGlobalName(SHADER,program);
811 ObjectDataPtr objData = ctx->shareGroup()->getObjectData(SHADER,program);
816 shaders[i] = ctx->shareGroup()->getLocalName(SHADER,shaders[i]);
824 const GLuint globalProgramName = ctx->shareGroup()->getGlobalName(SHADER,program);
826 ObjectDataPtr objData = ctx->shareGroup()->getObjectData(SHADER,program);
958 *params = ctx->shareGroup()->getLocalName(SHADER,i);
1138 const GLuint globalProgramName = ctx->shareGroup()->getGlobalName(SHADER,program);
1143 ObjectDataPtr objData = ctx->shareGroup()->getObjectData(SHADER,program);
1153 ObjectDataPtr objData = ctx->shareGroup()->getObjectData(SHADER,program);
1165 ObjectDataPtr objData = ctx->shareGroup()->getObjectData(SHADER,program);
1182 const GLuint globalProgramName = ctx->shareGroup()->getGlobalName(SHADER,program);
1184 ObjectDataPtr objData = ctx->shareGroup()->getObjectData(SHADER,program);
1211 GL_APICALL void GL_APIENTRY glGetShaderiv(GLuint shader, GLenum pname, GLint* params){
1214 const GLuint globalShaderName = ctx->shareGroup()->getGlobalName(SHADER,shader);
1219 ObjectDataPtr objData = ctx->shareGroup()->getObjectData(SHADER,shader);
1234 GL_APICALL void GL_APIENTRY glGetShaderInfoLog(GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* infolog){
1237 const GLuint globalShaderName = ctx->shareGroup()->getGlobalName(SHADER,shader);
1239 ObjectDataPtr objData = ctx->shareGroup()->getObjectData(SHADER,shader);
1291 GL_APICALL void GL_APIENTRY glGetShaderSource(GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* source){
1294 const GLuint globalShaderName = ctx->shareGroup()->getGlobalName(SHADER,shader);
1296 ObjectDataPtr objData = ctx->shareGroup()->getObjectData(SHADER,shader);
1354 const GLuint globalProgramName = ctx->shareGroup()->getGlobalName(SHADER,program);
1356 ObjectDataPtr objData = ctx->shareGroup()->getObjectData(SHADER,program);
1368 const GLuint globalProgramName = ctx->shareGroup()->getGlobalName(SHADER,program);
1370 ObjectDataPtr objData = ctx->shareGroup()->getObjectData(SHADER,program);
1381 const GLuint globalProgramName = ctx->shareGroup()->getGlobalName(SHADER,program);
1383 ObjectDataPtr objData = ctx->shareGroup()->getObjectData(SHADER,program);
1537 ctx->shareGroup()->isObject(SHADER,program)) {
1538 const GLuint globalProgramName = ctx->shareGroup()->getGlobalName(SHADER,program);
1544 GL_APICALL GLboolean GL_APIENTRY glIsShader(GLuint shader){
1546 if(shader && ctx->shareGroup().Ptr() &&
1547 ctx->shareGroup()->isObject(SHADER,shader)) {
1548 const GLuint globalShaderName = ctx->shareGroup()->getGlobalName(SHADER,shader);
1563 const GLuint globalProgramName = ctx->shareGroup()->getGlobalName(SHADER,program);
1566 ObjectDataPtr objData = ctx->shareGroup()->getObjectData(SHADER,program);
1576 GLuint fragmentShaderGlobal = ctx->shareGroup()->getGlobalName(SHADER,fragmentShader);
1577 GLuint vertexShaderGlobal = ctx->shareGroup()->getGlobalName(SHADER,vertexShader);
1682 const GLuint globalShaderName = ctx->shareGroup()->getGlobalName(SHADER,shaders[i]);
1689 GL_APICALL void GL_APIENTRY glShaderSource(GLuint shader, GLsizei count, const GLchar** string, const GLint* length){
1693 const GLuint globalShaderName = ctx->shareGroup()->getGlobalName(SHADER,shader);
1695 ObjectDataPtr objData = ctx->shareGroup()->getObjectData(SHADER,shader);
1912 const GLuint globalProgramName = ctx->shareGroup()->getGlobalName(SHADER,program);
1914 ObjectDataPtr objData = ctx->shareGroup()->getObjectData(SHADER,program);
1923 const GLuint globalProgramName = ctx->shareGroup()->getGlobalName(SHADER,program);
1925 ObjectDataPtr objData = ctx->shareGroup()->getObjectData(SHADER,program);