mirror of
https://github.com/projectM-visualizer/projectm.git
synced 2026-02-04 18:45:30 +00:00
Fix includes and some comments
This commit is contained in:
@ -14,7 +14,7 @@ add_library(Audio OBJECT
|
||||
|
||||
target_include_directories(Audio
|
||||
PUBLIC
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/..
|
||||
)
|
||||
|
||||
target_link_libraries(Audio
|
||||
|
||||
@ -6,8 +6,9 @@
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#include "projectM-4/projectM_export.h"
|
||||
#include "AudioConstants.hpp"
|
||||
#include "Audio/AudioConstants.hpp"
|
||||
|
||||
#include <projectM-4/projectM_export.h>
|
||||
|
||||
#include <array>
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
#include "Loudness.hpp"
|
||||
#include "Audio/Loudness.hpp"
|
||||
|
||||
#include <cmath>
|
||||
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "AudioConstants.hpp"
|
||||
#include "Audio/AudioConstants.hpp"
|
||||
|
||||
#include <array>
|
||||
#include <cstdint>
|
||||
|
||||
@ -27,7 +27,7 @@ IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISI
|
||||
OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include "MilkdropFFT.hpp"
|
||||
#include "Audio/MilkdropFFT.hpp"
|
||||
|
||||
namespace libprojectM {
|
||||
namespace Audio {
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
#include "PCM.hpp"
|
||||
#include "Audio/PCM.hpp"
|
||||
|
||||
namespace libprojectM {
|
||||
namespace Audio {
|
||||
|
||||
@ -7,11 +7,11 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "AudioConstants.hpp"
|
||||
#include "FrameAudioData.hpp"
|
||||
#include "Loudness.hpp"
|
||||
#include "MilkdropFFT.hpp"
|
||||
#include "WaveformAligner.hpp"
|
||||
#include "Audio/AudioConstants.hpp"
|
||||
#include "Audio/FrameAudioData.hpp"
|
||||
#include "Audio/Loudness.hpp"
|
||||
#include "Audio/MilkdropFFT.hpp"
|
||||
#include "Audio/WaveformAligner.hpp"
|
||||
|
||||
#include <projectM-4/projectM_export.h>
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
#include "WaveformAligner.hpp"
|
||||
#include "Audio/WaveformAligner.hpp"
|
||||
|
||||
#include <algorithm>
|
||||
#include <cmath>
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "AudioConstants.hpp"
|
||||
#include "Audio/AudioConstants.hpp"
|
||||
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
|
||||
@ -4,10 +4,8 @@
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#include "Renderer/Mesh.hpp"
|
||||
|
||||
|
||||
#include <Renderer/Framebuffer.hpp>
|
||||
#include <Renderer/Mesh.hpp>
|
||||
#include <Renderer/RenderContext.hpp>
|
||||
#include <Renderer/Shader.hpp>
|
||||
#include <Renderer/TextureSamplerDescriptor.hpp>
|
||||
|
||||
@ -1,5 +1,7 @@
|
||||
#include "Border.hpp"
|
||||
|
||||
#include "PerFrameContext.hpp"
|
||||
|
||||
#include <Renderer/BlendMode.hpp>
|
||||
|
||||
namespace libprojectM {
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
#include "PerFrameContext.hpp"
|
||||
#include "PresetState.hpp"
|
||||
|
||||
#include <Renderer/Mesh.hpp>
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
|
||||
#include <Renderer/Color.hpp>
|
||||
#include <Renderer/Mesh.hpp>
|
||||
#include "Renderer/Point.hpp"
|
||||
#include <Renderer/Point.hpp>
|
||||
|
||||
#include <vector>
|
||||
|
||||
|
||||
@ -27,7 +27,6 @@
|
||||
#include "CustomShape.hpp"
|
||||
#include "CustomWaveform.hpp"
|
||||
#include "DarkenCenter.hpp"
|
||||
#include "Filters.hpp"
|
||||
#include "FinalComposite.hpp"
|
||||
#include "MotionVectors.hpp"
|
||||
#include "PerFrameContext.hpp"
|
||||
@ -39,8 +38,6 @@
|
||||
#include <Renderer/CopyTexture.hpp>
|
||||
#include <Renderer/Framebuffer.hpp>
|
||||
|
||||
#include <cassert>
|
||||
#include <map>
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
#include "MilkdropShader.hpp"
|
||||
|
||||
#include "PerFrameContext.hpp"
|
||||
#include "PresetState.hpp"
|
||||
#include "Utils.hpp"
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* @file MilkdropShader
|
||||
* @file MilkdropShader.hpp
|
||||
* @brief Holds a warp or composite shader of Milkdrop presets.
|
||||
*
|
||||
* This class wraps the conversion from HLSL shader code to GLSL and also manages the
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
#include "PerPixelContext.hpp"
|
||||
|
||||
#include "MilkdropPresetExceptions.hpp"
|
||||
#include "PerFrameContext.hpp"
|
||||
|
||||
#include <Logging.hpp>
|
||||
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
#include "PerFrameContext.hpp"
|
||||
#include "PresetState.hpp"
|
||||
|
||||
#include <projectm-eval.h>
|
||||
@ -36,6 +35,7 @@ public:
|
||||
* is an undocumented feature, we should do the same as some presets may depend on it.
|
||||
*
|
||||
* @param state The preset state container.
|
||||
* @param perFrameState The per-frame execution context.
|
||||
*/
|
||||
void LoadStateReadOnlyVariables(PresetState& state, PerFrameContext& perFrameState);
|
||||
|
||||
|
||||
@ -1,7 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include "Renderer/Mesh.hpp"
|
||||
|
||||
#include <Renderer/Mesh.hpp>
|
||||
#include <Renderer/Shader.hpp>
|
||||
|
||||
namespace libprojectM {
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
#include "MilkdropStaticShaders.hpp"
|
||||
#include "PresetFileParser.hpp"
|
||||
|
||||
#include "Renderer/ShaderCache.hpp"
|
||||
#include <Renderer/ShaderCache.hpp>
|
||||
|
||||
#include <glm/gtc/matrix_transform.hpp>
|
||||
|
||||
|
||||
@ -2,7 +2,6 @@
|
||||
|
||||
#include "CustomShape.hpp"
|
||||
#include "MilkdropPresetExceptions.hpp"
|
||||
#include "PerFrameContext.hpp"
|
||||
|
||||
#include <Logging.hpp>
|
||||
|
||||
|
||||
@ -7,7 +7,6 @@
|
||||
#include <Renderer/Mesh.hpp>
|
||||
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
|
||||
namespace libprojectM {
|
||||
namespace MilkdropPreset {
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
#include "CenteredSpiro.hpp"
|
||||
#include "Waveforms/CenteredSpiro.hpp"
|
||||
|
||||
#include <Audio/AudioConstants.hpp>
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
#include "DerivativeLine.hpp"
|
||||
#include "Waveforms/DerivativeLine.hpp"
|
||||
|
||||
#include "PresetState.hpp"
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
#include "DoubleLine.hpp"
|
||||
#include "Waveforms/DoubleLine.hpp"
|
||||
|
||||
#include "PresetState.hpp"
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
#include "ExplosiveHash.hpp"
|
||||
#include "Waveforms/ExplosiveHash.hpp"
|
||||
|
||||
#include "PresetState.hpp"
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include "WaveformMath.hpp"
|
||||
#include "Waveforms/WaveformMath.hpp"
|
||||
|
||||
#include <memory>
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
#include "Line.hpp"
|
||||
#include "Waveforms/Line.hpp"
|
||||
|
||||
#include "PresetState.hpp"
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
#include "LineBase.hpp"
|
||||
#include "Waveforms/LineBase.hpp"
|
||||
|
||||
#include <Audio/AudioConstants.hpp>
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
#include "SpectrumLine.hpp"
|
||||
#include "Waveforms/SpectrumLine.hpp"
|
||||
|
||||
#include <cmath>
|
||||
|
||||
|
||||
@ -1,11 +1,11 @@
|
||||
#include "PresetFactoryManager.hpp"
|
||||
|
||||
#include "Utils.hpp"
|
||||
|
||||
#include <MilkdropPreset/Factory.hpp>
|
||||
|
||||
#include <Logging.hpp>
|
||||
#include <Utils.hpp>
|
||||
|
||||
#include <algorithm>
|
||||
#include <cassert>
|
||||
#include <iostream>
|
||||
#include <sstream>
|
||||
|
||||
@ -27,7 +27,6 @@
|
||||
#include <Audio/PCM.hpp>
|
||||
|
||||
#include <memory>
|
||||
#include <set>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
|
||||
@ -6,11 +6,11 @@
|
||||
|
||||
#include <Audio/AudioConstants.hpp>
|
||||
|
||||
#include <cstring>
|
||||
#include <projectM-4/parameters.h>
|
||||
#include <projectM-4/render_opengl.h>
|
||||
#include <sstream>
|
||||
|
||||
#include <cstring>
|
||||
#include <sstream>
|
||||
|
||||
namespace libprojectM {
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
#include "CopyTexture.hpp"
|
||||
#include "Renderer/CopyTexture.hpp"
|
||||
|
||||
namespace libprojectM {
|
||||
namespace Renderer {
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
#include "Framebuffer.hpp"
|
||||
#include "Renderer/Framebuffer.hpp"
|
||||
|
||||
namespace libprojectM {
|
||||
namespace Renderer {
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
#include "Mesh.hpp"
|
||||
#include "Renderer/Mesh.hpp"
|
||||
|
||||
namespace libprojectM {
|
||||
namespace Renderer {
|
||||
|
||||
@ -1,14 +1,12 @@
|
||||
#pragma once
|
||||
|
||||
#include "VertexArray.hpp"
|
||||
#include "VertexIndexArray.hpp"
|
||||
|
||||
|
||||
#include <Renderer/Color.hpp>
|
||||
#include <Renderer/Point.hpp>
|
||||
#include <Renderer/TextureUV.hpp>
|
||||
#include <Renderer/VertexBuffer.hpp>
|
||||
#include <Renderer/VertexBufferUsage.hpp>
|
||||
#include "Renderer/Color.hpp"
|
||||
#include "Renderer/Point.hpp"
|
||||
#include "Renderer/TextureUV.hpp"
|
||||
#include "Renderer/VertexArray.hpp"
|
||||
#include "Renderer/VertexBuffer.hpp"
|
||||
#include "Renderer/VertexBufferUsage.hpp"
|
||||
#include "Renderer/VertexIndexArray.hpp"
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
#include "MilkdropNoise.hpp"
|
||||
#include "Renderer/MilkdropNoise.hpp"
|
||||
|
||||
#include "projectM-opengl.h"
|
||||
|
||||
|
||||
@ -1,11 +1,9 @@
|
||||
#include "PresetTransition.hpp"
|
||||
#include "Renderer/PresetTransition.hpp"
|
||||
|
||||
#include "TextureManager.hpp"
|
||||
#include "Renderer/TextureManager.hpp"
|
||||
|
||||
#include <algorithm>
|
||||
#include <array>
|
||||
#include <cmath>
|
||||
#include <cstddef>
|
||||
|
||||
namespace libprojectM {
|
||||
namespace Renderer {
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
#include "TextureAttachment.hpp"
|
||||
#include "Renderer/TextureAttachment.hpp"
|
||||
|
||||
// OpenGL ES might not define this constant in its headers, e.g. in the iOS and Emscripten SDKs.
|
||||
#ifndef GL_STENCIL_INDEX
|
||||
|
||||
@ -1,10 +1,11 @@
|
||||
#include "TextureManager.hpp"
|
||||
#include "Renderer/TextureManager.hpp"
|
||||
|
||||
#include "FileScanner.hpp"
|
||||
#include "IdleTextures.hpp"
|
||||
#include "MilkdropNoise.hpp"
|
||||
#include "Texture.hpp"
|
||||
#include "Utils.hpp"
|
||||
#include "Renderer/FileScanner.hpp"
|
||||
#include "Renderer/IdleTextures.hpp"
|
||||
#include "Renderer/MilkdropNoise.hpp"
|
||||
#include "Renderer/Texture.hpp"
|
||||
|
||||
#include <Utils.hpp>
|
||||
|
||||
#include <Logging.hpp>
|
||||
#include <SOIL2/SOIL2.h>
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
#include "TextureSamplerDescriptor.hpp"
|
||||
#include "Renderer/TextureSamplerDescriptor.hpp"
|
||||
|
||||
#include "TextureManager.hpp"
|
||||
#include "Renderer/TextureManager.hpp"
|
||||
|
||||
#include <utility>
|
||||
|
||||
|
||||
@ -1,9 +1,7 @@
|
||||
#include "TransitionShaderManager.hpp"
|
||||
#include "Renderer/TransitionShaderManager.hpp"
|
||||
|
||||
#include "BuiltInTransitionsResources.hpp"
|
||||
|
||||
#include <iostream>
|
||||
|
||||
namespace libprojectM {
|
||||
namespace Renderer {
|
||||
|
||||
|
||||
@ -1,8 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
#include "VertexBuffer.hpp"
|
||||
|
||||
|
||||
#include <projectM-opengl.h>
|
||||
|
||||
namespace libprojectM {
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
#include "VertexIndexArray.hpp"
|
||||
#include "Renderer/VertexIndexArray.hpp"
|
||||
|
||||
namespace libprojectM {
|
||||
namespace Renderer {
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
#include "UserSprites/MilkdropSprite.hpp"
|
||||
|
||||
#include "SpriteException.hpp"
|
||||
#include "UserSprites/SpriteException.hpp"
|
||||
|
||||
#include "SpriteShaders.hpp"
|
||||
|
||||
#include <Preset.hpp>
|
||||
|
||||
Reference in New Issue
Block a user