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.

10 lines
588 B

5 years ago
5 years ago
  1. #pragma once
  2. #include "ggl.h"
  3. unsigned char * LoadFileContent(const char*path, int&filesize);
  4. GLuint CompileShader(GLenum shaderType, const char*shaderCode);
  5. GLuint CreateProgram(GLuint vsShader, GLuint fsShader);
  6. float GetFrameTime();
  7. unsigned char * DecodeBMP(unsigned char*bmpFileData, int&width, int&height);
  8. GLuint CreateTexture2D(unsigned char*pixelData, int width, int height, GLenum type);
  9. GLuint CreateTexture2DFromBMP(const char *bmpPath);
  10. GLuint CreateBufferObject(GLenum bufferType, GLsizeiptr size, GLenum usage, void*data = nullptr);
  11. GLuint CreateProcedureTexture(int size);