From a87e38229921b48c32187c672a942516722f1b52 Mon Sep 17 00:00:00 2001 From: Jacek Antonelli Date: Sun, 11 Jan 2009 16:10:39 -0600 Subject: Second Life viewer sources 1.22.5-RC --- linden/indra/llrender/llpostprocess.h | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'linden/indra/llrender/llpostprocess.h') diff --git a/linden/indra/llrender/llpostprocess.h b/linden/indra/llrender/llpostprocess.h index cd9f477..b191e9d 100644 --- a/linden/indra/llrender/llpostprocess.h +++ b/linden/indra/llrender/llpostprocess.h @@ -4,7 +4,7 @@ * * $LicenseInfo:firstyear=2007&license=viewergpl$ * - * Copyright (c) 2007-2008, Linden Research, Inc. + * Copyright (c) 2007-2009, Linden Research, Inc. * * Second Life Viewer Source Code * The source code in this file ("Source Code") is provided by Linden Lab @@ -183,21 +183,24 @@ public: }; - GLuint sceneRenderTexture; - GLuint noiseTexture; - GLuint tempBloomTexture; bool initialized; PostProcessTweaks tweaks; // the map of all availible effects LLSD mAllEffects; +private: + LLPointer mSceneRenderTexture ; + LLPointer mNoiseTexture ; + LLPointer mTempBloomTexture ; + public: LLPostProcess(void); ~LLPostProcess(void); void apply(unsigned int width, unsigned int height); + void invalidate() ; /// Perform global initialization for this class. static void initClass(void); @@ -251,9 +254,9 @@ private: /// OpenGL Helper Functions void getShaderUniforms(glslUniforms & uniforms, GLhandleARB & prog); - void createTexture(GLuint & texture, unsigned int width, unsigned int height); + void createTexture(LLPointer& texture, unsigned int width, unsigned int height); void copyFrameBuffer(GLuint & texture, unsigned int width, unsigned int height); - void createNoiseTexture(GLuint & texture); + void createNoiseTexture(LLPointer& texture); bool checkError(void); void checkShaderError(GLhandleARB shader); void drawOrthoQuad(unsigned int width, unsigned int height, QuadType type); -- cgit v1.1