update djstdlib
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#include <glm/gtc/type_ptr.hpp>
|
||||
#include "Shader.h"
|
||||
#include "../lib/djstdlib/core.h"
|
||||
#include "../lib/djstdlib/os.h"
|
||||
#include "../lib/glad/glad.h"
|
||||
|
||||
enum ShaderType {
|
||||
@@ -10,7 +11,7 @@ enum ShaderType {
|
||||
|
||||
uint32 createGlShader(string file_path, ShaderType shader_type) {
|
||||
Scratch temp = scratchStart(0, 0);
|
||||
string shader_code = readEntireFile(temp.arena, file_path);
|
||||
string shader_code = os_readEntireFile(temp.arena, file_path);
|
||||
GLuint shader = glCreateShader(shader_type);
|
||||
const char *shader_code_cstr = cstring(temp.arena, shader_code);
|
||||
glShaderSource(shader, 1, &shader_code_cstr, NULL);
|
||||
|
||||
Reference in New Issue
Block a user