1 /*---------------------------------------------------------------------------*
2 
3   Copyright (C) Nintendo.  All rights reserved.
4 
5   These coded instructions, statements, and computer programs contain
6   proprietary information of Nintendo of America Inc. and/or Nintendo
7   Company Ltd., and are protected by Federal copyright law.  They may
8   not be disclosed to third parties or copied or duplicated in any form,
9   in whole or in part, without the prior written consent of Nintendo.
10 
11  *---------------------------------------------------------------------------*/
12 // -----------------------------------------------------------------------------
13 //  demoDRCCamera.h
14 //
15 // -----------------------------------------------------------------------------
16 
17 #ifndef __DEMO_DRC_CAMERA_H__
18 #define __DEMO_DRC_CAMERA_H__
19 
20 #include <cafe/demo.h>
21 
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25 
26 /// @addtogroup demoDRCCamera
27 /// @{
28 
29 /// \brief Default surface for DEMODRCCamera (global)
30 extern CAMSurface       DEMODRCCameraSurface[2];
31 
32 /// \brief Default Y texture for DEMODRCCamera (global)
33 extern GX2Texture          DEMODRCCameraYTexture;
34 
35 /// \brief Default UV texture for DEMODRCCamera (global)
36 extern GX2Texture          DEMODRCCameraUVTexture;
37 
38 /// \brief Default camera setup information for DEMODRCCamera (global)
39 extern CAMSetupInfo     DEMODRCCameraSetupInfo;
40 
41 /// \brief Default camera handle for DEMODRCCamera (global)
42 extern CAMHandle        DEMOCameraHandle;
43 
44 /// \brief Set up Wii U GamePad camera.
45 ///
46 void DEMODRCCameraInit(DRC_CAMERA_FPS fps);
47 
48 /// \brief Release Wii U GamePad camera
49 ///
50 void DEMODRCCameraShutdown(void);
51 
52 /// \brief Open Wii U GamePad camera.
53 ///
54 void DEMODRCCameraOpen(void);
55 
56 /// \brief Close Wii U GamePad camera
57 ///
58 void DEMODRCCameraClose(void);
59 
60 /// \brief Safely allocate memory for camera usage
61 ///
62 void* DEMODRCCameraMemAlloc(int size, int alignment);
63 
64 
65 /// @}  // demoDRCCamera
66 
67 #ifdef __cplusplus
68 }
69 #endif
70 
71 #endif /// __DEMO_DRC_CAMERA_H__
72