sent from android
This commit is contained in:
24
include/texture.hpp
Normal file
24
include/texture.hpp
Normal file
@@ -0,0 +1,24 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user