Skip to content

adalid-1/lab-env

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lab-env

C++11 based application base for developing apps.

Requirements

  1. CMake 3+.
  2. Compiler with support for lambda functions (C++11), such as VS 2013.

Instructions

Put your laboration in the folder titled 'projects'. It must be accompanied with its own CMakeLists.txt which is used to generate a project/solution. Then run CMake in the root of the project, there should be a target in your project matching the name of your lab.

Usage

The lab environment contains two classes, Window and App. Override the App class for your project to implement your own update loop. The Window class is used to open a window and connect input handlers to it.

This is done by assigning a lambda function to a callback matching the input you require. It is possible to have more than one window open at a time, although one must select which window to render to using the function called Window::MakeCurrent prior to doing any GL calls.

Example

The example project is simply an example implementation which displays a colored triangle on a grey background.

About

Where i host opengl related projects

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published