#include "nvsgcommon.h"
#include "CgFX/ICgFXEffect.h"
#include "nvsg/StateAttribute.h"
#include <string>
#include <vector>
Include dependency graph for CgFx.h:
Go to the source code of this file.
Namespaces | |
namespace | nvsg |
Typedefs | |
typedef const CgFxAnnotation * | CgFxAnnotationHandle |
Handle to a CgFxAnnotation . | |
typedef const CgFxParameter * | CgFxParameterHandle |
Handle to a CgFxParameter . | |
typedef const CgFxTechnique * | CgFxTechniqueHandle |
Handle to a CgFxTechnique . | |
typedef const CgFxPass * | CgFxPassHandle |
Handle to a CgFxPass . | |
typedef std::pair< eCgFxSemantic, CgFxParameterHandle > | CgFxTransform |
A pair of a eCgFxSemantic and a CgFxParameterHandle . | |
Enumerations | |
enum | eCgFxSemantic { CGFX_SEMANTIC_UNKNOWN = 0, CGFX_SEMANTIC_WORLD, CGFX_SEMANTIC_FIRST_TRANSFORM = CGFX_SEMANTIC_WORLD, CGFX_SEMANTIC_VIEW, CGFX_SEMANTIC_PROJECTION, CGFX_SEMANTIC_WORLDT, CGFX_SEMANTIC_VIEWT, CGFX_SEMANTIC_PROJECTIONT, CGFX_SEMANTIC_WORLDI, CGFX_SEMANTIC_VIEWI, CGFX_SEMANTIC_PROJECTIONI, CGFX_SEMANTIC_WORLDIT, CGFX_SEMANTIC_VIEWIT, CGFX_SEMANTIC_PROJECTIONIT, CGFX_SEMANTIC_WORLDVIEW, CGFX_SEMANTIC_WORLDVIEWPROJECTION, CGFX_SEMANTIC_WORLDVIEWT, CGFX_SEMANTIC_WORLDVIEWPROJECTIONT, CGFX_SEMANTIC_WORLDVIEWI, CGFX_SEMANTIC_WORLDVIEWPROJECTIONI, CGFX_SEMANTIC_WORLDVIEWIT, CGFX_SEMANTIC_WORLDVIEWPROJECTIONIT, CGFX_SEMANTIC_LAST_TRANSFORM = CGFX_SEMANTIC_WORLDVIEWPROJECTIONIT } |
Functions | |
NVSG_API bool | CgFx_getTextureFileName (const CgFx *cgfx, CgFxParameterHandle hdl, std::string &file) |
Get texture file name. | |
NVSG_API void | CgFx_setTextureFileName (CgFx *cgfx, CgFxParameterHandle hdl, const std::string &file) |
Set texture file name. | |
const char * | getParameterName (CgFxParameterHandle hdl) |
Get the name for a certain parameter. | |
const char * | getPassName (CgFxPassHandle hdl) |
Get the name for a certain render pass. | |
const char * | getTechniqueName (CgFxTechniqueHandle hdl) |
Get the name for a certain render technique. | |
const char * | getParameterSemantic (CgFxParameterHandle hdl) |
Get the semantic for a certain parameter. | |
CgFXPARAMETERTYPE | getParameterType (CgFxParameterHandle hdl) |
Get the type of a certain parameter. | |
bool | isParameterScalarType (CgFxParameterHandle hdl) |
Detect if the parameter identified by hdl is a scalar type. | |
bool | isParameterVector2Type (CgFxParameterHandle hdl) |
Detect if the parameter identified by hdl is a two-dimensional vector type. | |
bool | isParameterVector3Type (CgFxParameterHandle hdl) |
Detect if the parameter identified by hdl is a three-dimensional vector type. | |
bool | isParameterVector4Type (CgFxParameterHandle hdl) |
Detect if the parameter identified by hdl is a four-dimensional vector type. | |
bool | isParameterMatrix33Type (CgFxParameterHandle hdl) |
Detect if the parameter identified by hdl is a 3x3 matrix type. | |
bool | isParameterMatrix34Type (CgFxParameterHandle hdl) |
Detect if the parameter identified by hdl is a 3x4 matrix type. | |
bool | isParameterMatrix43Type (CgFxParameterHandle hdl) |
Detect if the parameter identified by hdl is a 4x3 matrix type. | |
bool | isParameterMatrix44Type (CgFxParameterHandle hdl) |
Detect if the parameter identified by hdl is a 4x4 matrix type. | |
bool | isParameterTextureType (CgFxParameterHandle hdl) |
Detect if the parameter identified by hdl is a texture type. | |
bool | isParameterSamplerType (CgFxParameterHandle hdl) |
Detect if the parameter identified by hdl is a sampler type. | |
bool | isTechniqueValid (CgFxTechniqueHandle hdl) |
Detect whether the technique identified by hdl is valid. | |
Variables | |
class class class class class typedef const CgFxEntity * | CgFxEntityHandle |
Handle to a CgFxEntity . |
|
Handle to a
|
|
Handle to a
|
|
Handle to a
|
|
Handle to a
|
|
A pair of a
|
|
|
|
Get texture file name. If a texture filename is available for a texture type parameter identified by hdl, this function obtains the texture file name in fname.
|
|
Set texture file name. For a texture type parameter identified by hdl, this function sets the texture file name to file.
|
|
Get the name for a certain parameter.
|
|
Get the name for a certain render pass.
|
|
Get the name for a certain render technique.
|
|
Get the semantic for a certain parameter.
|
|
Get the type of a certain parameter.
|
|
Detect if the parameter identified by hdl is a scalar type.
|
|
Detect if the parameter identified by hdl is a two-dimensional vector type.
|
|
Detect if the parameter identified by hdl is a three-dimensional vector type.
|
|
Detect if the parameter identified by hdl is a four-dimensional vector type.
|
|
Detect if the parameter identified by hdl is a 3x3 matrix type.
|
|
Detect if the parameter identified by hdl is a 3x4 matrix type.
|
|
Detect if the parameter identified by hdl is a 4x3 matrix type.
|
|
Detect if the parameter identified by hdl is a 4x4 matrix type.
|
|
Detect if the parameter identified by hdl is a texture type.
|
|
Detect if the parameter identified by hdl is a sampler type.
|
|
Detect whether the technique identified by hdl is valid.
|
|
Handle to a
|