~ubuntu-branches/debian/experimental/openscenegraph/experimental

« back to all changes in this revision

Viewing changes to OpenSceneGraph/src/osg/Uniform.cpp

  • Committer: Package Import Robot
  • Author(s): Alberto Luaces Fernández
  • Date: 2014-08-01 20:41:55 UTC
  • mfrom: (1.4.4) (24.1.14 sid)
  • Revision ID: package-import@ubuntu.com-20140801204155-ykq00e43h6eg0ms3
Tags: 3.2.1-1
* Acknowledge NMU.
* New upstream version.
* Removal of old patches.
* Confirmation that (LP: #1339264) is already closed.
* Removed obsolete conflict rules.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2153
2153
{
2154
2154
    if( index>=getNumElements() || !isCompatibleType(FLOAT_MAT2) ) return false;
2155
2155
    unsigned int j = index * getTypeNumComponents(getType());
2156
 
    m2.base_class::set( &((*_floatArray)[j]) );
 
2156
    m2.Matrix2::base_class::set( &((*_floatArray)[j]) );
2157
2157
    return true;
2158
2158
}
2159
2159
 
2161
2161
{
2162
2162
    if( index>=getNumElements() || !isCompatibleType(FLOAT_MAT3) ) return false;
2163
2163
    unsigned int j = index * getTypeNumComponents(getType());
2164
 
    m3.base_class::set( &((*_floatArray)[j]) );
 
2164
    m3.Matrix3::base_class::set( &((*_floatArray)[j]) );
2165
2165
    return true;
2166
2166
}
2167
2167
 
2177
2177
{
2178
2178
    if( index>=getNumElements() || !isCompatibleType(FLOAT_MAT2x3) ) return false;
2179
2179
    unsigned int j = index * getTypeNumComponents(getType());
2180
 
    m2x3.base_class::set( &((*_floatArray)[j]) );
 
2180
    m2x3.Matrix2x3::base_class::set( &((*_floatArray)[j]) );
2181
2181
    return true;
2182
2182
}
2183
2183
 
2185
2185
{
2186
2186
    if( index>=getNumElements() || !isCompatibleType(FLOAT_MAT2x4) ) return false;
2187
2187
    unsigned int j = index * getTypeNumComponents(getType());
2188
 
    m2x4.base_class::set( &((*_floatArray)[j]) );
 
2188
    m2x4.Matrix2x4::base_class::set( &((*_floatArray)[j]) );
2189
2189
    return true;
2190
2190
}
2191
2191
 
2193
2193
{
2194
2194
    if( index>=getNumElements() || !isCompatibleType(FLOAT_MAT3x2) ) return false;
2195
2195
    unsigned int j = index * getTypeNumComponents(getType());
2196
 
    m3x2.base_class::set( &((*_floatArray)[j]) );
 
2196
    m3x2.Matrix3x2::base_class::set( &((*_floatArray)[j]) );
2197
2197
    return true;
2198
2198
}
2199
2199
 
2201
2201
{
2202
2202
    if( index>=getNumElements() || !isCompatibleType(FLOAT_MAT3x4) ) return false;
2203
2203
    unsigned int j = index * getTypeNumComponents(getType());
2204
 
    m3x4.base_class::set( &((*_floatArray)[j]) );
 
2204
    m3x4.Matrix3x4::base_class::set( &((*_floatArray)[j]) );
2205
2205
    return true;
2206
2206
}
2207
2207
 
2209
2209
{
2210
2210
    if( index>=getNumElements() || !isCompatibleType(FLOAT_MAT4x2) ) return false;
2211
2211
    unsigned int j = index * getTypeNumComponents(getType());
2212
 
    m4x2.base_class::set( &((*_floatArray)[j]) );
 
2212
    m4x2.Matrix4x2::base_class::set( &((*_floatArray)[j]) );
2213
2213
    return true;
2214
2214
}
2215
2215
 
2217
2217
{
2218
2218
    if( index>=getNumElements() || !isCompatibleType(FLOAT_MAT4x3) ) return false;
2219
2219
    unsigned int j = index * getTypeNumComponents(getType());
2220
 
    m4x3.base_class::set( &((*_floatArray)[j]) );
 
2220
    m4x3.Matrix4x3::base_class::set( &((*_floatArray)[j]) );
2221
2221
    return true;
2222
2222
}
2223
2223
 
2263
2263
{
2264
2264
    if( index>=getNumElements() || !isCompatibleType(DOUBLE_MAT2) ) return false;
2265
2265
    unsigned int j = index * getTypeNumComponents(getType());
2266
 
    m2.base_class::set( &((*_doubleArray)[j]) );
 
2266
    m2.Matrix2d::base_class::set( &((*_doubleArray)[j]) );
2267
2267
    return true;
2268
2268
}
2269
2269
 
2271
2271
{
2272
2272
    if( index>=getNumElements() || !isCompatibleType(DOUBLE_MAT3) ) return false;
2273
2273
    unsigned int j = index * getTypeNumComponents(getType());
2274
 
    m3.base_class::set( &((*_doubleArray)[j]) );
 
2274
    m3.Matrix3d::base_class::set( &((*_doubleArray)[j]) );
2275
2275
    return true;
2276
2276
}
2277
2277
 
2291
2291
{
2292
2292
    if( index>=getNumElements() || !isCompatibleType(DOUBLE_MAT2x3) ) return false;
2293
2293
    unsigned int j = index * getTypeNumComponents(getType());
2294
 
    m2x3.base_class::set( &((*_doubleArray)[j]) );
 
2294
    m2x3.Matrix2x3d::base_class::set( &((*_doubleArray)[j]) );
2295
2295
    return true;
2296
2296
}
2297
2297
 
2299
2299
{
2300
2300
    if( index>=getNumElements() || !isCompatibleType(DOUBLE_MAT2x4) ) return false;
2301
2301
    unsigned int j = index * getTypeNumComponents(getType());
2302
 
    m2x4.base_class::set( &((*_doubleArray)[j]) );
 
2302
    m2x4.Matrix2x4d::base_class::set( &((*_doubleArray)[j]) );
2303
2303
    return true;
2304
2304
}
2305
2305
 
2307
2307
{
2308
2308
    if( index>=getNumElements() || !isCompatibleType(DOUBLE_MAT3x2) ) return false;
2309
2309
    unsigned int j = index * getTypeNumComponents(getType());
2310
 
    m3x2.base_class::set( &((*_doubleArray)[j]) );
 
2310
    m3x2.Matrix3x2d::base_class::set( &((*_doubleArray)[j]) );
2311
2311
    return true;
2312
2312
}
2313
2313
 
2315
2315
{
2316
2316
    if( index>=getNumElements() || !isCompatibleType(DOUBLE_MAT3x4) ) return false;
2317
2317
    unsigned int j = index * getTypeNumComponents(getType());
2318
 
    m3x4.base_class::set( &((*_doubleArray)[j]) );
 
2318
    m3x4.Matrix3x4d::base_class::set( &((*_doubleArray)[j]) );
2319
2319
    return true;
2320
2320
}
2321
2321
 
2323
2323
{
2324
2324
    if( index>=getNumElements() || !isCompatibleType(DOUBLE_MAT4x2) ) return false;
2325
2325
    unsigned int j = index * getTypeNumComponents(getType());
2326
 
    m4x2.base_class::set( &((*_doubleArray)[j]) );
 
2326
    m4x2.Matrix4x2d::base_class::set( &((*_doubleArray)[j]) );
2327
2327
    return true;
2328
2328
}
2329
2329
 
2331
2331
{
2332
2332
    if( index>=getNumElements() || !isCompatibleType(DOUBLE_MAT4x3) ) return false;
2333
2333
    unsigned int j = index * getTypeNumComponents(getType());
2334
 
    m4x3.base_class::set( &((*_doubleArray)[j]) );
 
2334
    m4x3.Matrix4x3d::base_class::set( &((*_doubleArray)[j]) );
2335
2335
    return true;
2336
2336
}
2337
2337