#include "BsGLSLProgramFactory.h" #include "BsGLSLGpuProgram.h" namespace BansheeEngine { const String GLSLProgramFactory::LANGUAGE_NAME = "glsl"; const String& GLSLProgramFactory::getLanguage() const { return LANGUAGE_NAME; } SPtr GLSLProgramFactory::create(const String& source, const String& entryPoint, GpuProgramType gptype, GpuProgramProfile profile, bool requireAdjacency) { GLSLGpuProgramCore* prog = new (bs_alloc()) GLSLGpuProgramCore(source, entryPoint, gptype, profile, requireAdjacency); SPtr gpuProg = bs_shared_ptr(prog); gpuProg->_setThisPtr(gpuProg); return gpuProg; } SPtr GLSLProgramFactory::create(GpuProgramType type) { GLSLGpuProgramCore* prog = new (bs_alloc()) GLSLGpuProgramCore("", "", type, GPP_NONE, false); SPtr gpuProg = bs_shared_ptr(prog); gpuProg->_setThisPtr(gpuProg); return gpuProg; } }