Lines Matching defs:toProg

1814         CRProgram *toProg = to->currentVertexProgram;
1819 if (toProg->isARBprogram)
1872 CRProgram *toProg = to->currentVertexProgram;
1875 if (fromProg->id != toProg->id) {
1876 if (toProg->isARBprogram)
1877 diff_api.BindProgramARB(GL_VERTEX_PROGRAM_ARB, toProg->id);
1879 diff_api.BindProgramNV(GL_VERTEX_PROGRAM_NV, toProg->id);
1880 from->currentVertexProgram = toProg;
1885 if (toProg) {
1887 if (CHECKDIRTY(toProg->dirtyProgram, bitID)) {
1888 if (toProg->isARBprogram) {
1889 diff_api.ProgramStringARB( GL_VERTEX_PROGRAM_ARB, toProg->format, toProg->length, toProg->string );
1892 diff_api.LoadProgramNV( GL_VERTEX_PROGRAM_NV, toProg->id, toProg->length, toProg->string );
1894 CLEARDIRTY(toProg->dirtyProgram, nbitID);
1901 if (toProg->isARBprogram)
1918 if (CHECKDIRTY(toProg->dirtyParams, bitID)) {
1920 if (CHECKDIRTY(toProg->dirtyParam[i], bitID)) {
1921 if (toProg->isARBprogram)
1922 diff_api.ProgramLocalParameter4fvARB(GL_VERTEX_PROGRAM_ARB, i, toProg->parameters[i]);
1924 diff_api.ProgramLocalParameter4fvARB(GL_VERTEX_PROGRAM_NV, i, toProg->parameters[i]);
1925 CLEARDIRTY(toProg->dirtyParam[i], nbitID);
1928 CLEARDIRTY(toProg->dirtyParams, nbitID);
1939 CRProgram *toProg = to->currentFragmentProgram;
1941 if (fromProg->id != toProg->id) {
1942 diff_api.BindProgramNV(GL_FRAGMENT_PROGRAM_NV, toProg->id);
1943 from->currentFragmentProgram = toProg;
1948 if (toProg) {
1950 if (CHECKDIRTY(toProg->dirtyProgram, bitID)) {
1951 diff_api.LoadProgramNV( GL_FRAGMENT_PROGRAM_NV, toProg->id,
1952 toProg->length, toProg->string );
1953 CLEARDIRTY(toProg->dirtyProgram, nbitID);
1973 if (CHECKDIRTY(toProg->dirtyNamedParams, bitID)) {
1975 for (symbol = toProg->symbolTable; symbol; symbol = symbol->next) {
1978 diff_api.ProgramNamedParameter4fvNV(toProg->id, len,
1989 CLEARDIRTY(toProg->dirtyNamedParams, nbitID);
1993 if (CHECKDIRTY(toProg->dirtyParams, bitID)) {
1995 if (CHECKDIRTY(toProg->dirtyParam[i], bitID)) {
1997 toProg->parameters[i]);
1999 COPY_4V(fromProg->parameters[i], toProg->parameters[i]);
2001 CLEARDIRTY(toProg->dirtyParam[i], nbitID);
2004 CLEARDIRTY(toProg->dirtyParams, nbitID);
2011 CRProgram *toProg = to->currentFragmentProgram;
2013 if (fromProg->id != toProg->id) {
2014 diff_api.BindProgramARB(GL_FRAGMENT_PROGRAM_ARB, toProg->id);
2015 from->currentFragmentProgram = toProg;
2020 if (toProg) {
2022 if (CHECKDIRTY(toProg->dirtyProgram, bitID)) {
2023 diff_api.ProgramStringARB( GL_FRAGMENT_PROGRAM_ARB, toProg->format,
2024 toProg->length, toProg->string );
2025 CLEARDIRTY(toProg->dirtyProgram, nbitID);
2045 if (CHECKDIRTY(toProg->dirtyParams, bitID)) {
2047 if (CHECKDIRTY(toProg->dirtyParam[i], bitID)) {
2049 toProg->parameters[i]);
2051 COPY_4V(fromProg->parameters[i], toProg->parameters[i]);
2053 CLEARDIRTY(toProg->dirtyParam[i], nbitID);
2056 CLEARDIRTY(toProg->dirtyParams, nbitID);
2127 CRProgram *toProg = to->currentVertexProgram;
2129 if (fromProg->id != toProg->id) {
2130 if (toProg->isARBprogram)
2131 diff_api.BindProgramARB(GL_VERTEX_PROGRAM_ARB, toProg->id);
2133 diff_api.BindProgramNV(GL_VERTEX_PROGRAM_NV, toProg->id);
2138 if (toProg) {
2140 if (CHECKDIRTY(toProg->dirtyProgram, bitID)) {
2141 if (toProg->isARBprogram)
2142 diff_api.ProgramStringARB(GL_VERTEX_PROGRAM_ARB, toProg->format, toProg->length, toProg->string);
2144 diff_api.LoadProgramNV(GL_VERTEX_PROGRAM_NV, toProg->id, toProg->length, toProg->string);
2146 DIRTY(toProg->dirtyProgram, nbitID);
2153 if (toProg->isARBprogram)
2165 if (CHECKDIRTY(toProg->dirtyParams, bitID)) {
2167 if (CHECKDIRTY(toProg->dirtyParam[i], bitID)) {
2170 if (toProg->isARBprogram)
2171 diff_api.ProgramLocalParameter4fvARB(GL_VERTEX_PROGRAM_ARB, i, toProg->parameters[i]);
2173 diff_api.ProgramLocalParameter4fvARB(GL_VERTEX_PROGRAM_NV, i, toProg->parameters[i]);
2176 DIRTY(toProg->dirtyParams, nbitID);
2187 CRProgram *toProg = to->currentFragmentProgram;
2189 if (fromProg->id != toProg->id) {
2190 diff_api.BindProgramNV(GL_FRAGMENT_PROGRAM_NV, toProg->id);
2195 if (toProg) {
2197 if (CHECKDIRTY(toProg->dirtyProgram, bitID)) {
2198 diff_api.LoadProgramNV(GL_FRAGMENT_PROGRAM_NV, toProg->id, toProg->length, toProg->string);
2199 DIRTY(toProg->dirtyProgram, nbitID);
2215 if (CHECKDIRTY(toProg->dirtyNamedParams, bitID)) {
2217 for (symbol = toProg->symbolTable; symbol; symbol = symbol->next) {
2220 diff_api.ProgramNamedParameter4fvNV(toProg->id, len,
2226 DIRTY(toProg->dirtyNamedParams, nbitID);
2230 if (CHECKDIRTY(toProg->dirtyParams, bitID)) {
2232 if (CHECKDIRTY(toProg->dirtyParam[i], bitID)) {
2233 if (toProg->isARBprogram)
2234 diff_api.ProgramLocalParameter4fvARB(GL_FRAGMENT_PROGRAM_ARB, i, toProg->parameters[i]);
2236 diff_api.ProgramLocalParameter4fvARB(GL_FRAGMENT_PROGRAM_NV, i, toProg->parameters[i]);
2239 DIRTY(toProg->dirtyParams, nbitID);
2246 CRProgram *toProg = to->currentFragmentProgram;
2248 if (fromProg->id != toProg->id) {
2249 diff_api.BindProgramARB(GL_FRAGMENT_PROGRAM_ARB, toProg->id);
2254 if (toProg) {
2256 if (CHECKDIRTY(toProg->dirtyProgram, bitID)) {
2257 diff_api.ProgramStringARB(GL_FRAGMENT_PROGRAM_ARB, toProg->format, toProg->length, toProg->string);
2258 DIRTY(toProg->dirtyProgram, nbitID);
2273 if (CHECKDIRTY(toProg->dirtyParams, bitID)) {
2275 if (CHECKDIRTY(toProg->dirtyParam[i], bitID)) {
2276 diff_api.ProgramLocalParameter4fvARB(GL_FRAGMENT_PROGRAM_ARB, i, toProg->parameters[i]);
2277 DIRTY(toProg->dirtyParam[i], nbitID);
2280 DIRTY(toProg->dirtyParams, nbitID);