git-svn-id: svn://db.shs.com.ru/libs@179 a8b55f48-bf90-11e4-a774-851b48703e85

This commit is contained in:
2017-04-14 14:52:21 +00:00
parent 652e912714
commit 450ae1e202
3 changed files with 3 additions and 11 deletions

View File

@@ -6,7 +6,9 @@
#include <QTime>
#include <QDesktopWidget>
#include <qmath.h>
#include <unistd.h>
#ifdef CC_GCC
# include <unistd.h>
#endif
#include <QDebug>
#include "piqt.h"
#include "piconnection.h"

View File

@@ -119,15 +119,6 @@ void GLFramebuffer::setWriteBuffer(int index) {
}
void GLFramebuffer::setWriteBuffers(int indeces[]) {
QVector<GLenum> buffers;
for (uint i = 0; i < sizeof(indeces); ++i) {
buffers << GL_COLOR_ATTACHMENT0 + indeces[i];
}
glDrawBuffers(buffers.size(), buffers.constData());
}
void GLFramebuffer::setWriteBuffers(int * indeces, int count) {
QVector<GLenum> buffers;
for (int i = 0; i < count; ++i)

View File

@@ -42,7 +42,6 @@ public:
void release();
void setReadBuffer(int index) {glReadBuffer(GL_COLOR_ATTACHMENT0 + index);}
void setWriteBuffer(int index);
void setWriteBuffers(int indeces[]);
void setWriteBuffers(int * indeces, int count);
void setColorFormat(GLenum format) {color_format = format; is_changed = true;}