MCPcopy Create free account
hub / github.com/StrongPC123/Far-Cry-1-Source-Full / sGetBlendState

Function sGetBlendState

CrySystem/ScriptObjectSystem.cpp:63–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61*/
62
63static unsigned int sGetBlendState(int nMode)
64{
65 unsigned int nBlend;
66 switch(nMode)
67 {
68 case 1:
69 nBlend = GS_BLSRC_ZERO | GS_BLDST_SRCCOL;
70 break;
71 case 2:
72 case 3:
73 assert(0);
74 break;
75 case 4:
76 nBlend = GS_BLSRC_SRCALPHA | GS_BLDST_ONEMINUSSRCALPHA;
77 break;
78 case 5:
79 nBlend = GS_BLSRC_ONE | GS_BLDST_ONE;
80 break;
81 case 6:
82 nBlend = GS_BLSRC_DSTCOL | GS_BLDST_SRCCOL;
83 break;
84 case 7:
85 nBlend = GS_BLSRC_ZERO | GS_BLDST_ONEMINUSSRCCOL;
86 break;
87 case 8:
88 nBlend = GS_BLSRC_ONE | GS_BLDST_ONEMINUSSRCCOL;
89 break;
90 case 9:
91 nBlend = GS_BLSRC_ONE | GS_BLDST_ZERO;
92 break;
93 case 10:
94 nBlend = GS_BLSRC_ZERO | GS_BLDST_ZERO;
95 break;
96 case 11:
97 nBlend = GS_BLSRC_ONE | GS_BLDST_ONEMINUSSRCALPHA;
98 break;
99 case 12:
100 nBlend = GS_BLSRC_SRCALPHA | GS_BLDST_ONE;
101 break;
102 case 14:
103 nBlend = GS_BLSRC_DSTCOL | GS_BLDST_SRCCOL;
104 break;
105 default:
106 assert(0);
107 }
108 return nBlend;
109}
110
111IScriptObject* CScriptObjectSystem::m_pScriptTimeTable = NULL;
112

Callers 5

DrawImageMethod · 0.85
DrawImageColorMethod · 0.85
DrawImageCoordsMethod · 0.85
DrawImageColorCoordsMethod · 0.85
DrawTriStripMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected