HDK
|
#include <simpleLightingContext.h>
Public Types | |
typedef GlfSimpleLightingContext | This |
Public Types inherited from TfRefBase | |
typedef void(* | UniqueChangedFuncPtr )(TfRefBase const *, bool) |
Public Member Functions | |
GLF_API void | SetLights (GlfSimpleLightVector const &lights) |
GLF_API GlfSimpleLightVector const & | GetLights () const |
GLF_API int | GetNumLightsUsed () const |
GLF_API int | ComputeNumShadowsUsed () const |
GLF_API void | SetShadows (GlfSimpleShadowArrayRefPtr const &shadows) |
GLF_API GlfSimpleShadowArrayRefPtr const & | GetShadows () const |
GLF_API void | SetMaterial (GlfSimpleMaterial const &material) |
GLF_API GlfSimpleMaterial const & | GetMaterial () const |
GLF_API void | SetSceneAmbient (GfVec4f const &sceneAmbient) |
GLF_API GfVec4f const & | GetSceneAmbient () const |
GLF_API void | SetCamera (GfMatrix4d const &worldToViewMatrix, GfMatrix4d const &projectionMatrix) |
GLF_API void | SetUseLighting (bool val) |
GLF_API bool | GetUseLighting () const |
GLF_API bool | GetUseShadows () const |
GLF_API void | SetUseColorMaterialDiffuse (bool val) |
GLF_API bool | GetUseColorMaterialDiffuse () const |
GLF_API void | InitUniformBlockBindings (GlfBindingMapPtr const &bindingMap) const |
GLF_API void | InitSamplerUnitBindings (GlfBindingMapPtr const &bindingMap) const |
GLF_API void | BindUniformBlocks (GlfBindingMapPtr const &bindingMap) |
GLF_API void | BindSamplers (GlfBindingMapPtr const &bindingMap) |
GLF_API void | UnbindSamplers (GlfBindingMapPtr const &bindingMap) |
GLF_API void | SetStateFromOpenGL () |
Post Surface Lighting | |
This context can provide additional shader source, currently used to implement post surface lighting, along with a hash to help de-duplicate use by client shader programs. | |
GLF_API size_t | ComputeShaderSourceHash () |
GLF_API std::string const & | ComputeShaderSource (TfToken const &shaderStageKey) |
Public Member Functions inherited from TfRefBase | |
TfRefBase () | |
TfRefBase (TfRefBase const &) | |
TfRefBase & | operator= (TfRefBase const &) |
size_t | GetCurrentCount () const |
Return the current reference count of this object. More... | |
bool | IsUnique () const |
Return true if only one TfRefPtr points to this object. More... | |
void | SetShouldInvokeUniqueChangedListener (bool shouldCall) |
Public Member Functions inherited from TfWeakBase | |
TfWeakBase () | |
TfWeakBase (const TfWeakBase &) | |
const TfWeakBase & | __GetTfWeakBase__ () const |
const TfWeakBase & | operator= (const TfWeakBase &) |
void | EnableNotification2 () const |
TF_API void const * | GetUniqueIdentifier () const |
Static Public Member Functions | |
static GLF_API GlfSimpleLightingContextRefPtr | New () |
Static Public Member Functions inherited from TfRefBase | |
static TF_API void | SetUniqueChangedListener (UniqueChangedListener listener) |
Protected Member Functions | |
GLF_API | GlfSimpleLightingContext () |
GLF_API | ~GlfSimpleLightingContext () |
void | _ComputePostSurfaceShaderState () |
void | _BindPostSurfaceShaderParams (GlfBindingMapPtr const &bindingMap) |
Protected Member Functions inherited from TfRefBase | |
virtual TF_API | ~TfRefBase () |
Protected Member Functions inherited from TfWeakBase | |
~TfWeakBase () | |
TfRefPtr< Tf_Remnant > | _Register () const |
template<class T > | |
TfRefPtr< Tf_Remnant > | _Register (T *tempRmnt) const |
bool | _HasRemnant () const |
Definition at line 53 of file simpleLightingContext.h.
Definition at line 55 of file simpleLightingContext.h.
|
protected |
|
protected |
|
protected |
|
protected |
GLF_API std::string const& GlfSimpleLightingContext::ComputeShaderSource | ( | TfToken const & | shaderStageKey | ) |
GLF_API size_t GlfSimpleLightingContext::ComputeShaderSourceHash | ( | ) |
GLF_API GlfSimpleLightVector const& GlfSimpleLightingContext::GetLights | ( | ) | const |
GLF_API GlfSimpleMaterial const& GlfSimpleLightingContext::GetMaterial | ( | ) | const |
GLF_API GlfSimpleShadowArrayRefPtr const& GlfSimpleLightingContext::GetShadows | ( | ) | const |
GLF_API bool GlfSimpleLightingContext::GetUseColorMaterialDiffuse | ( | ) | const |
GLF_API bool GlfSimpleLightingContext::GetUseLighting | ( | ) | const |
GLF_API bool GlfSimpleLightingContext::GetUseShadows | ( | ) | const |
GLF_API void GlfSimpleLightingContext::InitSamplerUnitBindings | ( | GlfBindingMapPtr const & | bindingMap | ) | const |
GLF_API void GlfSimpleLightingContext::InitUniformBlockBindings | ( | GlfBindingMapPtr const & | bindingMap | ) | const |
|
static |
GLF_API void GlfSimpleLightingContext::SetCamera | ( | GfMatrix4d const & | worldToViewMatrix, |
GfMatrix4d const & | projectionMatrix | ||
) |
GLF_API void GlfSimpleLightingContext::SetLights | ( | GlfSimpleLightVector const & | lights | ) |
GLF_API void GlfSimpleLightingContext::SetMaterial | ( | GlfSimpleMaterial const & | material | ) |