Ignore:
Timestamp:
Mar 16, 2012, 3:03:52 AM (8 years ago)
Author:
ldelgass
Message:

No need to inline bind/unbind

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/vizservers/nanovis/NvStdVertexShader.cpp

    r2844 r2859  
    2121    _mvi_vert_std_param = cgGetNamedParameter(_cgVP, "modelViewInv");
    2222}
     23
     24void NvStdVertexShader::bind()
     25{
     26    cgGLSetStateMatrixParameter(_mvp_vert_std_param, CG_GL_MODELVIEW_PROJECTION_MATRIX, CG_GL_MATRIX_IDENTITY);
     27    cgGLSetStateMatrixParameter(_mvi_vert_std_param, CG_GL_MODELVIEW_MATRIX, CG_GL_MATRIX_INVERSE);
     28    cgGLBindProgram(_cgVP);
     29    cgGLEnableProfile(CG_PROFILE_VP30);
     30}
     31
     32void NvStdVertexShader::unbind()
     33{
     34    cgGLDisableProfile(CG_PROFILE_VP30);
     35}
Note: See TracChangeset for help on using the changeset viewer.