You.i Engine
YiGraphics.h
Go to the documentation of this file.
1 // © You i Labs Inc. 2000-2017. All rights reserved.
2 #ifndef _YI_GRAPHICS_H_
3 #define _YI_GRAPHICS_H_
4 
10 const unsigned int YI_SHADER_PROGRAM_INVALID = 0;
11 const unsigned int YI_BUFFER_OBJECT_INVALID = 0;
12 const unsigned int YI_TEXTURE_INVALID = 0;
13 
14 #if defined(YI_OPENGL2_RENDERING) || defined(YI_OPENGL_ES2_RENDERING)
15 
16  // Only include the GL Types to minize compilation time.
17  // If you need OpenGL definitions, please include renderer/YiGLDefines.h.
18  // If you need OpenGL functions, please include renderer/YiGL.h.
19  // If you need OpenGL extensions, please include renderer/YiGLExt.h.
20  #include <renderer/YiGLTypes.h>
21 
22 #elif defined(YI_DIRECT3D11_RENDERING)
23 
24  #if defined(YI_UWP)
25  #include <wrl.h>
26  #include <DirectXMath.h>
27 
28  #if defined (_TITLE)
29  // Games use a different version of Direct3D
30  #if !defined(YI_DEBUG) && !defined(PROFILE)
31  #define D3DCOMPILE_NO_DEBUG 1
32  #endif
33  #include <d3d11_x.h>
34  #include <d3d11shader_x.h>
35  #include <d3dcompiler_x.h>
36  #else
37  #include <d3d11.h>
38  #include <d3d11_1.h>
39  #include <d3d11shader.h>
40  #include <d3dcompiler.h>
41  #endif
42  #else
43  #include <d3d11.h>
44  #include <d3d11shader.h>
45  #include <d3dcompiler.h>
46  #endif
47 
48 #elif defined(YI_GNM_RENDERING)
49 
50  #include <gnm.h>
51  #include <gnmx.h>
52 
53 #else
54 
55  #error "OPENGL build flag missing."
56  #error "Use YI_OPENGL2_RENDERING or YI_OPENGL_ES2_RENDERING"
57 
58 #endif
59 
64 #endif // _YI_GRAPHICS_H_
65 
const unsigned int YI_SHADER_PROGRAM_INVALID
Definition: YiGraphics.h:10
const unsigned int YI_BUFFER_OBJECT_INVALID
Definition: YiGraphics.h:11
const unsigned int YI_TEXTURE_INVALID
Definition: YiGraphics.h:12