#include "BsGLSLProgramFactory.h" #include "BsGLSLGpuProgram.h" namespace BansheeEngine { const String GLSLProgramFactory::LANGUAGE_NAME = "glsl"; const String& GLSLProgramFactory::getLanguage() const { return LANGUAGE_NAME; } GpuProgramPtr GLSLProgramFactory::create(const String& source, const String& entryPoint, GpuProgramType gptype, GpuProgramProfile profile, const Vector* includes, bool requireAdjacency) { GLSLGpuProgram* prog = new (bs_alloc()) GLSLGpuProgram(source, entryPoint, gptype, profile, includes, requireAdjacency); return bs_core_ptr(prog); } GpuProgramPtr GLSLProgramFactory::create(GpuProgramType type) { GLSLGpuProgram* prog = new (bs_alloc()) GLSLGpuProgram("", "", type, GPP_NONE, nullptr, false); return bs_core_ptr(prog); } }