AppleWin/source/frontends/sdl/imgui/image.h
Andrea Odetti b204dc5362 Split glTexImage2D and update via glTexSubImage2D.
From the doc, it might allow for better performance.

Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-02-13 12:55:32 +00:00

7 lines
246 B
C

#pragma once
#include <cstddef>
#include "frontends/sdl/imgui/gles.h"
void allocateTexture(GLuint texture, size_t width, size_t height);
void loadTextureFromData(GLuint texture, const uint8_t * data, size_t width, size_t height, size_t pitch);