Showing the changes to libraries/render-utils/src/AnimDebugDraw.cpp (1 of 38 files). Show all
Unified · Split
| @@ -13,12 +13,12 @@ · 12 unmodified lines | |||
| 13 | #include <gpu/Batch.h> | 13 | #include <gpu/Batch.h> |
| 14 | #include <GLMHelpers.h> | 14 | #include <GLMHelpers.h> |
| 15 | 15 | ||
| 16 | #include "animdebugdraw_vert.h" | ||
| 17 | #include "animdebugdraw_frag.h" | ||
| 18 | #include "AbstractViewStateInterface.h" | 16 | #include "AbstractViewStateInterface.h" |
| 19 | #include "RenderUtilsLogging.h" | 17 | #include "RenderUtilsLogging.h" |
| 20 | #include "DebugDraw.h" | 18 | #include "DebugDraw.h" |
| 21 | 19 | ||
| 20 | #include "animdebugdraw_vert.h" | ||
| 21 | #include "animdebugdraw_frag.h" | ||
| 22 | 22 | ||
| 23 | class AnimDebugDrawData { | 23 | class AnimDebugDrawData { |
| 24 | public: | 24 | public: |
| @@ -102,8 +102,8 @@ AnimDebugDraw::AnimDebugDraw() : · 77 unmodified lines | |||
| 102 | state->setBlendFunction(false, gpu::State::SRC_ALPHA, gpu::State::BLEND_OP_ADD, | 102 | state->setBlendFunction(false, gpu::State::SRC_ALPHA, gpu::State::BLEND_OP_ADD, |
| 103 | gpu::State::INV_SRC_ALPHA, gpu::State::FACTOR_ALPHA, | 103 | gpu::State::INV_SRC_ALPHA, gpu::State::FACTOR_ALPHA, |
| 104 | gpu::State::BLEND_OP_ADD, gpu::State::ONE); | 104 | gpu::State::BLEND_OP_ADD, gpu::State::ONE); |
| 105 | auto vertShader = gpu::Shader::createVertex(std::string(animdebugdraw_vert)); | 105 | auto vertShader = animdebugdraw_vert::getShader(); |
| 106 | auto fragShader = gpu::Shader::createPixel(std::string(animdebugdraw_frag)); | 106 | auto fragShader = animdebugdraw_frag::getShader(); |
| 107 | auto program = gpu::Shader::createProgram(vertShader, fragShader); | 107 | auto program = gpu::Shader::createProgram(vertShader, fragShader); |
| 108 | _pipeline = gpu::Pipeline::create(program, state); | 108 | _pipeline = gpu::Pipeline::create(program, state); |
| 109 | 109 | ||