#include "storage.h"
#include "../gpu/bgl.h"
#include "../gpu/texture_handler.h"
#include "../utils/string_builder.h"
#include "../utils/bitset.h"
#include "../exception.h"
#include "../platform.h"
#include <cstring>
#include <map>
Go to the source code of this file.
◆ bind()
Definition at line 38 of file storage.cpp.
39 glActiveTexture(GL_TEXTURE0 + unit);
40 glBindTexture(GL_TEXTURE_2D, texture);
41 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
42 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
44 GL::GLException::check(
"binding storage texture");