1
Fork 0
mirror of https://github.com/redstrate/Novus.git synced 2025-05-15 13:07:45 +00:00
novus/apps/mapeditor/include/primitives.h
Joshua Goins fc327ba8b5 Fix the object pass, start rendering a sphere
The sphere doesn't look correct (bad vertex stride) but that doesn't
matter. I need to expose the object's transform in libphysis next,
before we can start drawing.
2025-05-13 16:41:52 -04:00

26 lines
500 B
C++

// SPDX-FileCopyrightText: 2025 Joshua Goins <josh@redstrate.com>
// SPDX-License-Identifier: GPL-3.0-or-later
#pragma once
#include <vulkan/vulkan.h>
#include "buffer.h"
class RenderManager;
struct Sphere {
Buffer vertexBuffer, indexBuffer;
uint32_t indexCount;
};
class Primitives
{
public:
static void Initialize(RenderManager *renderer);
static void Cleanup(RenderManager *renderer);
static void DrawSphere(VkCommandBuffer commandBuffer);
static Sphere sphere;
};