[2269] | 1 | ///////////////////////////////////////////////////////////////////////////////
|
---|
| 2 | //
|
---|
| 3 | // ## ######
|
---|
| 4 | // ###### ###
|
---|
| 5 | // ## ############### Shark 3D Engine (www.shark3d.com)
|
---|
| 6 | // ########## # # #
|
---|
| 7 | // ######## Copyright (c) 1996-2006 Spinor GmbH.
|
---|
| 8 | // ######### # # # All rights reserved.
|
---|
| 9 | // ## ##########
|
---|
| 10 | // ##
|
---|
| 11 | //
|
---|
| 12 | ///////////////////////////////////////////////////////////////////////////////
|
---|
| 13 |
|
---|
| 14 | //@cpp
|
---|
| 15 |
|
---|
| 16 | #include "gtp_shader_module.h"
|
---|
| 17 | #include "gtp_shader_envmap.h"
|
---|
| 18 | #include "gtp_shader_focusedprojmat.h"
|
---|
| 19 | #include "eng_shader_special_worldmat.h"
|
---|
| 20 | #include "gtp_shader_mainenum.h"
|
---|
| 21 | #include "gtp_shader_createtex.h"
|
---|
| 22 | #include "gtp_shader_cubetexfilter.h"
|
---|
| 23 | #include "gtp_shader_causticcube.h"
|
---|
| 24 | #include "../../util/eng_util_shaderutil.h"
|
---|
| 25 | #include "../../../general/general_def.h"
|
---|
| 26 |
|
---|
| 27 | ///////////////////////////////////////////////////////////////////////////////
|
---|
| 28 | /*@{
|
---|
| 29 |
|
---|
| 30 | @declare{mod.mod}{eng_shader_special}{}
|
---|
| 31 |
|
---|
| 32 | Special shaders.
|
---|
| 33 | @p
|
---|
| 34 |
|
---|
| 35 | @}*/
|
---|
| 36 | ///////////////////////////////////////////////////////////////////////////////
|
---|
| 37 |
|
---|
| 38 | s3d_CCompObjPtr gtp_ShaderModuleSuppl::SupplObj(
|
---|
| 39 | s3d_CUtilMsgHandler *MsgHandler, s3d_CUtilStr_cr Info,
|
---|
| 40 | s3d_CUtilStr_cr Ident, s3d_CUtilStr_cr Version)
|
---|
| 41 | {
|
---|
| 42 | if(!s3d_CompSupplCheckVersion(
|
---|
| 43 | MsgHandler, Info, Ident, S3D_GENERAL_INTEROP_INTERF, Version))
|
---|
| 44 | return 0;
|
---|
| 45 |
|
---|
| 46 |
|
---|
| 47 | if(Ident == "envmap")
|
---|
| 48 | return S3D_SYS_NEW gtp_Shader_EnvMap();
|
---|
| 49 | if(Ident == "createtex")
|
---|
| 50 | return S3D_SYS_NEW gtp_ShaderCreateTex();
|
---|
| 51 | if(Ident == "worldmat")
|
---|
| 52 | return S3D_SYS_NEW s3d_CEngShaderSpecialWorldMat();
|
---|
| 53 | if(Ident == "cubetexfilter")
|
---|
| 54 | return S3D_SYS_NEW gtp_Shader_CubeTexFilter();
|
---|
| 55 | if(Ident == "mainenum")
|
---|
| 56 | return S3D_SYS_NEW gtp_Shader_MainEnum();
|
---|
| 57 | if(Ident == "focusedprojmat")
|
---|
| 58 | return S3D_SYS_NEW gtp_Shader_FocusedProjMat();
|
---|
| 59 | if(Ident == "causticcube")
|
---|
| 60 | return S3D_SYS_NEW gtp_Shader_CausticCube();
|
---|
| 61 |
|
---|
| 62 | s3d_CompSupplUnknownIdent(MsgHandler, Info, Ident);
|
---|
| 63 | return 0;
|
---|
| 64 | }
|
---|
| 65 |
|
---|
| 66 | ///////////////////////////////////////////////////////////////////////////////
|
---|
| 67 |
|
---|
| 68 | s3d_CUtilStr gtp_ShaderModuleCover::GetName() const
|
---|
| 69 | {
|
---|
| 70 | return "gtp_shader";
|
---|
| 71 | }
|
---|
| 72 |
|
---|
| 73 | s3d_CUtilStr gtp_ShaderModuleCover::GetAbout() const
|
---|
| 74 | {
|
---|
| 75 | return S3D_GENERAL_IDENT_EXE;
|
---|
| 76 | }
|
---|
| 77 |
|
---|
| 78 | s3d_CCompSupplPtr gtp_ShaderModuleCover::CreateSuppl(
|
---|
| 79 | s3d_CUtilMsgHandler *MsgHandler, s3d_CUtilStr_cr Info,
|
---|
| 80 | const s3d_CUtilSnkChunk *Param) const
|
---|
| 81 | {
|
---|
| 82 | return S3D_SYS_NEW gtp_ShaderModuleSuppl;
|
---|
| 83 | }
|
---|
| 84 |
|
---|
| 85 | ///////////////////////////////////////////////////////////////////////////////
|
---|
| 86 |
|
---|