24 lines
426 B
C++
24 lines
426 B
C++
#ifndef TEXTURE_HPP
|
|
#define TEXTURE_HPP
|
|
#define GL_GLEXT_PROTOTYPES
|
|
|
|
// Includes
|
|
#include <SDL3_image/SDL_image.h>
|
|
#include <SDL3/SDL_opengl.h>
|
|
#include <iostream>
|
|
|
|
// Functions
|
|
void flip_surface(SDL_Surface* surface);
|
|
|
|
// Classes
|
|
class Texture {
|
|
public:
|
|
unsigned int ID;
|
|
Texture(const char* file_path);
|
|
~Texture();
|
|
void bind() const;
|
|
void bind(unsigned int unit) const;
|
|
void unbind() const;
|
|
};
|
|
|
|
#endif |