[HL]Проблемы с шейдерной водой
Вот сделал шейдерную воду по тутору (не считать за рекламу ) в 2-ух частях:
http://detler.ucoz.ru/publ/shejdernaja_voda_chast1/10-1-0-197
http://detler.ucoz.ru/publ/shejdernaja_voda_chast_2/10-1-0-199
,но вылезает куча ошибок , вроде всё сделал правильно.
Вот собсно ошибки:
Кто нибудб еще знает туторы по шойдерной воде
Вот сделал шейдерную воду по тутору (не считать за рекламу ) в 2-ух частях:
http://detler.ucoz.ru/publ/shejdernaja_voda_chast1/10-1-0-197
http://detler.ucoz.ru/publ/shejdernaja_voda_chast_2/10-1-0-199
,но вылезает куча ошибок , вроде всё сделал правильно.
Вот собсно ошибки:
Код:
cg_shader.cpp
c:\mymod\single-player source\cl_dll\cl_util.h(41) : error C2065: 'gEngfuncs' : undeclared identifier
c:\mymod\single-player source\cl_dll\cl_util.h(41) : error C2228: left of '.pfnGetCvarFloat' must have class/struct/union type
c:\mymod\single-player source\cl_dll\cl_util.h(42) : error C2228: left of '.pfnGetCvarString' must have class/struct/union type
c:\mymod\single-player source\cl_dll\cl_util.h(43) : error C2228: left of '.pfnRegisterVariable' must have class/struct/union type
c:\mymod\single-player source\cl_dll\cl_util.h(86) : error C2065: 'HSPRITE' : undeclared identifier
c:\mymod\single-player source\cl_dll\cl_util.h(86) : error C2146: syntax error : missing ')' before identifier 'x'
c:\mymod\single-player source\cl_dll\cl_util.h(86) : error C2433: 'SPR_Height' : 'inline' not permitted on data declarations
c:\mymod\single-player source\cl_dll\cl_util.h(86) : error C2059: syntax error : ')'
c:\mymod\single-player source\cl_dll\cl_util.h(86) : error C2143: syntax error : missing ';' before '{'
c:\mymod\single-player source\cl_dll\cl_util.h(86) : error C2447: missing function header (old-style formal list?)
c:\mymod\single-player source\cl_dll\cl_util.h(87) : error C2146: syntax error : missing ')' before identifier 'x'
c:\mymod\single-player source\cl_dll\cl_util.h(87) : error C2433: 'SPR_Width' : 'inline' not permitted on data declarations
c:\mymod\single-player source\cl_dll\cl_util.h(87) : error C2059: syntax error : ')'
c:\mymod\single-player source\cl_dll\cl_util.h(87) : error C2143: syntax error : missing ';' before '{'
c:\mymod\single-player source\cl_dll\cl_util.h(87) : error C2447: missing function header (old-style formal list?)
c:\mymod\single-player source\cl_dll\cl_util.h(89) : error C2143: syntax error : missing ';' before '*'
c:\mymod\single-player source\cl_dll\cl_util.h(89) : error C2433: 'client_textmessage_t' : 'inline' not permitted on data declarations
c:\mymod\single-player source\cl_dll\cl_util.h(89) : error C2501: 'client_textmessage_t' : missing storage-class or type specifiers
c:\mymod\single-player source\cl_dll\cl_util.h(89) : error C2501: 'TextMessageGet' : missing storage-class or type specifiers
c:\mymod\single-player source\cl_dll\cl_util.h(89) : error C2228: left of '.pfnTextMessageGet' must have class/struct/union type
c:\mymod\single-player source\cl_dll\cl_util.h(89) : warning C4508: 'TextMessageGet' : function should return a value; 'void' return type assumed
c:\mymod\single-player source\cl_dll\cl_util.h(92) : error C2228: left of '.pfnDrawCharacter' must have class/struct/union type
c:\mymod\single-player source\cl_dll\cl_util.h(97) : error C2228: left of '.pfnDrawConsoleString' must have class/struct/union type
c:\mymod\single-player source\cl_dll\cl_util.h(102) : error C2228: left of '.pfnDrawConsoleStringLen' must have class/struct/union type
c:\mymod\single-player source\cl_dll\cl_util.h(114) : error C2228: left of '.pfnConsolePrint' must have class/struct/union type
c:\mymod\single-player source\cl_dll\cl_util.h(119) : error C2228: left of '.pfnCenterPrint' must have class/struct/union type
c:\mymod\single-player source\cl_dll\cl_util.h(126) : error C2228: left of '.pfnPlaySoundByName' must have class/struct/union type
c:\mymod\single-player source\cl_dll\cl_util.h(127) : error C2228: left of '.pfnPlaySoundByIndex' must have class/struct/union type
c:\mymod\single-player source\cl_dll\cl_util.h(146) : error C2146: syntax error : missing ';' before identifier 'vec3_origin'
c:\mymod\single-player source\cl_dll\cl_util.h(146) : fatal error C1004: unexpected end of file found
gl_bored.cpp
c:\mymod\single-player source\cl_dll\cl_util.h(41) : error C2065: 'gEngfuncs' : undeclared identifier
c:\mymod\single-player source\cl_dll\cl_util.h(41) : error C2228: left of '.pfnGetCvarFloat' must have class/struct/union type
c:\mymod\single-player source\cl_dll\cl_util.h(42) : error C2228: left of '.pfnGetCvarString' must have class/struct/union type
c:\mymod\single-player source\cl_dll\cl_util.h(43) : error C2228: left of '.pfnRegisterVariable' must have class/struct/union type
c:\mymod\single-player source\cl_dll\cl_util.h(86) : error C2065: 'HSPRITE' : undeclared identifier
c:\mymod\single-player source\cl_dll\cl_util.h(86) : error C2146: syntax error : missing ')' before identifier 'x'
c:\mymod\single-player source\cl_dll\cl_util.h(86) : error C2433: 'SPR_Height' : 'inline' not permitted on data declarations
c:\mymod\single-player source\cl_dll\cl_util.h(86) : error C2059: syntax error : ')'
c:\mymod\single-player source\cl_dll\cl_util.h(86) : error C2143: syntax error : missing ';' before '{'
c:\mymod\single-player source\cl_dll\cl_util.h(86) : error C2447: missing function header (old-style formal list?)
c:\mymod\single-player source\cl_dll\cl_util.h(87) : error C2146: syntax error : missing ')' before identifier 'x'
c:\mymod\single-player source\cl_dll\cl_util.h(87) : error C2433: 'SPR_Width' : 'inline' not permitted on data declarations
c:\mymod\single-player source\cl_dll\cl_util.h(87) : error C2059: syntax error : ')'
c:\mymod\single-player source\cl_dll\cl_util.h(87) : error C2143: syntax error : missing ';' before '{'
c:\mymod\single-player source\cl_dll\cl_util.h(87) : error C2447: missing function header (old-style formal list?)
c:\mymod\single-player source\cl_dll\cl_util.h(89) : error C2143: syntax error : missing ';' before '*'
c:\mymod\single-player source\cl_dll\cl_util.h(89) : error C2433: 'client_textmessage_t' : 'inline' not permitted on data declarations
c:\mymod\single-player source\cl_dll\cl_util.h(89) : error C2501: 'client_textmessage_t' : missing storage-class or type specifiers
c:\mymod\single-player source\cl_dll\cl_util.h(89) : error C2501: 'TextMessageGet' : missing storage-class or type specifiers
c:\mymod\single-player source\cl_dll\cl_util.h(89) : error C2228: left of '.pfnTextMessageGet' must have class/struct/union type
c:\mymod\single-player source\cl_dll\cl_util.h(89) : warning C4508: 'TextMessageGet' : function should return a value; 'void' return type assumed
c:\mymod\single-player source\cl_dll\cl_util.h(92) : error C2228: left of '.pfnDrawCharacter' must have class/struct/union type
c:\mymod\single-player source\cl_dll\cl_util.h(97) : error C2228: left of '.pfnDrawConsoleString' must have class/struct/union type
c:\mymod\single-player source\cl_dll\cl_util.h(102) : error C2228: left of '.pfnDrawConsoleStringLen' must have class/struct/union type
c:\mymod\single-player source\cl_dll\cl_util.h(114) : error C2228: left of '.pfnConsolePrint' must have class/struct/union type
c:\mymod\single-player source\cl_dll\cl_util.h(119) : error C2228: left of '.pfnCenterPrint' must have class/struct/union type
c:\mymod\single-player source\cl_dll\cl_util.h(126) : error C2228: left of '.pfnPlaySoundByName' must have class/struct/union type
c:\mymod\single-player source\cl_dll\cl_util.h(127) : error C2228: left of '.pfnPlaySoundByIndex' must have class/struct/union type
c:\mymod\single-player source\cl_dll\cl_util.h(146) : error C2146: syntax error : missing ';' before identifier 'vec3_origin'
c:\mymod\single-player source\cl_dll\cl_util.h(146) : fatal error C1004: unexpected end of file found
gl_pbuffer.cpp
c:\mymod\single-player source\cl_dll\cl_util.h(41) : error C2065: 'gEngfuncs' : undeclared identifier
c:\mymod\single-player source\cl_dll\cl_util.h(41) : error C2228: left of '.pfnGetCvarFloat' must have class/struct/union type
c:\mymod\single-player source\cl_dll\cl_util.h(42) : error C2228: left of '.pfnGetCvarString' must have class/struct/union type
c:\mymod\single-player source\cl_dll\cl_util.h(43) : error C2228: left of '.pfnRegisterVariable' must have class/struct/union type
c:\mymod\single-player source\cl_dll\cl_util.h(86) : error C2065: 'HSPRITE' : undeclared identifier
c:\mymod\single-player source\cl_dll\cl_util.h(86) : error C2146: syntax error : missing ')' before identifier 'x'
c:\mymod\single-player source\cl_dll\cl_util.h(86) : error C2433: 'SPR_Height' : 'inline' not permitted on data declarations
c:\mymod\single-player source\cl_dll\cl_util.h(86) : error C2059: syntax error : ')'
c:\mymod\single-player source\cl_dll\cl_util.h(86) : error C2143: syntax error : missing ';' before '{'
c:\mymod\single-player source\cl_dll\cl_util.h(86) : error C2447: missing function header (old-style formal list?)
c:\mymod\single-player source\cl_dll\cl_util.h(87) : error C2146: syntax error : missing ')' before identifier 'x'
c:\mymod\single-player source\cl_dll\cl_util.h(87) : error C2433: 'SPR_Width' : 'inline' not permitted on data declarations
c:\mymod\single-player source\cl_dll\cl_util.h(87) : error C2059: syntax error : ')'
c:\mymod\single-player source\cl_dll\cl_util.h(87) : error C2143: syntax error : missing ';' before '{'
c:\mymod\single-player source\cl_dll\cl_util.h(87) : error C2447: missing function header (old-style formal list?)
c:\mymod\single-player source\cl_dll\cl_util.h(89) : error C2143: syntax error : missing ';' before '*'
c:\mymod\single-player source\cl_dll\cl_util.h(89) : error C2433: 'client_textmessage_t' : 'inline' not permitted on data declarations
c:\mymod\single-player source\cl_dll\cl_util.h(89) : error C2501: 'client_textmessage_t' : missing storage-class or type specifiers
c:\mymod\single-player source\cl_dll\cl_util.h(89) : error C2501: 'TextMessageGet' : missing storage-class or type specifiers
c:\mymod\single-player source\cl_dll\cl_util.h(89) : error C2228: left of '.pfnTextMessageGet' must have class/struct/union type
c:\mymod\single-player source\cl_dll\cl_util.h(89) : warning C4508: 'TextMessageGet' : function should return a value; 'void' return type assumed
c:\mymod\single-player source\cl_dll\cl_util.h(92) : error C2228: left of '.pfnDrawCharacter' must have class/struct/union type
c:\mymod\single-player source\cl_dll\cl_util.h(97) : error C2228: left of '.pfnDrawConsoleString' must have class/struct/union type
c:\mymod\single-player source\cl_dll\cl_util.h(102) : error C2228: left of '.pfnDrawConsoleStringLen' must have class/struct/union type
c:\mymod\single-player source\cl_dll\cl_util.h(114) : error C2228: left of '.pfnConsolePrint' must have class/struct/union type
c:\mymod\single-player source\cl_dll\cl_util.h(119) : error C2228: left of '.pfnCenterPrint' must have class/struct/union type
c:\mymod\single-player source\cl_dll\cl_util.h(126) : error C2228: left of '.pfnPlaySoundByName' must have class/struct/union type
c:\mymod\single-player source\cl_dll\cl_util.h(127) : error C2228: left of '.pfnPlaySoundByIndex' must have class/struct/union type
c:\mymod\single-player source\cl_dll\cl_util.h(146) : error C2146: syntax error : missing ';' before identifier 'vec3_origin'
c:\mymod\single-player source\cl_dll\cl_util.h(146) : fatal error C1004:
textures.cpp
c:\mymod\single-player source\cl_dll\cl_util.h(41) : error C2065: 'gEngfuncs' : undeclared identifier
c:\mymod\single-player source\cl_dll\cl_util.h(41) : error C2228: left of '.pfnGetCvarFloat' must have class/struct/union type
c:\mymod\single-player source\cl_dll\cl_util.h(42) : error C2228: left of '.pfnGetCvarString' must have class/struct/union type
c:\mymod\single-player source\cl_dll\cl_util.h(43) : error C2228: left of '.pfnRegisterVariable' must have class/struct/union type
c:\mymod\single-player source\cl_dll\cl_util.h(86) : error C2065: 'HSPRITE' : undeclared identifier
c:\mymod\single-player source\cl_dll\cl_util.h(86) : error C2146: syntax error : missing ')' before identifier 'x'
c:\mymod\single-player source\cl_dll\cl_util.h(86) : error C2433: 'SPR_Height' : 'inline' not permitted on data declarations
c:\mymod\single-player source\cl_dll\cl_util.h(86) : error C2059: syntax error : ')'
c:\mymod\single-player source\cl_dll\cl_util.h(86) : error C2143: syntax error : missing ';' before '{'
c:\mymod\single-player source\cl_dll\cl_util.h(86) : error C2447: missing function header (old-style formal list?)
c:\mymod\single-player source\cl_dll\cl_util.h(87) : error C2146: syntax error : missing ')' before identifier 'x'
c:\mymod\single-player source\cl_dll\cl_util.h(87) : error C2433: 'SPR_Width' : 'inline' not permitted on data declarations
c:\mymod\single-player source\cl_dll\cl_util.h(87) : error C2059: syntax error : ')'
c:\mymod\single-player source\cl_dll\cl_util.h(87) : error C2143: syntax error : missing ';' before '{'
c:\mymod\single-player source\cl_dll\cl_util.h(87) : error C2447: missing function header (old-style formal list?)
c:\mymod\single-player source\cl_dll\cl_util.h(89) : error C2143: syntax error : missing ';' before '*'
c:\mymod\single-player source\cl_dll\cl_util.h(89) : error C2433: 'client_textmessage_t' : 'inline' not permitted on data declarations
c:\mymod\single-player source\cl_dll\cl_util.h(89) : error C2501: 'client_textmessage_t' : missing storage-class or type specifiers
c:\mymod\single-player source\cl_dll\cl_util.h(89) : error C2501: 'TextMessageGet' : missing storage-class or type specifiers
c:\mymod\single-player source\cl_dll\cl_util.h(89) : error C2228: left of '.pfnTextMessageGet' must have class/struct/union type
c:\mymod\single-player source\cl_dll\cl_util.h(89) : warning C4508: 'TextMessageGet' : function should return a value; 'void' return type assumed
c:\mymod\single-player source\cl_dll\cl_util.h(92) : error C2228: left of '.pfnDrawCharacter' must have class/struct/union type
c:\mymod\single-player source\cl_dll\cl_util.h(97) : error C2228: left of '.pfnDrawConsoleString' must have class/struct/union type
c:\mymod\single-player source\cl_dll\cl_util.h(102) : error C2228: left of '.pfnDrawConsoleStringLen' must have class/struct/union type
c:\mymod\single-player source\cl_dll\cl_util.h(114) : error C2228: left of '.pfnConsolePrint' must have class/struct/union type
c:\mymod\single-player source\cl_dll\cl_util.h(119) : error C2228: left of '.pfnCenterPrint' must have class/struct/union type
c:\mymod\single-player source\cl_dll\cl_util.h(126) : error C2228: left of '.pfnPlaySoundByName' must have class/struct/union type
c:\mymod\single-player source\cl_dll\cl_util.h(127) : error C2228: left of '.pfnPlaySoundByIndex' must have class/struct/union type
c:\mymod\single-player source\cl_dll\cl_util.h(146) : error C2146: syntax error : missing ';' before identifier 'vec3_origin'
c:\mymod\single-player source\cl_dll\cl_util.h(146) : fatal error C1004: unexpected end of file found
Error executing cl.exe.
client.dll - 116 error(s), 4 warning(s)
Кто нибудб еще знает туторы по шойдерной воде
Останнє редагування:
