Skip to content

Learning Opengl and study how to create a game engine. Of course it's not a complex one

Notifications You must be signed in to change notification settings

timlyeee/learnopengl_to_renderpipeline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README

What is learnopengl_to_renderpipeline

A tiny render pipeline by transforming knowledges from learnopengl.

Setup

Windows

Visual Studio and CMake Should be installed. This project relies on the compile toolchain of Visual Studio.

Run build.sh on gitbash or powershell, it will trigger cmake compilation. Also, you can modify it by yourself. Compilation options are listed by running build.sh --help

Or you can run cmake . -B out ${BUILD_DIR} on cmd. Basic knowledge of cmake is nessacary.

Mac

XCode and CMake should be installed. Run build.sh to build as well as Windows.

Principle idea

As a tiny render pipeline to run, a simple main function that support us to change from different scene, and handle inputs, is nessacary. Easy to use is what we want, so here shows the propal code in C++.

int main(){
    LoadEnvironment();

    //main loop, include input logic and render logic
    while(true){
        
        HandleInput();
        
        if(NeedUpdateRenderPipeline)
        {
            LoadingModels();
            LoadingShaders();
            LoadingScripts();
            UpdateRenderPipeline();
        }

        Render();
    }

}

So what you will see in this project, or tutariol, is a different way to learn achieve the goal of learnopengl, but a good framework.

About

Learning Opengl and study how to create a game engine. Of course it's not a complex one

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages