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

https://github.com/zschzen/glasm

A simple OpenGL 1.1 triangle renderer written in NASM
https://github.com/zschzen/glasm

assembly glfw nasm opengl11

Last synced: 10 months ago
JSON representation

A simple OpenGL 1.1 triangle renderer written in NASM

Awesome Lists containing this project

README

          


Logo

### `OpenGL-ASM x64 NASM Project (GLASM)`

[![License][license-badge]][LICENSE]
[![macos-x86_64-build](https://github.com/zschzen/GLASM/actions/workflows/macos_x64.yml/badge.svg)](https://github.com/zschzen/GLASM/actions/workflows/macos_x64.yml)
[![linux-x86_64-build](https://github.com/zschzen/GLASM/actions/workflows/linux_x64.yml/badge.svg)](https://github.com/zschzen/GLASM/actions/workflows/linux_x64.yml)

Simple OpenGL demo rendering a triangle using GLFW and NASM assembly.


GLASM

## Features
- Cross-platform support (macOS/Linux?/Windows?)
- GLFW window management
- Window resize handling
- Interactive keyboard controls
- Colored triangle rendering

> [!WARNING]
> Windows and Linux support are currently untested

## Requirements
- **Assembler**: [NASM](https://github.com/netwide-assembler/nasm.git) (v2.15+)
- **Linker**: [GCC](https://gcc.gnu.org/)
- **Dependencies**:
- [GLFW](https://www.glfw.org/)
- [OpenGL](https://www.opengl.org/)

## Build Instructions

```bash
make
```

Output will be in `build/GLASM` (or `GLASM.exe` on Windows)

## Run
```bash
./build/GLASM
```

## Clean Build
```bash
make clean
```

## Controls
- **ESC**: Exit application

## License
zlib/libpng License - See [LICENSE] file for details

---

[//]: (Externals)

[license-badge]: https://img.shields.io/github/license/zschzen/GLASM
[LICENSE]: https://github.com/zschzen/GLASM/blob/main/LICENSE

[//]: (EOF)