Skip to content

Computer graphics 9 semestr lab_1 OpenGL WebGL

Notifications You must be signed in to change notification settings

makometr/cs_9_1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This template sets up a project for compiling C++ OpenGL code to the WebGL JS code that could be run on browsers using Emscripten.

For project to work properly, install:

  1. Emscripten from https://emscripten.org/docs/getting_started/downloads.html;
  2. Conan package manager https://conan.io/;
  3. Download GLES2 includes from https://www.khronos.org/registry/OpenGL/index_es.php and put them in your compiler's includes directory;

Compile instructions:

  1. For Ubuntu you have to run source ./emsdk_env.sh in your command prompt from the emsdk directory.

  2. Create subdirectory in your project, i.e. build, and enter into it.

2.1. For compiling with emscripten, call emcmake cmake .. -DCMAKE_BUILD_TYPE=Debug and then emmake make.

2.2. To compile for your home system (Windows/Linux/MacOS), just call cmake .. and make.

TODO List:

  • Add external resources support: textures, external shaders, model object files.

  • Implement shader class that puts correct version of GLSL based on compiler used.

  • Continuous integration?

About

Computer graphics 9 semestr lab_1 OpenGL WebGL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published