blob: b636bc26549f6a06c1adcf9ff873bb16c9a77f01 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
#pragma once
#include <cstddef>
namespace mbgl {
namespace gfx {
class Context;
class DrawMode;
class DepthMode;
class StencilMode;
class ColorMode;
class CullFaceMode;
class DrawScope;
class IndexBuffer;
class RenderPass;
template <class> class UniformValues;
template <class> class AttributeBindings;
template <class> class TextureBindings;
template <class Name>
class Program {
protected:
Program() = default;
public:
virtual ~Program() = default;
Program(Program&&) = delete;
Program(const Program&) = delete;
Program& operator=(Program&&) = delete;
Program& operator=(const Program&) = delete;
using AttributeList = typename Name::AttributeList;
using UniformList = typename Name::UniformList;
using TextureList = typename Name::TextureList;
virtual void draw(Context&,
RenderPass&,
const DrawMode&,
const DepthMode&,
const StencilMode&,
const ColorMode&,
const CullFaceMode&,
const UniformValues<UniformList>&,
DrawScope&,
const AttributeBindings<AttributeList>&,
const TextureBindings<TextureList>&,
const IndexBuffer&,
std::size_t indexOffset,
std::size_t indexLength) = 0;
};
} // namespace gfx
} // namespace mbgl
|