summaryrefslogtreecommitdiff
path: root/indra/newview/tests/llviewershadermgr_stub.cpp
blob: 0dae527035bb05fbf01f6d6895a06eee58532b8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/** 
 * @file llglslshader_stub.cpp
 * @brief  stub class to allow unit testing
 *
 * $LicenseInfo:firstyear=2009&license=viewergpl$
 * Copyright (c) 2009, Linden Research, Inc.
 * $/LicenseInfo$
 */

#include "../llviewershadermgr.h"

LLShaderMgr::LLShaderMgr() {}
LLShaderMgr::~LLShaderMgr() {}

LLViewerShaderMgr::LLViewerShaderMgr() {}
LLViewerShaderMgr::~LLViewerShaderMgr() {}

LLViewerShaderMgr* stub_instance = NULL;

LLViewerShaderMgr* LLViewerShaderMgr::instance() {
	if(NULL == stub_instance)
	{
		stub_instance = new LLViewerShaderMgr();
	}

	return stub_instance;
}
LLViewerShaderMgr::shader_iter fake_iter;
LLViewerShaderMgr::shader_iter LLViewerShaderMgr::beginShaders() const {return fake_iter;}
LLViewerShaderMgr::shader_iter LLViewerShaderMgr::endShaders() const {return fake_iter;}

void LLViewerShaderMgr::updateShaderUniforms(LLGLSLShader* shader) {return;}
std::string LLViewerShaderMgr::getShaderDirPrefix() {return "SHADER_DIR_PREFIX-";}