31 class API_AUI_VIEWS State {
35 State(
const State&) =
delete;
36 template <
int K,
typename F,
typename... Args>
37 inline static void impl(F functor, Args... args) {
39 static std::tuple<Args...> prevState;
40 std::tuple<Args...> state(args...);
41 if (prevState != state) {
50 static void bindTexture(GLenum mode, GLuint texture);
51 static void activeTexture(uint8_t index);
52 static void useProgram(GLuint program);
53 static void bindFramebuffer(GLenum type, GLuint framebuffer);
54 static void bindVertexArray(GLuint handle);