mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-17 20:19:20 +02:00
27 lines
458 B
C++
27 lines
458 B
C++
module;
|
|
#include "glad/glad.h"
|
|
|
|
export module eu07.gl.cubemap;
|
|
import eu07.gl.object;
|
|
|
|
export {
|
|
|
|
|
|
namespace gl
|
|
{
|
|
// cubemap texture rendertarget
|
|
// todo: integrate with texture system
|
|
class cubemap : public object
|
|
{
|
|
public:
|
|
cubemap();
|
|
~cubemap();
|
|
|
|
void alloc(GLint format, int width, int height, GLenum components, GLenum type);
|
|
void bind(int unit);
|
|
void generate_mipmaps();
|
|
};
|
|
}
|
|
|
|
} // export
|