Grindstone Game Engine v0.2.0
An open source game engine and toolkit.
Loading...
Searching...
No Matches
Grindstone::Editor::GizmoRenderer Class Reference

Classes

struct  GizmoUniformBuffer
 
struct  ShapeMetaData
 

Public Member Functions

void Initialize (class Grindstone::GraphicsAPI::RenderPass *renderPass)
 
void SubmitCubeGizmo (const glm::mat4 &transform, glm::vec3 size, glm::vec4 color=glm::vec4(1.0f))
 
void SubmitCapsuleGizmo (const glm::mat4 &transform, float height, float radius, glm::vec4 color=glm::vec4(1.0f))
 
void SubmitPlaneGizmo (const glm::mat4 &transform, glm::vec3 normal, float positionAlongNormal, glm::vec4 color=glm::vec4(1.0f))
 
void SubmitSphereGizmo (const glm::mat4 &transform, float radius, glm::vec4 color=glm::vec4(1.0f))
 
void Render (Grindstone::GraphicsAPI::CommandBuffer *commandBuffer, glm::mat4 projView)
 

Protected Types

enum class  ShapeType {
  Undefined , Cube , Sphere , Cone ,
  Plane , Capsule , Cyclinder
}
 

Protected Member Functions

void AppendData (ShapeType shapeType, uint32_t &currentVertexOffset, uint32_t &currentIndexOffset, uint32_t vertexCount, uint32_t indexCount)
 

Protected Attributes

Grindstone::GraphicsAPI::UniformBuffergizmoUniformBuffer = nullptr
 
Grindstone::GraphicsAPI::DescriptorSetgizmoDescriptorSet = nullptr
 
Grindstone::GraphicsAPI::DescriptorSetLayoutgizmoDescriptorSetLayout = nullptr
 
Grindstone::GraphicsAPI::GraphicsPipelinegizmoPipeline = nullptr
 
Grindstone::GraphicsAPI::VertexBuffergizmoShapesVertexBuffer = nullptr
 
Grindstone::GraphicsAPI::IndexBuffergizmoShapesIndexBuffer = nullptr
 
Grindstone::GraphicsAPI::VertexArrayObjectgizmoShapesVao = nullptr
 
std::array< ShapeMetaData, 7 > shapeMetaData
 
std::vector< GizmoUniformBufferdataBuffer
 
std::vector< ShapeType > drawShapes
 
size_t drawCount = 0
 

The documentation for this class was generated from the following files: