Showing the changes to libraries/render-utils/src/TextureCache.cpp (1 of 77 files). Show all
Unified · Split
| @@ -237,18 +237,6 @@ GLuint TextureCache::getPrimaryDepthTextureID() { · 236 unmodified lines | ||
| 237 | 237 | return gpu::GLBackend::getTextureID(getPrimaryDepthTexture()); |
| 238 | 238 | } |
| 239 | 239 | |
| 240 | −GLuint TextureCache::getPrimaryColorTextureID() { | |
| 241 | − return gpu::GLBackend::getTextureID(getPrimaryColorTexture()); | |
| 242 | −} | |
| 243 | − | |
| 244 | −GLuint TextureCache::getPrimaryNormalTextureID() { | |
| 245 | − return gpu::GLBackend::getTextureID(getPrimaryNormalTexture()); | |
| 246 | −} | |
| 247 | − | |
| 248 | −GLuint TextureCache::getPrimarySpecularTextureID() { | |
| 249 | − return gpu::GLBackend::getTextureID(getPrimarySpecularTexture()); | |
| 250 | −} | |
| 251 | − | |
| 252 | 240 | void TextureCache::setPrimaryDrawBuffers(bool color, bool normal, bool specular) { |
| 253 | 241 | gpu::Batch batch; |
| 254 | 242 | setPrimaryDrawBuffers(batch, color, normal, specular); |
| @@ -284,7 +272,6 @@ gpu::FramebufferPointer TextureCache::getTertiaryFramebuffer() { · 29 unmodified lines | ||
| 284 | 272 | return _tertiaryFramebuffer; |
| 285 | 273 | } |
| 286 | 274 | |
| 287 | − | |
| 288 | 275 | gpu::FramebufferPointer TextureCache::getShadowFramebuffer() { |
| 289 | 276 | if (!_shadowFramebuffer) { |
| 290 | 277 | const int SHADOW_MAP_SIZE = 2048; |
| @@ -295,12 +282,6 @@ gpu::FramebufferPointer TextureCache::getShadowFramebuffer() { · 4 unmodified lines | ||
| 295 | 282 | return _shadowFramebuffer; |
| 296 | 283 | } |
| 297 | 284 | |
| 298 | −GLuint TextureCache::getShadowDepthTextureID() { | |
| 299 | − // ensure that the shadow framebuffer object is initialized before returning the depth texture id | |
| 300 | − getShadowFramebuffer(); | |
| 301 | − return gpu::GLBackend::getTextureID(_shadowTexture); | |
| 302 | −} | |
| 303 | − | |
| 304 | 285 | /// Returns a texture version of an image file |
| 305 | 286 | gpu::TexturePointer TextureCache::getImageTexture(const QString& path) { |
| 306 | 287 | QImage image = QImage(path).mirrored(false, true); |
| @@ -331,10 +312,6 @@ Texture::Texture() { · 24 unmodified lines | ||
| 331 | 312 | Texture::~Texture() { |
| 332 | 313 | } |
| 333 | 314 | |
| 334 | −GLuint Texture::getID() const { | |
| 335 | − return gpu::GLBackend::getTextureID(_gpuTexture); | |
| 336 | −} | |
| 337 | − | |
| 338 | 315 | NetworkTexture::NetworkTexture(const QUrl& url, TextureType type, const QByteArray& content) : |
| 339 | 316 | Resource(url, !content.isEmpty()), |
| 340 | 317 | _type(type), |