private uint GetGLSrc(PICATextureCombinerSource Source) { switch (Source) { case PICATextureCombinerSource.Texture0: return(0x84c0); //Texture 0 case PICATextureCombinerSource.Texture1: return(0x84c1); //Texture 1 case PICATextureCombinerSource.Texture2: return(0x84c2); //Texture 2 case PICATextureCombinerSource.Texture3: return(0x84c3); //Texture 3 case PICATextureCombinerSource.Constant: return(0x8576); //Constant case PICATextureCombinerSource.PrimaryColor: return(0x8577); //Primary Color case PICATextureCombinerSource.Previous: return(0x8578); //Previous case PICATextureCombinerSource.PreviousBuffer: return(0x8579); //Does not exist on OpenGL case PICATextureCombinerSource.FragmentPrimaryColor: return(0x6210); //Does not exist on OpenGL case PICATextureCombinerSource.FragmentSecondaryColor: return(0x6211); //Does not exist on OpenGL } return(0); }
private static string GetCombinerSource(PICATextureCombinerSource Source, string Constant) { switch (Source) { default: case PICATextureCombinerSource.PrimaryColor: return($"{ShaderOutputRegName.Color}"); case PICATextureCombinerSource.FragmentPrimaryColor: return("FragPriColor"); case PICATextureCombinerSource.FragmentSecondaryColor: return("FragSecColor"); case PICATextureCombinerSource.Texture0: return("Color0"); case PICATextureCombinerSource.Texture1: return("Color1"); case PICATextureCombinerSource.Texture2: return("Color2"); case PICATextureCombinerSource.PreviousBuffer: return("CombBuffer"); case PICATextureCombinerSource.Constant: return(Constant); case PICATextureCombinerSource.Previous: return("Previous"); } }