Git Product home page Git Product logo

alaingalvan / crosswindow-demos Goto Github PK

View Code? Open in Web Editor NEW
65.0 3.0 4.0 181 KB

๐Ÿฅช Examples of how to use CrossWindow for things like rendering graphics, listening to events, etc.

Home Page: https://alain.xyz/libraries/crosswindow

License: MIT License

CMake 5.76% GLSL 1.15% C++ 85.34% Objective-C++ 6.62% HLSL 1.13%
triangle demo vulkan metal opengl directx12 directx11 directx directx-11 directx-12

crosswindow-demos's Introduction

CrossWindow Demos

cmake-img License

A variety of demos showcasing how to use CrossWindow to build cross platform applications.

Getting Started

First install Git, then open any terminal such as Hyper in any folder and type:

# ๐Ÿ‘ 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

An example showcasing the rendering of a simple triangle in every modern graphics API (Vulkan / DirectX 12 / DirectX 11 / OpenGL / Metal) and operating system.

crosswindow-demos's People

Contributors

alaingalvan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.