Skip to content

Commit

Permalink
README formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Prtm2110 authored Feb 2, 2025
1 parent 7737f50 commit 89824bc
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ A lightweight, modern 3D graphics rendering engine built with OpenGL. This proje
mkdir build && cd build
cmake ..
make -j$(nproc)
```

## Usage

Expand All @@ -69,10 +70,13 @@ make -j$(nproc)

Here is a basic example to render a triangle:


```cpp
#include "Window.h"
#include "Math.h"
#include "Renderer.h"
#include "x64/src/graphics/window.h"
#include "x64/src/graphics/shader.h"
#include "x64/src/graphics/renderer2d.h"
#include "x64/src/maths/maths.h"
//Keep relative imports in mind

int main() {
Window window(800, 600, "Rabbit Renderer");
Expand Down

0 comments on commit 89824bc

Please sign in to comment.