Skip to content

About

Just me fucking around and finding out about OpenGL and Physics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GravitySim

GravitySim is a cross-platform C++ application that simulates gravitational interactions between objects. It uses GLFW for window management and OpenGL for rendering.

Features

  • Simulates gravitational interactions between objects
  • Cross-platform support (Windows, macOS, Linux)
  • Uses GLFW for window management
  • Uses OpenGL for rendering

Requirements

  • CMake 3.10 or higher
  • A C++17 compatible compiler
  • GLFW
  • OpenGL

Building the Project

  1. Clone the repository:

    git clone https://github.com/yourusername/GravitySim.git
    cd GravitySim
  2. Install dependencies:

    • On Debian-based systems (e.g., Ubuntu, Linux Mint), install the required libraries using the following command:
    sudo apt update
    sudo apt install libglfw3 libglfw3-dev
    • On Arch-based systems (e.g., Arch Linux, Manjaro), install the required libraries using:
    sudo pacman -S glfw-x11 mesa
    • On macOS, you can install the dependencies using Homebrew. If you don't have Homebrew installed, you can install it by following the instructions here. Then, run:
    brew install glfw
  3. Create a build directory and navigate into it:

    mkdir build
    cd build
  4. Run CMake to generate the build files:

    cmake ..
  5. Build the project:

    On Unix-like systems:

    make

    On Windows (using Visual Studio):

    cmake --build . --config Release

Running the Application

After building the project, you can run the executable:

./GravitySim

On Windows, you can run the executable from the build directory:

GravitySim.exe

About

Just me fucking around and finding out about OpenGL and Physics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages