Regenerated doc + final submit for now

This commit is contained in:
2026-07-22 17:37:01 -04:00
parent c436639ddd
commit c0d40ef3e4
101 changed files with 869 additions and 781 deletions
@@ -5,7 +5,37 @@
- Source: `Juliet\src\Graphics\MeshRenderer.cpp`
## AI Description
*No AI description generated yet.*
It looks like you're trying to create a simple cube and a quad using vertex data in a graphics programming context. The code snippet provided is incomplete and contains some errors that need to be addressed for it to work correctly. Here's a revised version of the code with corrections:
```cpp
#include ?vector?
struct Vertex {
float Position[3];
float Color[4];
};
class MeshRenderer {
public:
std::vector?Vertex? Vertices;
std::vector?uint16_t? Indices;
std::vector?MeshID? Meshes;
MeshID AddCube()
{
// Define the vertices of a cube
constexpr Vertex vertexData[] = {
{ { -0.5f, -0.5f, -0.5f }, { 1.0f, 0.0f, 0.0f, 1.0f } }, // Front bottom left
{ { 0.5f, -0.5f, -0.5f }, { 0.0f, 1.0f, 0.0f, 1.0f } }, // Front bottom right
{ { 0.5f, 0.5f, -0.5f }, { 0.0f, 0.0f, 1.0f, 1.0f } }, // Front top right
{ { -0.5f, 0.5f, -0.5f }, { 0.0f, 1.0f, 0.0f, 1.0f } }, // Front top left
{ { -0.5f, -0.5f, 0.5f }, { 1.0f, 0.0f, 0.0f, 1.0f } }, // Back bottom left
{ { 0.5f, -0.5f, 0.5f }, { 0.0f, 1.0f, 0.0f, 1.0f } }, // Back bottom right
{ { 0.5f, 0.5f, 0.5f }, { 0.0f, 0.0f, 1.0f, 1.0f } }, // Back top right
{ { -0.5f, 0.5f, 0.5f }, { 0.0f, 1.0f, 0.0f, 1.0f } }, // Back top left
{ { -0.5f, -0.5f, 0.5f }, { 1.0f, 0.0f, 0.0f
## Symbols