zenilib  0.5.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Shader.hxx
Go to the documentation of this file.
1 /* This file is part of the Zenipex Library (zenilib).
2  * Copyright (C) 2011 Mitchell Keith Bloch (bazald).
3  *
4  * zenilib is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU Lesser General Public License as published by
6  * the Free Software Foundation, either version 3 of the License, or
7  * (at your option) any later version.
8  *
9  * zenilib is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public License
15  * along with zenilib. If not, see <http://www.gnu.org/licenses/>.
16  */
17 
18 #ifndef ZENI_SHADER_HXX
19 #define ZENI_SHADER_HXX
20 
21 // HXXed below
22 #include <Zeni/Video.h>
23 
24 #include <Zeni/Shader.h>
25 
26 namespace Zeni {
27 
28 #ifndef DISABLE_GL_FIXED
30  return m_shader;
31  }
32 
34  return m_program;
35  }
36 #endif
37 
38 #ifndef DISABLE_GL_SHADER
40  return m_shader;
41  }
42 
44  return m_program;
45  }
46 #endif
47 
48 #ifndef DISABLE_DX9
50  return m_constant_table ? Shader::VERTEX : Shader::FRAGMENT;
51  }
52 
54  return m_constant_table;
55  }
56 
58  return m_vertex_shader;
59  }
60 
62  return m_pixel_shader;
63  }
64 
66  return m_vertex_shader;
67  }
68 
70  return m_fragment_shader;
71  }
72 #endif
73 
74 }
75 
76 #include <Zeni/Video.hxx>
77 
78 #endif
GLuint get() const
Definition: Shader.hxx:43
LPD3DXCONSTANTTABLE get_constant_table() const
Definition: Shader.hxx:53
LPDIRECT3DVERTEXSHADER9 get_vertex_shader() const
Definition: Shader.hxx:57
Shader::Type type() const
Definition: Shader.hxx:49
GLuint get() const
Definition: Shader.hxx:29
LPDIRECT3DPIXELSHADER9 get_pixel_shader() const
Definition: Shader.hxx:61
const Shader_DX9 * get_fragment_shader() const
Definition: Shader.hxx:69
struct IDirect3DVertexShader9 * LPDIRECT3DVERTEXSHADER9
Definition: d3d9.h:1040
struct IDirect3DPixelShader9 * LPDIRECT3DPIXELSHADER9
Definition: d3d9.h:1079
interface ID3DXConstantTable * LPD3DXCONSTANTTABLE
Definition: d3dx9shader.h:269
LPDIRECT3DPIXELSHADER9 m_pixel_shader
Definition: Shader.h:220
GLuint get() const
Definition: Shader.hxx:39
const Shader_DX9 * get_vertex_shader() const
Definition: Shader.hxx:65
GLuint get() const
Definition: Shader.hxx:33
LPDIRECT3DVERTEXSHADER9 m_vertex_shader
Definition: Shader.h:219
unsigned int GLuint
Definition: gl2.h:32