Panda3D
dxShaderContext9.I
Go to the documentation of this file.
1 /**
2  * PANDA 3D SOFTWARE
3  * Copyright (c) Carnegie Mellon University. All rights reserved.
4  *
5  * All use of this software is subject to the terms of the revised BSD
6  * license. You should have received a copy of this license along
7  * with this source code in a file named "LICENSE."
8  *
9  * @file dxShaderContext9.I
10  * @author aignacio
11  * @date 2006-01
12  */
13 
14 /**
15  * Returns true if the shader is "valid", ie, if the compilation was
16  * successful. The compilation could fail if there is a syntax error in the
17  * shader, or if the current video card isn't shader-capable, or if no shader
18  * languages are compiled into panda.
19  */
20 INLINE bool DXShaderContext9::
21 valid(GSG *gsg) {
22 #ifdef HAVE_CG
23  return (_cg_program != 0);
24 #else
25  return false;
26 #endif
27 }
A GraphicsStateGuardian for rendering into DirectX9 contexts.