Linloir 955c8da52e
Update mesh class
- set vertex attribute on setup mesh
- use new API of shader.setUniform
2022-12-13 12:29:54 +08:00

11 lines
328 B
C

#pragma once
#include <qopenglcontext.h>
#include <qopenglfunctions.h>
#include <qopenglextrafunctions.h>
#define OFFSETOF(TYPE, ELEMENT) ((size_t)&(((TYPE *)0)->ELEMENT))
#define OPENGL_FUNCTIONS QOpenGLContext::currentContext()->functions()
#define OPENGL_EXTRA_FUNCTIONS QOpenGLContext::currentContext()->extraFunctions()