git-svn-id: svn://db.shs.com.ru/libs@564 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
@@ -20,6 +20,8 @@
|
||||
#define GLFRAMEBUFFER_H
|
||||
|
||||
#include "gltypes.h"
|
||||
#include <QOpenGLExtraFunctions>
|
||||
|
||||
|
||||
class GLFramebuffer : protected QOpenGLExtraFunctions
|
||||
{
|
||||
|
||||
@@ -54,7 +54,7 @@
|
||||
# include <GL/glu.h>
|
||||
# endif
|
||||
#endif
|
||||
#include <QOpenGLExtraFunctions>
|
||||
#include <QOpenGLFunctions>
|
||||
#include <QOpenGLWidget>
|
||||
#include <QOpenGLShader>
|
||||
#include <QOpenGLShaderProgram>
|
||||
@@ -162,7 +162,7 @@ void glDrawQuad(QOpenGLShaderProgram * prog = nullptr, QVector4D * corner_dirs =
|
||||
QMatrix4x4 getGLMatrix(GLenum matrix);
|
||||
void setGLMatrix(QMatrix4x4 matrix);
|
||||
inline void deleteGLTexture(GLuint & tex) {if (tex != 0) glDeleteTextures(1, &tex); tex = 0;}
|
||||
//# define QGLCI if (!QOpenGLContext::currentContext()) return; QOpenGLExtraFunctions gf(QOpenGLContext::currentContext());
|
||||
//# define QGLCI if (!QOpenGLContext::currentContext()) return; QOpenGLFunctions gf(QOpenGLContext::currentContext());
|
||||
//# define QGLC gf.
|
||||
//inline void glActiveTextureChannel(int channel) {QGLCI gf.glActiveTexture(GL_TEXTURE0 + channel);}
|
||||
//inline void glDisableTextures(int channels = 8) {QGLCI for (int i = channels - 1; i >= 0; --i) {glActiveTextureChannel(i); glDisable(GL_TEXTURE_2D); glDisable(GL_TEXTURE_CUBE_MAP);}}
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
#include "gltypes.h"
|
||||
#include "chunkstream.h"
|
||||
|
||||
class GLVBO : protected QOpenGLExtraFunctions
|
||||
class GLVBO : protected QOpenGLFunctions
|
||||
{
|
||||
friend class GLObjectBase;
|
||||
friend QDataStream & operator <<(QDataStream & s, const GLVBO & m);
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
#include "qglview.h"
|
||||
#include <QLabel>
|
||||
|
||||
|
||||
class RendererDeferredShading: public GLRendererBase
|
||||
{
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user