Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alaingalvan/crosswindow-demos
🥪 Examples of how to use CrossWindow for things like rendering graphics, listening to events, etc.
https://github.com/alaingalvan/crosswindow-demos
demo directx directx-11 directx-12 directx11 directx12 metal opengl triangle vulkan
Last synced: about 1 month ago
JSON representation
🥪 Examples of how to use CrossWindow for things like rendering graphics, listening to events, etc.
- Host: GitHub
- URL: https://github.com/alaingalvan/crosswindow-demos
- Owner: alaingalvan
- License: mit
- Created: 2018-05-17T23:10:23.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-12-26T19:31:09.000Z (almost 1 year ago)
- Last Synced: 2024-04-15T02:12:47.387Z (9 months ago)
- Topics: demo, directx, directx-11, directx-12, directx11, directx12, metal, opengl, triangle, vulkan
- Language: C++
- Homepage: https://alain.xyz/libraries/crosswindow
- Size: 177 KB
- Stars: 62
- Watchers: 3
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: license.md
Awesome Lists containing this project
README
# CrossWindow Demos
[![cmake-img]][cmake-url]
[![License][license-img]][license-url]A variety of demos showcasing how to use CrossWindow to build cross platform applications.
## Getting Started
First install [Git](https://git-scm.com/downloads), then open any terminal such as [Hyper](https://hyper.is/) in any folder and type:
```bash
# 🐑 Clone the repo
git clone https://github.com/alaingalvan/crosswindow-demos --recurse-submodules# 💿 go inside the folder
cd crosswindow-demos# 👯 If you forget to `recurse-submodules` you can always run:
git submodule update --init# 🔼 Go inside any demo, like for instance the Hello Triangle folder:
cd src/04-cross-platform-hello-triangle/```
## Demos
### Window Creation
A basic example showing how to create a window.
### Events
An example using every possible event in CrossWindow.
### Open / Save / Alert Dialogs
Creating open / save dialogs for grabbing files. Creating alert messages for warnings, errors, or confirmations in your application.
### Cross Platform Hello Triangle
![Hello Triangle Cover Image](src/04-cross-platform-hello-triangle/assets/cover.jpg)
An example showcasing the rendering of a simple triangle in every modern graphics API (Vulkan / DirectX 12 / DirectX 11 / OpenGL / Metal) and operating system.
[cmake-img]: https://img.shields.io/badge/cmake-3.6-1f9948.svg?style=flat-square
[cmake-url]: https://cmake.org/
[license-img]: https://img.shields.io/:license-mit-blue.svg?style=flat-square
[license-url]: https://opensource.org/licenses/MIT