Skip to content

A modern OpenGL application focused on teaching computer graphics principles through user interaction.

Notifications You must be signed in to change notification settings

guicattani/cg-guide-legacy

Repository files navigation

TCC

This is an OpenGL examples project, you can cycle through many different examples and change settings to see how it affects the scene.

RoadMap:

  • General
    • Imgui integration
    • Different files per scene
    • Makefile
    • CMake/Premake files to create VS slns and Code Blocks Projects

  • Demos
    • Bezier Lines
    • Culling demo
    • Matrix operations
    • Texture mapping
    • Different shading techniques (Gourad, Phong, Flat)
    • Frustrum demo
    • Lighting
    • Camera movement
    • 2D transformations
    • Normal mapping
    • Raycasting
    • Portals
    • Geometric Shaders
    • Simple 3D Modeling
    • Colliders

Build

Pre Requisites

  • Download GLFW3 pre-compiled binaries (here) for the same version as your MinGW/VS version and put it in /lib.
  • Download FreeType (here) use CMake and skip all dependencies with
  mkdir build
  cd build
  cmake -G "MinGW Makefiles" -B build -D CMAKE_DISABLE_FIND_PACKAGE_ZLIB=TRUE -D CMAKE_DISABLE_FIND_PACKAGE_BZip2=TRUE  -D CMAKE_DISABLE_FIND_PACKAGE_PNG=TRUE -D CMAKE_DISABLE_FIND_PACKAGE_HarfBuzz=TRUE -D CMAKE_DISABLE_FIND_PACKAGE_BrotliDec=TRUE ..

put the libfreetype.a file in the /lib

Windows

Use VS to build for Windows (VS solution pending) or use GNUWin Make and run make

Linux

Debian

In Debian run sudo apt-get install libglfw3-dev and then run make

Arch

In Arch Linux run yay -S glfw-x11 and run while in bin folder and then run make

About

A modern OpenGL application focused on teaching computer graphics principles through user interaction.

Topics

Resources

Stars

Watchers

Forks