OpenClonk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
StdMeshMaterialPass::ProgramInstance Class Reference

#include <StdMeshMaterial.h>

Collaboration diagram for StdMeshMaterialPass::ProgramInstance:
[legend]

Classes

struct  ParameterRef
 

Public Member Functions

 ProgramInstance (const StdMeshMaterialProgram *program, const ShaderInstance *fragment_instance, const ShaderInstance *vertex_instance, const ShaderInstance *geometry_instance)
 

Public Attributes

const StdMeshMaterialProgram *const Program
 
std::vector< ParameterRefParameters
 

Detailed Description

Definition at line 437 of file StdMeshMaterial.h.


Class Documentation

struct StdMeshMaterialPass::ProgramInstance::ParameterRef

Definition at line 446 of file StdMeshMaterial.h.

Collaboration diagram for StdMeshMaterialPass::ProgramInstance::ParameterRef:
[legend]
Class Members
const
StdMeshMaterialShaderParameter *
Parameter
int UniformIndex

Constructor & Destructor Documentation

StdMeshMaterialPass::ProgramInstance::ProgramInstance ( const StdMeshMaterialProgram program,
const ShaderInstance fragment_instance,
const ShaderInstance vertex_instance,
const ShaderInstance geometry_instance 
)

Definition at line 1186 of file StdMeshMaterial.cpp.

References StdMeshMaterialProgram::GetFragmentShader(), StdMeshMaterialProgram::GetGeometryShader(), StdMeshMaterialProgram::GetVertexShader(), Program, and StdMeshMaterialPass::ShaderInstance::Shader.

1186  :
1187  Program(program)
1188 {
1189  // Consistency check
1190  assert(Program->GetFragmentShader() == fragment_instance->Shader);
1191  assert(Program->GetVertexShader() == vertex_instance->Shader);
1192  assert(Program->GetGeometryShader() == geometry_instance->Shader);
1193 
1194  // Load instance parameters, i.e. connect parameter values with uniform index
1195  LoadParameterRefs(fragment_instance);
1196  LoadParameterRefs(vertex_instance);
1197  LoadParameterRefs(geometry_instance);
1198 }
const StdMeshMaterialShader * GetGeometryShader() const
const StdMeshMaterialShader * GetVertexShader() const
const StdMeshMaterialShader * GetFragmentShader() const
const StdMeshMaterialProgram *const Program

Here is the call graph for this function:

Member Data Documentation

std::vector<ParameterRef> StdMeshMaterialPass::ProgramInstance::Parameters

Definition at line 451 of file StdMeshMaterial.h.

const StdMeshMaterialProgram* const StdMeshMaterialPass::ProgramInstance::Program

Definition at line 443 of file StdMeshMaterial.h.

Referenced by ProgramInstance().


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