mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 19:41:51 +00:00
memory refactor Texture and ImageData
This commit is contained in:
parent
ce9c5b97c7
commit
c0dca31e98
14 changed files with 191 additions and 160 deletions
|
|
@ -4,7 +4,7 @@
|
|||
#include <GL/glew.h>
|
||||
|
||||
Cubemap::Cubemap(uint width, uint height, ImageFormat imageFormat)
|
||||
: Texture(0, width, height)
|
||||
: GLTexture(0, width, height)
|
||||
{
|
||||
glGenTextures(1, &id);
|
||||
glBindTexture(GL_TEXTURE_CUBE_MAP, id);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue