You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
669 B

4 years ago
4 years ago
4 years ago
  1. #pragma once
  2. #include "glew.h"
  3. GLuint CreateBufferObject(GLenum bufferType, GLsizeiptr size, GLenum usage, void* data = nullptr);
  4. char* LoadFileContent(const char *path);
  5. GLuint CompileShader(GLenum shaderType, const char* shaderPath);
  6. GLuint CreateGPUProgram(const char* vsShaderPath, const char* fsShaderPath);
  7. GLuint CreateTextureFromBMP(const char* imagePath);
  8. GLuint CreateTextureFromFile(const char* imagePath);
  9. GLuint CreateTextureFromDds(const char* imagePath);
  10. void SaveImage(const char* imgPath, unsigned char* imgData, int width, int height);
  11. void CheckGLError(const char* file, int line);
  12. #define GL_CALL(x) do{x;CheckGLError(__FILE__,__LINE__);}while(0)