15 #include <vsg/maths/box.h>
16 #include <vsg/state/ArrayState.h>
32 bool useNodeBounds =
true;
34 using ArrayStateStack = std::vector<ref_ptr<ArrayState>>;
35 ArrayStateStack arrayStateStack;
37 using MatrixStack = std::vector<dmat4>;
38 MatrixStack matrixStack;
43 void apply(
const Object& node)
override;
44 void apply(
const StateGroup& stategroup)
override;
45 void apply(
const Transform& transform)
override;
47 void apply(
const CullNode& cullNode)
override;
48 void apply(
const CullGroup& cullGroup)
override;
49 void apply(
const LOD& lod)
override;
50 void apply(
const PagedLOD& plod)
override;
51 void apply(
const Geometry& geometry)
override;
57 void apply(
const Draw& draw)
override;
58 void apply(
const DrawIndexed& drawIndexed)
override;
59 void apply(
const Text& text)
override;
60 void apply(
const TextGroup& textGroup)
override;
63 void apply(
const BufferInfo& bufferInfo)
override;
64 void apply(
const ushortArray& array)
override;
65 void apply(
const uintArray& array)
override;
67 virtual void applyDraw(uint32_t firstVertex, uint32_t vertexCount, uint32_t firstInstance, uint32_t instanceCount);
68 virtual void applyDrawIndexed(uint32_t firstIndex, uint32_t indexCount, uint32_t firstInstance, uint32_t instanceCount);
70 void add(
const dbox& bb);
BindIndexBuffer command encapsulates vkCmdBindIndexBuffer call and associated settings.
Definition: BindIndexBuffer.h:28
BindVertexBuffers command encapsulates vkCmdBindVertexBuffers call and associated settings.
Definition: BindVertexBuffers.h:25
BufferInfo encapsulates the settings that map to VkDescriptorBufferInfo.
Definition: BufferInfo.h:27
ComputeBounds traverses a scene graph computing an overall bounding box that encloses all the geometr...
Definition: ComputeBounds.h:23
dbox bounds
Result of compute bounds traversal.
Definition: ComputeBounds.h:28
CullNode that enables view frustum culling on a list of children.
Definition: CullGroup.h:23
Definition: CullNode.h:25
DrawIndexed command encapsulates vkCmdDrawIndexed call and associated settings.
Definition: DrawIndexed.h:24
Draw command encapsulates vkCmdDraw call and associated settings.
Definition: Draw.h:24
Definition: Geometry.h:30
Definition: PagedLOD.h:36
Definition: StateCommand.h:24
Definition: StateGroup.h:32
Definition: TextGroup.h:27
Definition: TextTechnique.h:25
Definition: VertexDraw.h:25
Definition: VertexIndexDraw.h:25