Code Monkey home page Code Monkey logo

modernopenglwin32's Introduction

OpenGL Core 4.6 with DSA and SPIR-V

This project outlines how to open a window with the Win32 API and how to create a modern OpenGL core context. It uses Spirv for the shaders and features a single triangle rendering using Direct State Access features of modern OpenGL.

It aims to just serve as a minimal refrence in how to get these aspects up and running quickly with minimal abstraction allowing you to just get into it.

Build

This project uses the cmake build system.

run compile_shaders.bat
cd ModernOpenGLWin32 
mkdir build
cd build
cmake ..
make

dependencies

Use package manager vcpkg (https://vcpkg.io/en/getting-started.html) and install dependencies.

.\vcpkg\bootstrap-vcpkg.bat
vcpkg install glew:x64-windows
vcpkg integrate install (optional for usage with visual studio 2019/22)

Motivation

Doing a completely different project i needed to interface with the Win32 API as well as use spir-v. I thought there could be some benefit in this refrence existing.

Contributing

Pull requests are welcome and issues as well.

License

MIT

modernopenglwin32's People

Contributors

dangeroustuber avatar

Watchers

 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.