Ignore:
Timestamp:
Apr 28, 2011, 9:01:37 PM (9 years ago)
Author:
sam
Message:

ps3: start a minimal PS3 port using PSGL, but not CG yet.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/scene.cpp

    r745 r758  
    158158    attr_tex = stdshader->GetAttribLocation("in_TexCoord");
    159159
     160#if !defined __CELLOS_LV2__ // Use cgGetNamedParameter etc.
    160161    stdshader->Bind();
    161162    uni_mat = stdshader->GetUniformLocation("model_matrix");
     
    163164    uni_tex = stdshader->GetUniformLocation("in_Texture");
    164165    glUniform1i(uni_tex, 0);
     166#endif
    165167
    166168    glEnable(GL_TEXTURE_2D);
     
    209211        glBindVertexArray(data->vao);
    210212#endif
     213#if !defined __CELLOS_LV2__ // Use cgGLEnableClientState etc.
    211214        glEnableVertexAttribArray(attr_pos);
    212215        glEnableVertexAttribArray(attr_tex);
     
    221224                     texture, GL_STATIC_DRAW);
    222225        glVertexAttribPointer(attr_tex, 2, GL_FLOAT, GL_FALSE, 0, 0);
     226#endif
    223227
    224228        /* Draw arrays */
     
    228232        glBindVertexArray(0);
    229233#endif
     234#if !defined __CELLOS_LV2__ // Use cgGLEnableClientState etc.
    230235        glDisableVertexAttribArray(attr_pos);
    231236        glDisableVertexAttribArray(attr_tex);
     237#endif
    232238
    233239        free(vertex);
Note: See TracChangeset for help on using the changeset viewer.