Skip to content

🎆 Gas simulation project based on C++ and OpenGL

License

Notifications You must be signed in to change notification settings

OwlCodR/gas-simulation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 

Repository files navigation

✔️ Gas Simulation

📁 Folders

  • src/ contains source code

🌠 Dependencies

📑 Libraries Setup on VSCode (Windows)

  1. Download and install MinGW to the default directory
  2. Download GLFW Windows binaries
  3. Copy include to the root folder and copy glfw3.dll to the lib folder
  4. Download GLEW Windows binaries
  5. Copy include to the root folder and copy glew32.dll to the lib folder
  6. Download GLM Windows binaries
  7. Copy glm/glm/.. directory to the include folder

📑 Libraries Setup on VSCode (Linux)

  1. Execute in terminal sudo apt install libglfw3-dev libglew-dev libglm-dev assimp-utils
  2. Modify .vscode/tasks.json:
{
  "version": "2.0.0",
  "tasks": [
    {
      "type": "shell",
      "label": "g++ build active file",
      "command": "/usr/bin/g++",
      "args": ["-g", "${file}", "-o", "${workspaceFolder}/debug/${fileBasenameNoExtension}", "-lglfw", "-lGLEW", "-lGL"],
      "options": {
        "cwd": "/usr/bin"
      },
      "problemMatcher": ["$gcc"],
      "group": {
        "kind": "build",
        "isDefault": true
      }
    }
  ]
}
  1. Create debug/ folder
  2. Build with Ctrl+Shift+B
  3. Modify .vscode/launch.json:
{
  "version": "0.2.0",
  "configurations": [
    {
      "name": "g++ build and debug active file",
      "type": "cppdbg",
      "request": "launch",
      "program": "${workspaceFolder}/debug/${fileBasenameNoExtension}",
      "args": [],
      "stopAtEntry": false,
      "cwd": "${workspaceFolder}",
      "environment": [],
      "externalConsole": false,
      "MIMode": "gdb",
      "setupCommands": [
        {
          "description": "Enable pretty-printing for gdb",
          "text": "-enable-pretty-printing",
          "ignoreFailures": true
        }
      ],
      "preLaunchTask": "g++ build active file",
      "miDebuggerPath": "/usr/bin/gdb"
    }
  ]
}
  1. Run with F5

📑 GLFW and GLEW Setup GCC (OS X)

  1. brew install glfw3
  2. brew install glew
  3. Compile with g++ main.cpp -framework OpenGL -lglfw -lglew

GitHub GitHub last commit GitHub top language

GitHub tag (latest by date)

About

🎆 Gas simulation project based on C++ and OpenGL

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published