mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-03-22 15:05:03 +01:00
20 lines
381 B
C++
20 lines
381 B
C++
#pragma once
|
|
|
|
#include "object.h"
|
|
|
|
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();
|
|
};
|
|
}
|