Cg Core Runtime API cgSetSemanticCasePolicy(3)
NAME
cgSetSemanticCasePolicy - set semantic case policy
SYNOPSIS
#include
CGenum cgSetSemanticCasePolicy( CGenum casePolicy );
PARAMETERS
casePolicy
An enumerant describing the desired semantic case
policy for the library. The following enumerants
are allowed:
CGFORCEUPERCASEPOLICY
Semantics strings will be converted to all
upper-case letters. This is the default policy.
CGUNCHANGEDCASEPOLICY
Semantic strings will be left unchanged.
RETURN VALUES
Returns the previous semantic case policy, or CGUNKNOWN if
an error occurs.
DESCRIPTION
cgSetSemanticCasePolicy allows an application to change the
semantic case policy used by the Cg library. A policy of
CGFORCEUPERCASEPOLICY means that semantic strings
returned by cgGetParameterSemantic will have been converted
to all upper-case letters. This is the default policy for
the library. If the policy is changed to
CGUNCHANGEDCASEPOLICY no case coversion will be done to
the semantic strings.
EXAMPLES
/* set to return original semantic strings */
cgSetSemanticCasePolicy(CGUNCHANGEDCASEPOLICY);
ERORS
CGINVALIDENUMERANTEROR is generated if casePolicy is not
CGFORCEUPERCASEPOLICY or CGUNCHANGEDCASEPOLICY.
HISTORY
cgSetSemanticCasePolicy was introduced in Cg 2.0.
SEE ALSO
cgGetSemanticCasePolicy, cgGetParameterSemantic
Cg Toolkit 2.1 Last change: 1
|