8 #ifndef GlobeEngine_Raster_QuadPatchField_h
9 #define GlobeEngine_Raster_QuadPatchField_h
11 #include "OpenGL_Includes.h"
30 GLuint verticesPerSide;
31 int triangleCountPerRow;
32 int quadPatchIndexCount;
36 enum PatchType {FULL = 0, BOTTOM, UP , RIGHT, LEFT, UPRIGHT, UPLEFT, BOTTOMLEFT, BOTTOMRIGHT};
48 void draw(std::shared_ptr<ge::Camera> _cam);
57 void drawPrimitives();
59 std::shared_ptr<MBlockQuadtree> quadtree;
66 QuadPatchInfo patchInfo;
70 #ifndef GENGINE_GL_BELOW_410
71 std::shared_ptr<ge::DrawArraysInstancedCommand> drawInstancedCommand;
Definition: DrawableComponent.h:25
~QuadPatchField()
Definition: QuadPatchField.cpp:14
void update()
Definition: QuadPatchField.h:49
void setVisualizationType(TerrainVis::VisualizationMode _input)
Definition: QuadPatchField.cpp:268
Definition: KPatchBase.h:13
Definition: BufferArray.h:18
void clear()
Definition: QuadPatchField.cpp:19
void rescale(float _input)
Definition: QuadPatchField.cpp:263
Definition: QuadPatchField.h:25
void clearInitial()
Definition: QuadPatchField.cpp:24
void draw(std::shared_ptr< ge::Camera > _cam)
Definition: QuadPatchField.cpp:196
Definition: TerrainConfigStructs.h:41
QuadPatchField()
Definition: QuadPatchField.cpp:8
void create()
Definition: QuadPatchField.h:43
VisualizationMode
Definition: TerrainConfigStructs.h:17
void storeInfoToUniformBuffers()
Definition: QuadPatchField.cpp:45
void createGeometry()
Definition: QuadPatchField.cpp:61