1 /*---------------------------------------------------------------------------*
2   Project:  NintendoWare
3   File:     gfx_ResUtil.h
4 
5   Copyright (C)2009-2011 Nintendo/HAL Laboratory, Inc.  All rights reserved.
6 
7   These coded instructions, statements, and computer programs contain proprietary
8   information of Nintendo and/or its licensed developers and are protected by
9   national and international copyright laws. They may not be disclosed to third
10   parties or copied or duplicated in any form, in whole or in part, without the
11   prior written consent of Nintendo.
12 
13   The content herein is highly confidential and should be handled accordingly.
14 
15   $Revision: $
16  *---------------------------------------------------------------------------*/
17 
18 #ifndef NW_GFX_RESUTIL_H_
19 #define NW_GFX_RESUTIL_H_
20 
21 namespace nw {
22 namespace gfx {
23 
24 class Result;
25 
26 namespace res {
27 
28 class ResLookupTable;
29 class ResTexture;
30 class ResShader;
31 class ResReferenceLookupTable;
32 class ResReferenceTexture;
33 class ResReferenceShader;
34 class ResGraphicsFile;
35 
36 //! @brief リファレンス参照テーブルをセットアップします。
37 Result SetupReferenceLut(ResReferenceLookupTable resReferenceLut, ResGraphicsFile graphicsFile);
38 
39 //! @brief リファレンス参照テーブルのターゲットをグラフィックスファイルから名前で検索し取得します。
40 ::std::pair<ResLookupTable, bool>
41     GetReferenceLutTarget(ResReferenceLookupTable referenceLut, ResGraphicsFile graphicsFile);
42 
43 //! @brief リファレンステクスチャのターゲットをグラフィックスファイルから名前で検索し取得します。
44 ::std::pair<ResTexture,bool>
45     GetReferenceTextureTarget(ResReferenceTexture referenceTexture, ResGraphicsFile graphicsFile);
46 
47 //! @brief リファレンスシェーダーのターゲットをグラフィックスファイルから名前で検索し取得します。
48 ::std::pair<ResShader,bool>
49     GetReferenceShaderTarget(ResReferenceShader referenceShader, ResGraphicsFile graphicsFile);
50 
51 } // namespace res
52 } // namespace gfx
53 } // namespace nw
54 
55 #endif // NW_GFX_RESUTIL_H_
56