mirror of
https://github.com/redstrate/Novus.git
synced 2025-05-15 13:07:45 +00:00
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.
26 lines
500 B
C++
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;
|
|
};
|