Something went wrong. Try again.
Mixxx DJ software with MCP, Subsonic/Navidrome streaming library support — browse and load tracks from your self-hosted music server mixxx.org
subsonic navidrome streaming audio dj mac linux midi
Something went wrong. Try again.
C++
1234567891011121314151617181920212223242526#include "util/opengltexture2d.h"
#include <QPixmap>
#include "widget/paintable.h"
OpenGLTexture2D::OpenGLTexture2D() : QOpenGLTexture(QOpenGLTexture::Target2D){};
void OpenGLTexture2D::setData(const QImage& image) { destroy(); if (!image.isNull()) { QOpenGLTexture::setData(image); setMinMagFilters(QOpenGLTexture::Linear, QOpenGLTexture::Linear); setWrapMode(QOpenGLTexture::ClampToEdge); }};
void OpenGLTexture2D::setData(const QPixmap& pixmap) { setData(pixmap.toImage());};
void OpenGLTexture2D::setData(const Paintable& paintable) { setData(paintable.toImage());};