handmade/include/lib_GL_common.h

15 lines
391 B
C
Raw Normal View History

#pragma once
#include <string>
#include <GL/glew.h>
#include <SDL_video.h>
void common_GL_Init (SDL_Window*, SDL_GLContext*, int);
void common_GL_TexParameters (const GLenum, const GLenum, const GLenum, const GLenum, const GLenum);
GLuint common_GL_SurfaceFormat (SDL_Surface*);
GLuint common_GL_LoadTextureSurface (SDL_Surface*);
GLuint common_GL_LoadTexturePath (const std::string&);