CM3106 - Computer Graphics Using C
by yashppawar
Reference : Colorado BGI Docs
Installation
Download and install the cs1300-setup.msi1 from the CSCI 1300 Software Package2, then use the cs1300-command-prompt.exe
to build and run!
VS Code does not recognize <graphics.h>
to fix the above error, we update the C/C++ Configurations c_cpp_properties.json
and udpate the includePath
Build and Run!
The code files are C++ files, these can have any of the following extensions .C
, .cc
, .cpp
, .CPP
, .c++
, .cp
, or .cxx
.3
To build (in general) we will use the GNU g++ compiler
and then to execute the program
but for <graphics.h>
we will be using the bgi++
compiler provided in the CS1300 tools
Flags
various flags can be used to customize the output of the compiler
-g Generate source-level debug information
-o <file> Write output to <file>
-W<warning> Enable the specified warning
-Wall
will enable all warnings
-
https://home.cs.colorado.edu/~main/cs1300/cs1300-setup.msi ↩
-
CSCI 1300 Software Package - https://home.cs.colorado.edu/~main/cs1300/README.html ↩
-
C++ File Extensions : StackOverflow ↩