All Projects → diharaw → dw-sample-framework

diharaw / dw-sample-framework

Licence: MIT License
A simple C++ framework for implementing graphics technique samples using OpenGL and Vulkan.

Programming Languages

c
50402 projects - #5 most used programming language
C++
36643 projects - #6 most used programming language
CMake
9771 projects

Projects that are alternatives of or similar to dw-sample-framework

3d Game Shaders For Beginners
🎮 A step-by-step guide to implementing SSAO, depth of field, lighting, normal mapping, and more for your 3D game.
Stars: ✭ 11,698 (+15292.11%)
Mutual labels:  shaders, vulkan, graphics-programming
DrawSpace
Space-game oriented rendering engine
Stars: ✭ 20 (-73.68%)
Mutual labels:  shaders, graphics-programming
RavEngine
A fast, easy to use C++20 3D game library for modern computers
Stars: ✭ 122 (+60.53%)
Mutual labels:  shaders, vulkan
pilka
Another live-coding tool for creating shader demos, Vulkan+Wgpu powered.
Stars: ✭ 84 (+10.53%)
Mutual labels:  shaders, vulkan
Yave
Yet Another Vulkan Engine
Stars: ✭ 211 (+177.63%)
Mutual labels:  shaders, vulkan
Shadered
Lightweight, cross-platform & full-featured shader IDE
Stars: ✭ 3,247 (+4172.37%)
Mutual labels:  shaders, graphics-programming
AngryEngine
Game Engine for Windows by Vulkan SDK
Stars: ✭ 20 (-73.68%)
Mutual labels:  vulkan, graphics-programming
Reshade
A generic post-processing injector for games and video software.
Stars: ✭ 2,285 (+2906.58%)
Mutual labels:  shaders, vulkan
cs paint
Vulkan rendering library for graphics and text
Stars: ✭ 79 (+3.95%)
Mutual labels:  shaders, vulkan
Camera2GLPreview
Android camera preview application using Camera2 API and OpenGL ES/Vulkan
Stars: ✭ 140 (+84.21%)
Mutual labels:  shaders, vulkan
YALCT
Yet Another Live Coding Tool - Powered by Veldrid and elbow grease
Stars: ✭ 25 (-67.11%)
Mutual labels:  shaders, vulkan
Methanekit
🎲 Modern 3D graphics made simple with cross-platform C++17 meta-API on top of DirectX 12 & Metal (Vulkan is coming)
Stars: ✭ 197 (+159.21%)
Mutual labels:  shaders, graphics-programming
The Forge
The Forge Cross-Platform Rendering Framework PC Windows, Linux, Ray Tracing, macOS / iOS, Android, XBOX, PS4, PS5, Switch, Quest 2
Stars: ✭ 2,710 (+3465.79%)
Mutual labels:  shaders, vulkan
rasen
Generate SPIR-V bytecode from an operation graph
Stars: ✭ 65 (-14.47%)
Mutual labels:  shaders, vulkan
Tinykaboom
A brief computer graphics / rendering course
Stars: ✭ 2,077 (+2632.89%)
Mutual labels:  shaders, graphics-programming
unity-raymarcher
Real-time ray marching shaders in Unity
Stars: ✭ 28 (-63.16%)
Mutual labels:  shaders, graphics-programming
isosurface
Isosurface extraction using Marching Cubes and pure WebGL.
Stars: ✭ 66 (-13.16%)
Mutual labels:  shaders, graphics-programming
Godot Motion Blur
A motion blur shader for Godot 3.0
Stars: ✭ 115 (+51.32%)
Mutual labels:  shaders, graphics-programming
Pencilsketcheffect
Real Time Hatching In Unity
Stars: ✭ 134 (+76.32%)
Mutual labels:  shaders, graphics-programming
nautilus
another graphics engine
Stars: ✭ 16 (-78.95%)
Mutual labels:  vulkan, graphics-programming

dwSampleFramework

License: MIT

What is it?

A simple C++ framework for implementing graphics technique samples using OpenGL or Vulkan.

Features

  • Cross-platform
  • Wrapper classes for common OpenGL and Vulkan objects
  • Mesh loading
  • Texture loading
  • Keyboard and mouse input
  • Debug drawing
  • Demo player
  • ImGui integration
  • Camera class
  • CPU-GPU profiler
  • Logger
  • Optional helper classes
    • Vulkan Ray Tracing
    • Hosek-Wilkie sky model
    • Cubemap prefiltering
    • Cubemap SH projection
    • BRDF LUT generation

What it looks like

Creating a project using dwSampleFramework is as easy as inheriting from the dw::Application class and overriding the methods you need.

#include <application.h>

class Tutorial : public dw::Application
{
protected:
	bool init(int argc, const char* argv[]) override
	{
		return true;
	}

	void update(double delta) override
	{

	}

	void shutdown() override
	{

	}
};

DW_DECLARE_MAIN(Tutorial)

Sample

The sample application will give you a basic understanding of how to create a simple graphics application using the framework. It simply renders a rotating Teapot.

Sample

Building Sample

Use CMake version 3.8 or higher to generate a project for any IDE of your choice. The resulting project will contain all dependencies, framework library and sample application. The teapot model and texture can be found inside data/sample_assets.zip. Simply extract it into the directory containing the executable.

How to use in a project

This will only cover using dwSampleFramework in a project that uses CMake since it is more practical and will make handling dependencies easier.

  1. Add dwSampleFramework as a submodule or simply clone it into your external dependencies directory. Make sure all submodules of the framework are also cloned.
  2. Add the dwSampleFramework directory to the root CMakeLists.txt file via the following command.
add_subdirectory(path/to/dwSampleFramework)
  1. Add a link command to your executable that will use the framework.
target_link_libraries(TARGET_NAME dwSampleFramework)
  1. Add dwSampleFramework include directory to your projects' includes (either using include_directories or target_include_directories).

Note: If you wish to use dwSampleFramework as a precompiled library, make sure you copy the generated Assimp config.h file to your Assimp include directory.

Dependencies

License

Copyright (c) 2019 Dihara Wijetunga

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and 
associated documentation files (the "Software"), to deal in the Software without restriction, 
including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, 
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial
portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT 
LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].