diff options
Diffstat (limited to 'linden/indra/newview/lltexlayer.h')
-rw-r--r-- | linden/indra/newview/lltexlayer.h | 39 |
1 files changed, 1 insertions, 38 deletions
diff --git a/linden/indra/newview/lltexlayer.h b/linden/indra/newview/lltexlayer.h index 742b484..bd59c66 100644 --- a/linden/indra/newview/lltexlayer.h +++ b/linden/indra/newview/lltexlayer.h | |||
@@ -211,9 +211,8 @@ public: | |||
211 | virtual void postRender(BOOL success); | 211 | virtual void postRender(BOOL success); |
212 | virtual BOOL render(); | 212 | virtual BOOL render(); |
213 | BOOL updateImmediate(); | 213 | BOOL updateImmediate(); |
214 | virtual void bindTexture(); | ||
215 | void bindBumpTexture( U32 stage ); | 214 | void bindBumpTexture( U32 stage ); |
216 | BOOL isInitialized() { return mInitialized; } // Initialized here means that we've done at least one render | 215 | bool isInitialized(void) const; |
217 | BOOL needsRender(); | 216 | BOOL needsRender(); |
218 | void requestUpdate(); | 217 | void requestUpdate(); |
219 | void requestUpload(); | 218 | void requestUpload(); |
@@ -236,7 +235,6 @@ private: | |||
236 | BOOL mUploadPending; | 235 | BOOL mUploadPending; |
237 | LLUUID mUploadID; // Identifys the current upload process (null if none). Used to avoid overlaps (eg, when the user rapidly makes two changes outside of Face Edit) | 236 | LLUUID mUploadID; // Identifys the current upload process (null if none). Used to avoid overlaps (eg, when the user rapidly makes two changes outside of Face Edit) |
238 | LLTexLayerSet* mTexLayerSet; | 237 | LLTexLayerSet* mTexLayerSet; |
239 | BOOL mInitialized; | ||
240 | LLGLuint mBumpTexName; // zero if none | 238 | LLGLuint mBumpTexName; // zero if none |
241 | 239 | ||
242 | static S32 sGLByteCount; | 240 | static S32 sGLByteCount; |
@@ -529,41 +527,6 @@ public: | |||
529 | }; | 527 | }; |
530 | 528 | ||
531 | 529 | ||
532 | //----------------------------------------------------------------------------- | ||
533 | // LLGradientPaletteList | ||
534 | // A static set of ramp grayscale palettes. The "effective_weight" is used | ||
535 | // to determine the x position of the ramp (offset) | ||
536 | // | ||
537 | // "Domain" isn't really the right word. It refers to the width of the | ||
538 | // ramp portion of the function that relates input and output pixel values. | ||
539 | // A domain of 0 gives a step function. | ||
540 | // | ||
541 | // | /---------------- | ||
542 | // O| / | | ||
543 | // u| / | | ||
544 | // t| / | | ||
545 | // p|------------------/ | | ||
546 | // u| | | | ||
547 | // t|<---------------->|<-->| | ||
548 | // | "offset" "domain" | ||
549 | // | | ||
550 | // --+---Input-------------------------------- | ||
551 | // | | ||
552 | //----------------------------------------------------------------------------- | ||
553 | class LLGradientPaletteList | ||
554 | { | ||
555 | public: | ||
556 | LLGradientPaletteList() {} | ||
557 | ~LLGradientPaletteList(); | ||
558 | |||
559 | void initPalette(F32 domain); | ||
560 | void setHardwarePalette(F32 domain, F32 effective_weight); | ||
561 | |||
562 | private: | ||
563 | typedef std::map<F32, U8*> palette_map_t; | ||
564 | palette_map_t mPaletteMap; | ||
565 | }; | ||
566 | |||
567 | // Used by LLTexLayerSetBuffer for a callback. | 530 | // Used by LLTexLayerSetBuffer for a callback. |
568 | class LLBakedUploadData | 531 | class LLBakedUploadData |
569 | { | 532 | { |