Skip to content

norman784/kotlin-native-opengl-tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

OpenGL tutorial written in Kotlin Native

The tutorial could be found here.

Requirementes

MacOS

brew install glfw glew

Ubuntu

Not tested

sudo apt-get install libglfw3 libglfw3-dev libglew-dev gcc-multilib g++-multilib

Running

This will build and run every example.

gradle build
gradle run

Need to check in the kotlin native gradle docs how to run only the desired example

TODO

Basic tutorial

  • 1 - Opening a window
  • 2 - Hello Triangle
  • 3 - Matrices
  • 4 - A Colored Cube
  • 5 - A Textured Cube
  • 6 - Keyboard and Mouse
  • 7 - Model loading
  • 8 - Basic shading

CMake script to copy resources

add_custom_target(copy-resources ALL
        COMMAND cmake -E copy_directory ${CMAKE_SOURCE_DIR}/src/resources ${CMAKE_BINARY_DIR}/resources
        DEPENDS ${intown})

About

OpenGL tutorial written in Kotlin Native (http://opengl-tutorial.org)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published