summaryrefslogtreecommitdiff
path: root/Runtime/GfxDevice/opengl/CombinerGL.h
blob: fcc130728b32f076074367e5fa6f8f6a356b6212 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#pragma once

namespace ShaderLab {
	struct TextureBinding;
	class PropertySheet;
}


struct TextureCombinersGL
{
	static bool IsCombineModeSupported( unsigned int combiner );
	static TextureCombinersGL* Create( int count, const ShaderLab::TextureBinding* texEnvs, const ShaderLab::PropertySheet* props );

	int count;
	const ShaderLab::TextureBinding* texEnvs;
};

void ApplyCombinerGL( unsigned int& currentCombColor, unsigned int& currentCombAlpha, unsigned int combcolor, unsigned int combalpha );