39 lines
751 B
C++
39 lines
751 B
C++
#include "forwardmodule.h"
|
|
#include "scene.h"
|
|
#include "phongentity.h"
|
|
#include "mesh.h"
|
|
#include "material.h"
|
|
|
|
const char* const ForwardModule::flagStr[ForwardModule::NB_FLAGS] =
|
|
{
|
|
"NORMAL_MAP",
|
|
"DIFFUSE_TEXTURE",
|
|
"SPECULAR_TEXTURE",
|
|
"ALPHA_MASK"
|
|
};
|
|
|
|
void ForwardModule::renderGL(Camera* myCamera, Scene* scene)
|
|
{
|
|
|
|
}
|
|
|
|
// modern opengl methods
|
|
|
|
void ForwardModule::setShaderSource(ShaderSource* source)
|
|
{
|
|
shaderSources = source;
|
|
}
|
|
|
|
void ForwardModule::compileShaders(Scene* scene)
|
|
{
|
|
for(SceneIterator<PhongEntity*>* EntityIt = scene->getGeometry();
|
|
EntityIt->isValid(); EntityIt->next())
|
|
{
|
|
Mesh* m = EntityIt->getItem()->getMesh();
|
|
for(Mesh::Group &g : m->indiceGroups)
|
|
{
|
|
|
|
}
|
|
}
|
|
}
|