mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-09 04:51:49 +00:00
memory-related refactor
This commit is contained in:
parent
d437b67580
commit
43903bb378
9 changed files with 41 additions and 36 deletions
|
|
@ -4,6 +4,7 @@
|
|||
#include "../../typedefs.hpp"
|
||||
|
||||
#include <string>
|
||||
#include <memory>
|
||||
#include <unordered_map>
|
||||
#include <glm/glm.hpp>
|
||||
|
||||
|
|
@ -36,7 +37,7 @@ public:
|
|||
/// @param vertexSource vertex shader source code
|
||||
/// @param fragmentSource fragment shader source code
|
||||
/// @return linked shader program containing vertex and fragment shaders
|
||||
static Shader* create(
|
||||
static std::unique_ptr<Shader> create(
|
||||
const std::string& vertexFile,
|
||||
const std::string& fragmentFile,
|
||||
const std::string& vertexSource,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue