source: GTP/trunk/App/Demos/Geom/Shark3D/src/drv_d3d9_module.cpp @ 2236

Revision 2236, 2.0 KB checked in by gumbau, 17 years ago (diff)
Line 
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 "drv_d3d9_module.h"
17#include "drv_d3d9_mgr.h"
18#include "drv_d3d9_enum.h"
19#include "comp/core/comp_env.h"
20#include "comp/util/comp_util_givensuppl.h"
21#include "util/snk/util_snk_extract.h"
22#include "shader_paintmesh_clod/eng_shader_std_paintmesh_clod.h"
23
24///////////////////////////////////////////////////////////////////////////////
25/*@{
26
27@declare{mod.mod}{drv_d3d9}{}
28
29@p
30
31@}*/
32///////////////////////////////////////////////////////////////////////////////
33
34s3d_CCompObjPtr s3d_CDrvD3d9ModuleSuppl::SupplObj(
35        s3d_CUtilMsgHandler *MsgHandler, s3d_CUtilStr_cr Info,
36        s3d_CUtilStr_cr Ident, s3d_CUtilStr_cr Version)
37{
38    if(!s3d_CompSupplCheckVersion(
39            MsgHandler, Info, Ident, S3D_GENERAL_INTEROP_INTERF, Version))
40        return 0;
41
42    if(Ident == "gfxmgr")
43        return S3D_SYS_NEW s3d_CDrvD3d9GfxMgr(MsgHandler, Info);
44
45        // GAMETOOLS: create a new paintmesh shader
46        if (Ident == "paintmesh_clod")
47                return S3D_SYS_NEW s3d_CEngShaderStdPaintMesh();
48
49
50    s3d_CompSupplUnknownIdent(MsgHandler, Info, Ident);
51    return 0;
52};
53
54s3d_CUtilStr s3d_CDrvD3d9ModuleCover::GetName() const
55{
56    return "drv_d3d9";
57}
58
59s3d_CUtilStr s3d_CDrvD3d9ModuleCover::GetAbout() const
60{
61    return S3D_GENERAL_IDENT_EXE;
62}
63
64s3d_CCompSupplPtr s3d_CDrvD3d9ModuleCover::CreateSuppl(
65        s3d_CUtilMsgHandler *MsgHandler, s3d_CUtilStr_cr Info,
66        const s3d_CUtilSnkChunk *Param) const
67{
68    return S3D_SYS_NEW s3d_CDrvD3d9ModuleSuppl();
69};
70
71///////////////////////////////////////////////////////////////////////////////
Note: See TracBrowser for help on using the repository browser.