All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GlfSimpleLightingContext Class Reference

#include <simpleLightingContext.h>

+ Inheritance diagram for GlfSimpleLightingContext:

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
GetLights () const
GLF_API int GetNumLightsUsed () const
GLF_API int ComputeNumShadowsUsed () const
GLF_API void SetShadows (GlfSimpleShadowArrayRefPtr const &shadows)
GetShadows () const
GLF_API void SetMaterial (GlfSimpleMaterial const &material)
GLF_API GlfSimpleMaterial constGetMaterial () const
GLF_API void SetSceneAmbient (GfVec4f const &sceneAmbient)
GLF_API GfVec4f constGetSceneAmbient () 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 constComputeShaderSource (TfToken const &shaderStageKey)
- Public Member Functions inherited from TfRefBase
 TfRefBase ()
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...
const TfRefCountGetRefCount () const
void SetShouldInvokeUniqueChangedListener (bool shouldCall)
- Public Member Functions inherited from TfWeakBase
 TfWeakBase ()
 TfWeakBase (const TfWeakBase &)
const TfWeakBase__GetTfWeakBase__ () const
const TfWeakBaseoperator= (const TfWeakBase &)
void EnableNotification2 () const
TF_API void constGetUniqueIdentifier () const

Static Public Member Functions

static GLF_API
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

Detailed Description

Definition at line 53 of file simpleLightingContext.h.

Member Typedef Documentation

Constructor & Destructor Documentation

GLF_API GlfSimpleLightingContext::GlfSimpleLightingContext ( )
GLF_API GlfSimpleLightingContext::~GlfSimpleLightingContext ( )

Member Function Documentation

void GlfSimpleLightingContext::_BindPostSurfaceShaderParams ( GlfBindingMapPtr const bindingMap)
void GlfSimpleLightingContext::_ComputePostSurfaceShaderState ( )
GLF_API void GlfSimpleLightingContext::BindSamplers ( GlfBindingMapPtr const bindingMap)
GLF_API void GlfSimpleLightingContext::BindUniformBlocks ( GlfBindingMapPtr const bindingMap)
GLF_API int GlfSimpleLightingContext::ComputeNumShadowsUsed ( ) const
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 int GlfSimpleLightingContext::GetNumLightsUsed ( ) const
GLF_API GfVec4f const& GlfSimpleLightingContext::GetSceneAmbient ( ) 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 GlfSimpleLightingContextRefPtr GlfSimpleLightingContext::New ( )
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)
GLF_API void GlfSimpleLightingContext::SetSceneAmbient ( GfVec4f const sceneAmbient)
GLF_API void GlfSimpleLightingContext::SetShadows ( GlfSimpleShadowArrayRefPtr const shadows)
GLF_API void GlfSimpleLightingContext::SetStateFromOpenGL ( )
GLF_API void GlfSimpleLightingContext::SetUseColorMaterialDiffuse ( bool  val)
GLF_API void GlfSimpleLightingContext::SetUseLighting ( bool  val)
GLF_API void GlfSimpleLightingContext::UnbindSamplers ( GlfBindingMapPtr const bindingMap)

The documentation for this class was generated from the following file: