start work on filterview
not doing fft fuck that
This commit is contained in:
@@ -10,33 +10,23 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <JuceHeader.h>
|
||||
|
||||
//==============================================================================
|
||||
/*
|
||||
*/
|
||||
/*
|
||||
* ==============================================================================
|
||||
*
|
||||
* CrushView.h
|
||||
* Created: 16 Jan 2026 5:05:38pm
|
||||
* Author: esca
|
||||
*
|
||||
* ==============================================================================
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "juce_gui_basics/juce_gui_basics.h"
|
||||
#include "juce_opengl/juce_opengl.h"
|
||||
#include <JuceHeader.h>
|
||||
#include "OpenGLUtils.h"
|
||||
#include <string>
|
||||
//==============================================================================
|
||||
/*
|
||||
*/
|
||||
|
||||
#define CRUSHVIEW_SAMPLECOUNT 200
|
||||
|
||||
#define VERTEXSHADERFILTERFILL R"(placeholder)"
|
||||
|
||||
#define FRAGSHADERFILTERFILL R"(placeholder)"
|
||||
|
||||
#define VERTEXSHADERFILTER R"(placeholder)"
|
||||
|
||||
#define FRAGSHADERFILTER R"(placeholder)"
|
||||
|
||||
|
||||
class FilterView : public juce::Component, public juce::OpenGLRenderer
|
||||
{
|
||||
public:
|
||||
@@ -68,9 +58,6 @@ private:
|
||||
std::vector<Vertex> filterBackgroundVertices;
|
||||
std::vector<unsigned int> filterBackgroundIndices;
|
||||
|
||||
std::vector<Vertex> fftVertices;
|
||||
std::vector<unsigned int> fftIndices;
|
||||
|
||||
std::vector<VertexTexture> backgroundVertices;
|
||||
std::vector<unsigned int> backgroundIndices;
|
||||
|
||||
@@ -79,27 +66,26 @@ private:
|
||||
GLuint vboFilter;
|
||||
GLuint iboFilter;
|
||||
|
||||
GLuint vbofft;
|
||||
GLuint ibofft;
|
||||
GLuint vboFilterFill;
|
||||
GLuint iboFilterFill;
|
||||
|
||||
GLuint vboBackground;
|
||||
GLuint iboBackground;
|
||||
|
||||
std::string vertexShader;
|
||||
std::string fragmentShader;
|
||||
std::string vertexShaderFill;
|
||||
std::string fragmentShaderFill;
|
||||
std::string vertexShaderFilter;
|
||||
std::string fragmentShaderFilter;
|
||||
|
||||
std::string vertexShaderFilterFill;
|
||||
std::string fragmentShaderFilterFill;
|
||||
|
||||
std::string vertexShaderBackground;
|
||||
std::string fragmentShaderBackground;
|
||||
|
||||
std::unique_ptr<juce::OpenGLShaderProgram> shaderProgram;
|
||||
std::unique_ptr<juce::OpenGLShaderProgram> shaderProgermFilter;
|
||||
std::unique_ptr<juce::OpenGLShaderProgram> shaderProgramFilter;
|
||||
std::unique_ptr<juce::OpenGLShaderProgram> shaderProgramFilterFill;
|
||||
std::unique_ptr<juce::OpenGLShaderProgram> shaderProgramBackground;
|
||||
|
||||
juce::Image background;
|
||||
juce::OpenGLTexture bgTexture;
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user