Tao.Cg SDK Documentation

Cg Methods

The methods of the Cg class are listed below. For a complete list of Cg class members, see the Cg Members topic.

Public Static (Shared) Methods

cgAddStateEnumerant
cgCallStateResetCallback
cgCallStateSetCallback
cgCallStateValidateCallback
cgCompileProgram Compile a program object.
cgConnectParameter
cgCopyProgram Makes a copy of the specified Cg program within the same context.
cgCreateArraySamplerState
cgCreateArrayState
cgCreateContext Creates a new Cg context to use.
cgCreateEffect
cgCreateEffectFromFile
cgCreateParameter
cgCreateParameterArray
cgCreateParameterMultiDimArray
cgCreateProgram Compiles and creates a Cg program.
cgCreateProgramFromEffect
cgCreateProgramFromFile Creates a Cg program from the specified file.
cgCreateSamplerState
cgCreateState
cgDestroyContext Destroys the specified Cg context.
cgDestroyEffect
cgDestroyParameter
cgDestroyProgram Destroys the specified Cg program.
cgDisconnectParameter
cgEvaluateProgram
cgGetAnnotationName
cgGetAnnotationType
cgGetArrayDimension Gets the dimension of an array parameter.
cgGetArrayParameter Gets the parameter from an array.
cgGetArraySize Gets the size of an array.
cgGetArrayTotalSize
cgGetArrayType
cgGetAutoCompile
cgGetBooleanAnnotationValues
cgGetBoolStateAssignmentValues
cgGetConnectedParameter
cgGetConnectedToParameter
cgGetDependentAnnotationParameter
cgGetDependentStateAssignmentParameter
cgGetEffectContext
cgGetEffectParameterBySemantic
cgGetEnum
cgGetEnumString
cgGetError Returns an error enum if an error has occured in the last Cg method call.
cgGetErrorCallback
cgGetErrorHandler
cgGetErrorString Returns an error description from the specified error enum value.
cgGetFirstDependentParameter
cgGetFirstEffect
cgGetFirstEffectParameter
cgGetFirstError
cgGetFirstLeafEffectParameter
cgGetFirstLeafParameter Used to get the first leaf parameter from the specified program.
cgGetFirstParameter Gets the first parameter in specified program.
cgGetFirstParameterAnnotation
cgGetFirstPass
cgGetFirstPassAnnotation
cgGetFirstProgram Gets the first program in a context.
cgGetFirstProgramAnnotation
cgGetFirstSamplerState
cgGetFirstSamplerStateAssignment
cgGetFirstState
cgGetFirstStateAssignment
cgGetFirstStructParameter Gets the first child parameter in a struct parameter.
cgGetFirstTechnique
cgGetFirstTechniqueAnnotation
cgGetFloatAnnotationValues
cgGetFloatStateAssignmentValues
cgGetIntAnnotationValues
cgGetIntStateAssignmentValues
cgGetLastErrorString
cgGetLastListing Gets the compiler output from the results of the most recent program compilation for the given Cg context.
cgGetMatrixParameterdc
cgGetMatrixParameterdr
cgGetMatrixParameterfc
cgGetMatrixParameterfr
cgGetMatrixParameteric
cgGetMatrixParameterir
cgGetNamedEffectParameter
cgGetNamedParameter Gets the named parameter from the program.
cgGetNamedParameterAnnotation
cgGetNamedPass
cgGetNamedPassAnnotation
cgGetNamedProgramAnnotation
cgGetNamedProgramParameter
cgGetNamedSamplerState
cgGetNamedSamplerStateAssignment
cgGetNamedState
cgGetNamedStateAssignment
cgGetNamedStructParameter
cgGetNamedTechnique
cgGetNamedTechniqueAnnotation
cgGetNamedUserType
cgGetNextAnnotation
cgGetNextEffect
cgGetNextLeafParameter Gets a handle to the leaf parameter directly following the specified param.
cgGetNextParameter Iterates to next parameter in program.
cgGetNextPass
cgGetNextProgram Iterate trough programs in a context.
cgGetNextState
cgGetNextStateAssignment
cgGetNextTechnique
cgGetNumConnectedToParameters
cgGetNumDependentAnnotationParameters
cgGetNumDependentStateAssignmentParameters
cgGetNumParentTypes
cgGetNumUserTypes
cgGetParameterBaseResource Gets a parameter's base resource.
cgGetParameterBaseType
cgGetParameterClass
cgGetParameterColumns
cgGetParameterContext
cgGetParameterDirection Gets the direction of this parameter, i.e. CG_IN, CG_OUT, CG_INOUT.
cgGetParameterIndex
cgGetParameterName Gets the name of the specified program.
cgGetParameterNamedType
cgGetParameterOrdinalNumber Returns an integer that represents the position of a parameter when it was declared within the Cg program.
cgGetParameterProgram Gets program that specified parameter belongs to.
cgGetParameterResource Gets a parameter's resource.
cgGetParameterResourceIndex Retrieves the index of the specifed parameter according to its type and variability.
cgGetParameterRows
cgGetParameterSemantic Gets the parameter's semantic string.
cgGetParameterType Gets the data type of the specified parameter.
cgGetParameterValuedc
cgGetParameterValuedr
cgGetParameterValuefc
cgGetParameterValuefr
cgGetParameterValueic
cgGetParameterValueir
cgGetParameterValuesOverloaded. Gets a program parameter's values.
cgGetParameterVariability Gets the variability of the specified param (i.e, uniform, varying, etc).
cgGetParentType
cgGetPassName
cgGetPassTechnique
cgGetProfile Returns a profile enum value based on the string representation of the profile.
cgGetProfileString
cgGetProgramContext Gets a programs parent context.
cgGetProgramOptions
cgGetProgramProfile Gets the profile enumeration of the program.
cgGetProgramStateAssignmentValue
cgGetProgramString Gets the specified source from the program.
cgGetResource Gets the resource enumerant assigned to a resource name.
cgGetResourceString get the resource name associated with a resource enumerant
cgGetSamplerStateAssignmentParameter
cgGetSamplerStateAssignmentState
cgGetSamplerStateAssignmentValue
cgGetStateAssignmentIndex
cgGetStateAssignmentPass
cgGetStateAssignmentState
cgGetStateName
cgGetStateResetCallback
cgGetStateSetCallback
cgGetStateType
cgGetStateValidateCallback
cgGetString
cgGetStringAnnotationValue
cgGetStringParameterValue
cgGetStringStateAssignmentValue
cgGetTechniqueEffect
cgGetTechniqueName
cgGetTextureStateAssignmentValue
cgGetType
cgGetTypeString
cgGetUserType
cgIsAnnotation
cgIsContext Given the specified context handle, returns true if it is a valid Cg context.
cgIsEffect
cgIsInterfaceType
cgIsParameter Determines if parameter is valid Cg parameter object.
cgIsParameterGlobal
cgIsParameterReferenced Queries whether the specified program will be used in the final compiled program.
cgIsParameterUsed
cgIsParentType
cgIsPass
cgIsProgram Determine if a program handle references a Cg program object.
cgIsProgramCompiled Determines if a program has been compiled.
cgIsState
cgIsStateAssignment
cgIsTechnique
cgIsTechniqueValidated
cgResetPassState
cgSetArraySize
cgSetAutoCompile
cgSetErrorCallback
cgSetErrorHandler
cgSetLastListing
cgSetMatrixParameterdc
cgSetMatrixParameterdr
cgSetMatrixParameterfc
cgSetMatrixParameterfr
cgSetMatrixParameteric
cgSetMatrixParameterir
cgSetMultiDimArraySize
cgSetParameter1d
cgSetParameter1dv
cgSetParameter1f
cgSetParameter1fv
cgSetParameter1i
cgSetParameter1iv
cgSetParameter2d
cgSetParameter2dv
cgSetParameter2f
cgSetParameter2fv
cgSetParameter2i
cgSetParameter2iv
cgSetParameter3d
cgSetParameter3dv
cgSetParameter3f
cgSetParameter3fv
cgSetParameter3i
cgSetParameter3iv
cgSetParameter4d
cgSetParameter4dv
cgSetParameter4f
cgSetParameter4fv
cgSetParameter4i
cgSetParameter4iv
cgSetParameterSemantic
cgSetParameterValuedc
cgSetParameterValuedr
cgSetParameterValuefc
cgSetParameterValuefr
cgSetParameterValueic
cgSetParameterValueir
cgSetParameterVariability
cgSetPassProgramParameters
cgSetPassState
cgSetProgramProfile
cgSetSamplerState
cgSetStateCallbacks
cgSetStringParameterValue
cgValidateTechnique

Public Instance Methods

Equals (inherited from Object) 
GetHashCode (inherited from Object) 
GetType (inherited from Object) 
ToString (inherited from Object) 

See Also

Cg Class | Tao.Cg Namespace