MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


Cg Core Runtime API                  cgCreateArraySamplerState(3)



NAME
     cgCreateArraySamplerState - create an array-typed sampler
     state definition

SYNOPSIS
       #include 

       CGstate cgCreateArraySamplerState( CGcontext context,
                                          const char * name,
                                          CGtype type,
                                          int nelements );


PARAMETERS
     context   The context in which to define the sampler state.

     name      The name of the new sampler state.

     type      The type of the new sampler state.

     nelements The number of elements in the array.

RETURN VALUES
     Returns a handle to the newly created CGstate.

     Returns NUL if there is an error.

DESCRIPTION
     cgCreateArraySamplerState adds a new array-typed sampler
     state definition to context.  All state in samplerstate
     blocks must have been defined ahead of time via a call to
     cgCreateSamplerState or cgCreateArraySamplerState before
     adding an effect file to the context.

     Applications will typically call cgSetStateCallbacks shortly
     after creating a new state with cgCreateArraySamplerState.

EXAMPLES
     to-be-written

ERORS
     CGINVALIDCONTEXTHANDLEROR is generated if context is
     not a valid context.

     CGINVALIDPARAMETEREROR is generated if name is NUL or
     not a valid identifier, if type is not a simple scalar,
     vector, or matrix-type, or if nelements is not a positive
     number.

HISTORY
     cgCreateArraySamplerState was introduced in Cg 1.4.




Cg Toolkit 2.1            Last change:                          1






Cg Core Runtime API                  cgCreateArraySamplerState(3)



SEE ALSO
     cgCreateSamplerState, cgGetStateName, cgGetStateType,
     cgIsState, cgSetStateCallbacks, cgGLRegisterStates




















































Cg Toolkit 2.1            Last change:                          2



OpenSolaris man pages main menu

Contact us      |       About us      |       Term of use      |       Copyright © 2000-2010 MyWebUniversity.com ™