Lines Matching refs:glop
19 #include "Glop.h"
29 static void expectFillEq(Glop::Fill& expectedFill, Glop::Fill& builtFill) {
38 Glop::Fill::Filter::Matrix& expectedMatrix = expectedFill.filter.matrix;
39 Glop::Fill::Filter::Matrix& builtMatrix = expectedFill.filter.matrix;
41 sizeof(Glop::Fill::Filter::Matrix::matrix)));
43 sizeof(Glop::Fill::Filter::Matrix::vector)));
52 static void expectBlendEq(Glop::Blend& expectedBlend, Glop::Blend& builtBlend) {
57 static void expectMeshEq(Glop::Mesh& expectedMesh, Glop::Mesh& builtMesh) {
81 static void expectTransformEq(Glop::Transform& expectedTransform, Glop::Transform& builtTransform) {
87 static void expectGlopEq(Glop& expectedGlop, Glop& builtGlop) {
97 static std::unique_ptr<Glop> blackUnitQuadGlop(RenderState& renderState) {
98 std::unique_ptr<Glop> glop(new Glop());
99 glop->blend = { GL_ZERO, GL_ZERO };
100 glop->mesh.elementCount = 4;
101 glop->mesh.primitiveMode = GL_TRIANGLE_STRIP;
102 glop->mesh.indices.indices = nullptr;
103 glop->mesh.indices.bufferObject = GL_ZERO;
104 glop->mesh.vertices = {
109 glop->transform.modelView.loadIdentity();
110 glop->fill.colorEnabled = true;
111 glop->fill.color.set(Color::Black);
112 glop->fill.skiaShaderData.skiaShaderType = kNone_SkiaShaderType;
113 glop->fill.filterMode = ProgramDescription::ColorFilterMode::None;
114 glop->fill.texture = { nullptr, GL_INVALID_ENUM, GL_INVALID_ENUM, GL_INVALID_ENUM, nullptr };
115 return glop;
125 Glop glop;
126 GlopBuilder(renderState, caches, &glop)
134 std::unique_ptr<Glop> goldenGlop(blackUnitQuadGlop(renderState));
146 expectGlopEq(*goldenGlop, glop);