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 440 of file StdMeshMaterial.h.


Class Documentation

struct StdMeshMaterialPass::ProgramInstance::ParameterRef

Definition at line 449 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 1206 of file StdMeshMaterial.cpp.

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

1206  :
1207  Program(program)
1208 {
1209  // Consistency check
1210  assert(Program->GetFragmentShader() == fragment_instance->Shader);
1211  assert(Program->GetVertexShader() == vertex_instance->Shader);
1212  assert(Program->GetGeometryShader() == geometry_instance->Shader);
1213 
1214  // Load instance parameters, i.e. connect parameter values with uniform index
1215  LoadParameterRefs(fragment_instance);
1216  LoadParameterRefs(vertex_instance);
1217  LoadParameterRefs(geometry_instance);
1218 }
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 454 of file StdMeshMaterial.h.

const StdMeshMaterialProgram* const StdMeshMaterialPass::ProgramInstance::Program

Definition at line 446 of file StdMeshMaterial.h.

Referenced by ProgramInstance().


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