Skip to content

Learn how to integrate graphics.h into your C++ projects for creating stunning graphical user interfaces. This repository provides a step-by-step guide to set up and use graphics.h in VS Code with TDM-GCC

Notifications You must be signed in to change notification settings

prathmesh-sargar/VSCode-CPP-Graphics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

C++ Graphics Project Setup 🚀

This repository helps you set up and use graphics.h for graphical projects in C++ using VS Code and the TDM-GCC compiler.


Directory Structure 🗂️

D:.
├───.vscode  
|___ File-to-copy
└───GraphicsProject  
    ├───bin  
    └───source  

Key Folders

  • source: Contains all the C++ source files for your project.
  • bin: Contains the executable file generated after building the project.
  • .vscode: Includes tasks.json and launch.json for build and debug configurations.

How to Build 🛠️

  1. Open the project folder in VS Code.
  2. Run the Build Task:
    • Press Ctrl+Shift+B to execute the build task.
  3. Locate Executable:
    • The compiled executable file will be saved in the bin folder.

Important Notes 🔑

  • Place Necessary Files: Ensure graphics.h, winbgim.h, and libbgi.a are copied into the correct TDM-GCC folders:
    • include folder for .h files.
    • lib folder for .a file.
  • Configure VS Code: Update .vscode/tasks.json and .vscode/c_cpp_properties.json to match your system’s TDM-GCC paths.

Project Showcase 🎨

Visuals of the Setup and Build Process

1. Folder Structure

Folder Structure

2. Graphics.h Code in Action

Graphics Code in Action

3. Build and Run Tasks

Build Task

-- image

4. Execution Output

Execution Output


Happy Coding! 💻✨


About

Learn how to integrate graphics.h into your C++ projects for creating stunning graphical user interfaces. This repository provides a step-by-step guide to set up and use graphics.h in VS Code with TDM-GCC

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages