aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llprimitive
diff options
context:
space:
mode:
authorArmin Weatherwax2010-06-14 14:29:10 +0200
committerArmin Weatherwax2010-09-23 15:42:38 +0200
commitc791570b8f7704dd3af382ab1d6ad446af1fa671 (patch)
tree5e556779651cdf826a5d599493a0a0c32734b43b /linden/indra/llprimitive
parentport llprimitive from SG2.0 (diff)
downloadmeta-impy-c791570b8f7704dd3af382ab1d6ad446af1fa671.zip
meta-impy-c791570b8f7704dd3af382ab1d6ad446af1fa671.tar.gz
meta-impy-c791570b8f7704dd3af382ab1d6ad446af1fa671.tar.bz2
meta-impy-c791570b8f7704dd3af382ab1d6ad446af1fa671.tar.xz
make it compile and run.
TODO: llpanellandmedia.cpp and llviewermedia.cpp need a proper fix
Diffstat (limited to 'linden/indra/llprimitive')
-rwxr-xr-xlinden/indra/llprimitive/llprimitive.cpp96
1 files changed, 1 insertions, 95 deletions
diff --git a/linden/indra/llprimitive/llprimitive.cpp b/linden/indra/llprimitive/llprimitive.cpp
index 7546764..0ad9f79 100755
--- a/linden/indra/llprimitive/llprimitive.cpp
+++ b/linden/indra/llprimitive/llprimitive.cpp
@@ -247,50 +247,22 @@ void LLPrimitive::setTE(const U8 index, const LLTextureEntry& te)
247 247
248S32 LLPrimitive::setTETexture(const U8 index, const LLUUID &id) 248S32 LLPrimitive::setTETexture(const U8 index, const LLUUID &id)
249{ 249{
250 // if we're asking for a non-existent face, return null
251 if (te >= mNumTEs)
252 {
253 llwarns << "setting non-existent te " << te << llendl;
254 return 0;
255 }
256
257 return mTextureList.setID(index, id); 250 return mTextureList.setID(index, id);
258} 251}
259 252
260S32 LLPrimitive::setTEColor(const U8 index, const LLColor4 &color) 253S32 LLPrimitive::setTEColor(const U8 index, const LLColor4 &color)
261{ 254{
262 // if we're asking for a non-existent face, return null
263 if (te >= mNumTEs)
264 {
265 llwarns << "setting non-existent te " << te << llendl;
266 return 0;
267 }
268
269 255
270 return mTextureList.setColor(index, color); 256 return mTextureList.setColor(index, color);
271} 257}
272 258
273S32 LLPrimitive::setTEColor(const U8 index, const LLColor3 &color) 259S32 LLPrimitive::setTEColor(const U8 index, const LLColor3 &color)
274{ 260{
275 // if we're asking for a non-existent face, return null
276 if (te >= mNumTEs)
277 {
278 llwarns << "setting non-existent te " << te << llendl;
279 return 0;
280 }
281
282 return mTextureList.setColor(index, color); 261 return mTextureList.setColor(index, color);
283} 262}
284 263
285S32 LLPrimitive::setTEAlpha(const U8 index, const F32 alpha) 264S32 LLPrimitive::setTEAlpha(const U8 index, const F32 alpha)
286{ 265{
287 // if we're asking for a non-existent face, return null
288 if (te >= mNumTEs)
289 {
290 llwarns << "setting non-existent te " << te << llendl;
291 return 0;
292 }
293
294 return mTextureList.setAlpha(index, alpha); 266 return mTextureList.setAlpha(index, alpha);
295} 267}
296 268
@@ -350,111 +322,46 @@ S32 LLPrimitive::setTERotation(const U8 index, const F32 r)
350//=============================================================== 322//===============================================================
351S32 LLPrimitive::setTEBumpShinyFullbright(const U8 index, const U8 bump) 323S32 LLPrimitive::setTEBumpShinyFullbright(const U8 index, const U8 bump)
352{ 324{
353 // if we're asking for a non-existent face, return null 325 return mTextureList.setBumpShinyFullbright(index, bump);
354 if (te >= mNumTEs)
355 {
356 llwarns << "setting non-existent te " << te << llendl;
357 return 0;
358 }
359
360 return mTextureList.setBumpShinyFullbright(index, bump);
361} 326}
362 327
363S32 LLPrimitive::setTEMediaTexGen(const U8 index, const U8 media) 328S32 LLPrimitive::setTEMediaTexGen(const U8 index, const U8 media)
364{ 329{
365 // if we're asking for a non-existent face, return null
366 if (te >= mNumTEs)
367 {
368 llwarns << "setting non-existent te " << te << llendl;
369 return 0;
370 }
371
372 return mTextureList.setMediaTexGen(index, media); 330 return mTextureList.setMediaTexGen(index, media);
373} 331}
374 332
375S32 LLPrimitive::setTEBumpmap(const U8 index, const U8 bump) 333S32 LLPrimitive::setTEBumpmap(const U8 index, const U8 bump)
376{ 334{
377 // if we're asking for a non-existent face, return null
378 if (te >= mNumTEs)
379 {
380 llwarns << "setting non-existent te " << te << llendl;
381 return 0;
382 }
383
384 return mTextureList.setBumpMap(index, bump); 335 return mTextureList.setBumpMap(index, bump);
385} 336}
386 337
387S32 LLPrimitive::setTEBumpShiny(const U8 index, const U8 bump_shiny) 338S32 LLPrimitive::setTEBumpShiny(const U8 index, const U8 bump_shiny)
388{ 339{
389 // if we're asking for a non-existent face, return null
390 if (te >= mNumTEs)
391 {
392 llwarns << "setting non-existent te " << te << llendl;
393 return 0;
394 }
395
396 return mTextureList.setBumpShiny(index, bump_shiny); 340 return mTextureList.setBumpShiny(index, bump_shiny);
397} 341}
398 342
399S32 LLPrimitive::setTETexGen(const U8 index, const U8 texgen) 343S32 LLPrimitive::setTETexGen(const U8 index, const U8 texgen)
400{ 344{
401 // if we're asking for a non-existent face, return null
402 if (te >= mNumTEs)
403 {
404 llwarns << "setting non-existent te " << te << llendl;
405 return 0;
406 }
407
408 return mTextureList.setTexGen(index, texgen); 345 return mTextureList.setTexGen(index, texgen);
409} 346}
410 347
411S32 LLPrimitive::setTEShiny(const U8 index, const U8 shiny) 348S32 LLPrimitive::setTEShiny(const U8 index, const U8 shiny)
412{ 349{
413 // if we're asking for a non-existent face, return null
414 if (te >= mNumTEs)
415 {
416 llwarns << "setting non-existent te " << te << llendl;
417 return 0;
418 }
419
420
421 return mTextureList.setShiny(index, shiny); 350 return mTextureList.setShiny(index, shiny);
422} 351}
423 352
424S32 LLPrimitive::setTEFullbright(const U8 index, const U8 fullbright) 353S32 LLPrimitive::setTEFullbright(const U8 index, const U8 fullbright)
425{ 354{
426
427 // if we're asking for a non-existent face, return null
428 if (te >= mNumTEs)
429 {
430 llwarns << "setting non-existent te " << te << llendl;
431 return 0;
432 }
433
434 return mTextureList.setFullbright(index, fullbright); 355 return mTextureList.setFullbright(index, fullbright);
435} 356}
436 357
437S32 LLPrimitive::setTEMediaFlags(const U8 index, const U8 media_flags) 358S32 LLPrimitive::setTEMediaFlags(const U8 index, const U8 media_flags)
438{ 359{
439 // if we're asking for a non-existent face, return null
440 if (te >= mNumTEs)
441 {
442 llwarns << "setting non-existent te " << te << llendl;
443 return 0;
444 }
445
446 return mTextureList.setMediaFlags(index, media_flags); 360 return mTextureList.setMediaFlags(index, media_flags);
447} 361}
448 362
449S32 LLPrimitive::setTEGlow(const U8 index, const F32 glow) 363S32 LLPrimitive::setTEGlow(const U8 index, const F32 glow)
450{ 364{
451 // if we're asking for a non-existent face, return null
452 if (te >= mNumTEs)
453 {
454 llwarns << "setting non-existent te " << te << llendl;
455 return 0;
456 }
457
458 return mTextureList.setGlow(index, glow); 365 return mTextureList.setGlow(index, glow);
459} 366}
460 367
@@ -1029,7 +936,6 @@ BOOL LLPrimitive::setVolume(const LLVolumeParams &volume_params, const S32 detai
1029 setTE(te_num, *(old_tes.getTexture(face_mapping[face_bit]))); 936 setTE(te_num, *(old_tes.getTexture(face_mapping[face_bit])));
1030 } 937 }
1031 } 938 }
1032>>>>>>> 5faaca1... port llprimitive from SG2.0
1033 return TRUE; 939 return TRUE;
1034} 940}
1035 941