diff options
author | Jacek Antonelli | 2008-08-15 23:45:50 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:50 -0500 |
commit | 2a4dea528f670b9bb1f77ef27a8a1dd16603d114 (patch) | |
tree | 95c68e362703c9099d571ecbdc6142b1cda1e005 /linden/indra/llrender/llimagegl.h | |
parent | Second Life viewer sources 1.20.6 (diff) | |
download | meta-impy-2a4dea528f670b9bb1f77ef27a8a1dd16603d114.zip meta-impy-2a4dea528f670b9bb1f77ef27a8a1dd16603d114.tar.gz meta-impy-2a4dea528f670b9bb1f77ef27a8a1dd16603d114.tar.bz2 meta-impy-2a4dea528f670b9bb1f77ef27a8a1dd16603d114.tar.xz |
Second Life viewer sources 1.20.7
Diffstat (limited to 'linden/indra/llrender/llimagegl.h')
-rw-r--r-- | linden/indra/llrender/llimagegl.h | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/linden/indra/llrender/llimagegl.h b/linden/indra/llrender/llimagegl.h index b386294..3f231ee 100644 --- a/linden/indra/llrender/llimagegl.h +++ b/linden/indra/llrender/llimagegl.h | |||
@@ -81,6 +81,10 @@ protected: | |||
81 | virtual ~LLImageGL(); | 81 | virtual ~LLImageGL(); |
82 | BOOL bindTextureInternal(const S32 stage = 0) const; | 82 | BOOL bindTextureInternal(const S32 stage = 0) const; |
83 | 83 | ||
84 | private: | ||
85 | void glClamp (BOOL clamps, BOOL clampt); | ||
86 | void glClampCubemap (BOOL clamps, BOOL clampt, BOOL clampr = FALSE); | ||
87 | |||
84 | public: | 88 | public: |
85 | virtual void dump(); // debugging info to llinfos | 89 | virtual void dump(); // debugging info to llinfos |
86 | virtual BOOL bind(const S32 stage = 0) const; | 90 | virtual BOOL bind(const S32 stage = 0) const; |
@@ -99,8 +103,11 @@ public: | |||
99 | BOOL readBackRaw(S32 discard_level, LLImageRaw* imageraw, bool compressed_ok); | 103 | BOOL readBackRaw(S32 discard_level, LLImageRaw* imageraw, bool compressed_ok); |
100 | void destroyGLTexture(); | 104 | void destroyGLTexture(); |
101 | 105 | ||
106 | void setClampCubemap (BOOL clamps, BOOL clampt, BOOL clampr = FALSE); | ||
102 | void setClamp(BOOL clamps, BOOL clampt); | 107 | void setClamp(BOOL clamps, BOOL clampt); |
103 | void setMipFilterNearest(BOOL nearest, BOOL min_nearest = FALSE); | 108 | void overrideClamp (BOOL clamps, BOOL clampt); |
109 | void restoreClamp (void); | ||
110 | void setMipFilterNearest(BOOL mag_nearest, BOOL min_nearest = FALSE); | ||
104 | void setExplicitFormat(LLGLint internal_format, LLGLenum primary_format, LLGLenum type_format = 0, BOOL swap_bytes = FALSE); | 111 | void setExplicitFormat(LLGLint internal_format, LLGLenum primary_format, LLGLenum type_format = 0, BOOL swap_bytes = FALSE); |
105 | void dontDiscard() { mDontDiscard = 1; } | 112 | void dontDiscard() { mDontDiscard = 1; } |
106 | 113 | ||
@@ -117,7 +124,8 @@ public: | |||
117 | 124 | ||
118 | BOOL getClampS() const { return mClampS; } | 125 | BOOL getClampS() const { return mClampS; } |
119 | BOOL getClampT() const { return mClampT; } | 126 | BOOL getClampT() const { return mClampT; } |
120 | BOOL getMipFilterNearest() const { return mMipFilterNearest; } | 127 | BOOL getClampR() const { return mClampR; } |
128 | BOOL getMipFilterNearest() const { return mMagFilterNearest; } | ||
121 | 129 | ||
122 | BOOL getHasGLTexture() const { return mTexName != 0; } | 130 | BOOL getHasGLTexture() const { return mTexName != 0; } |
123 | LLGLuint getTexName() const { return mTexName; } | 131 | LLGLuint getTexName() const { return mTexName; } |
@@ -167,7 +175,9 @@ protected: | |||
167 | 175 | ||
168 | S8 mClampS; // Need to save clamp state | 176 | S8 mClampS; // Need to save clamp state |
169 | S8 mClampT; | 177 | S8 mClampT; |
170 | S8 mMipFilterNearest; // if TRUE, set magfilter to GL_NEAREST | 178 | S8 mClampR; |
179 | S8 mMagFilterNearest; // if TRUE, set magfilter to GL_NEAREST | ||
180 | S8 mMinFilterNearest; // if TRUE, set minfilter to GL_NEAREST | ||
171 | 181 | ||
172 | LLGLint mFormatInternal; // = GL internalformat | 182 | LLGLint mFormatInternal; // = GL internalformat |
173 | LLGLenum mFormatPrimary; // = GL format (pixel data format) | 183 | LLGLenum mFormatPrimary; // = GL format (pixel data format) |