ShaderProgram* WindowsGame::createShaderProgram() { ShaderProgram* program = new ShaderProgram(); VertexShader vertexShader; vertexShader.initialize(graphicsDevice, VertexShaderSource, sizeof(VertexShaderSource)); PixelShader pixelShader; pixelShader.initialize(graphicsDevice, PixelShaderSource, sizeof(PixelShaderSource)); program->initialize(graphicsDevice); program->setVertexShader(&vertexShader); program->setPixelShader(&pixelShader); return program; }