Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/miou-zora/xmake-opengl

Minimal repository template for project using xmake and opengl
https://github.com/miou-zora/xmake-opengl

gl3w glfw glm hello-world kmu opengl xmake

Last synced: about 1 month ago
JSON representation

Minimal repository template for project using xmake and opengl

Awesome Lists containing this project

README

        

# Xmake-OpenGl
Minimal repository template for project using [xmake](https://xmake.io/#/), [opengl](https://www.opengl.org/) and [gl3w](https://github.com/skaslev/gl3w)

## 📑 Requirements

### 🔧 Dependencies

- [xmake](https://xmake.io/#/)
- Maybe [Vcpkg](https://vcpkg.io/en/) (I don't know if xmake automatically install vcpkg)

## ⚡ Usage

### 🔧 Setup

Start by cloning this repository

```sh
git clone https://github.com/Miou-zora/Xmake-OpenGl.git
cd Xmake-OpenGl
```

### 👷 Building

#### Release

```sh
xmake f -m release
xmake build -y
```

#### Debug

```sh
xmake f -m debug
xmake build -y
```

### 🚀 Running

```sh
xmake run
```

### ✏️ IDE

#### VS Code

If you're using VS Code (on windows), don't forget to add these paths to includePath:
```
"path_to_appdata\\Local\\.xmake\\packages\\**",
"path_to_vcpk\\vcpkg\\installed\\x64-windows-static\\**"
```
> [!TIP]
> If you don't know the correct path for you, you can run:
> ```
> xmake l find_package gl3w
> ```
> or
> ```
> xrepo info glm
> xrepo info glfw
> ```