zenilib: zenilib/jni/external/zenilib/zeni_graphics/Zeni/Shader.hxx Source File

zenilib 0.5.3.0

- Main Page
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

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
29 GLuint Shader_GL_Fixed::get() const {
30 return m_shader;
31 }
32
33 GLuint Program_GL_Fixed::get() const {
34 return m_program;
35 }
36 #endif
37
38 #ifndef DISABLE_GL_SHADER
39 GLuint Shader_GL_Shader::get() const {
40 return m_shader;
41 }
42
43 GLuint Program_GL_Shader::get() const {
44 return m_program;
45 }
46 #endif
47
48 #ifndef DISABLE_DX9
49 Shader::Type Shader_DX9::type() const {
50 return m_constant_table ? Shader::VERTEX : Shader::FRAGMENT;
51 }
52
53 LPD3DXCONSTANTTABLE Shader_DX9::get_constant_table() const {
54 return m_constant_table;
55 }
56
57 LPDIRECT3DVERTEXSHADER9 Shader_DX9::get_vertex_shader() const {
58 return m_vertex_shader;
59 }
60
61 LPDIRECT3DPIXELSHADER9 Shader_DX9::get_pixel_shader() const {
62 return m_pixel_shader;
63 }
64
65 const Shader_DX9 * Program_DX9::get_vertex_shader() const {
66 return m_vertex_shader;
67 }
68
69 const Shader_DX9 * Program_DX9::get_fragment_shader() const {
70 return m_fragment_shader;
71 }
72 #endif
73
74 }
75
76 #include <Zeni/Video.hxx>
77
78 #endif
Zeni::Program_GL_Shader::get
GLuint get() const
Definition: Shader.hxx:43
Zeni::Shader_DX9::get_constant_table
LPD3DXCONSTANTTABLE get_constant_table() const
Definition: Shader.hxx:53
Zeni::Shader_DX9
Definition: Shader.h:203
Zeni::Shader_DX9::get_vertex_shader
LPDIRECT3DVERTEXSHADER9 get_vertex_shader() const
Definition: Shader.hxx:57
Shader.h
Zeni::Shader_DX9::type
Shader::Type type() const
Definition: Shader.hxx:49
Video.h
Zeni::Shader_GL_Fixed::get
GLuint get() const
Definition: Shader.hxx:29
Zeni::Shader_DX9::get_pixel_shader
LPDIRECT3DPIXELSHADER9 get_pixel_shader() const
Definition: Shader.hxx:61
Zeni::Program_DX9::get_fragment_shader
const Shader_DX9 * get_fragment_shader() const
Definition: Shader.hxx:69
Zeni::Shader::VERTEX
Definition: Shader.h:102
Video.hxx
LPDIRECT3DVERTEXSHADER9
struct IDirect3DVertexShader9 * LPDIRECT3DVERTEXSHADER9
Definition: d3d9.h:1040
LPDIRECT3DPIXELSHADER9
struct IDirect3DPixelShader9 * LPDIRECT3DPIXELSHADER9
Definition: d3d9.h:1079
Zeni::Shader::Type
Type
Definition: Shader.h:102
LPD3DXCONSTANTTABLE
interface ID3DXConstantTable * LPD3DXCONSTANTTABLE
Definition: d3dx9shader.h:269
Zeni::Shader_DX9::m_pixel_shader
LPDIRECT3DPIXELSHADER9 m_pixel_shader
Definition: Shader.h:220
Zeni::Shader_GL_Shader::get
GLuint get() const
Definition: Shader.hxx:39
Zeni::Program_DX9::get_vertex_shader
const Shader_DX9 * get_vertex_shader() const
Definition: Shader.hxx:65
Zeni::Program_GL_Fixed::get
GLuint get() const
Definition: Shader.hxx:33
Zeni::Shader_DX9::m_vertex_shader
LPDIRECT3DVERTEXSHADER9 m_vertex_shader
Definition: Shader.h:219
GLuint
unsigned int GLuint
Definition: gl2.h:32
Zeni::Shader::FRAGMENT
Definition: Shader.h:102