Skip to content

H-K-R/Computer-Graphics-Lab

Repository files navigation

Computer Graphics Lab

Lab Tasks

  • Draw the National Flag of Bangladesh ✓
  • Simulate two dimensional geometric ◦ Translation ✓ ◦ Rotation ✓ ◦ Scaling ✓
  • Draw a line with the Bresenham Line algorithm ✓
  • Draw a circle with the Midpoint Circle Drawing algorithm ✓
  • Simulate Visual Surface Detection ✓
  • Clip some lines with the Cohen Sutherland Line Clipping algorithm ✓
  • Clip polygon with the Sutherland Hodgman Polygon Clipping algorithm
  • Create a Bezier Curve ✓
  • Draw the Snowflake Pattern with Fractal Geometry ✓

CodeBlocks Setup Instructions

  • Download TDM GCC 32 Bit Compiler from this link
  • Download Graphics Library: https://drive.google.com/drive/folders/1bs9N7ltNUhxn6rEUG-w879sjuP38jO2c
  • Extract Graphics Library
  • Copy graphics.h & winbgim.h and paste it in C:\\TDM-GCC-32\\include
  • Copy libbgi.a & paste it in C:\\TDM-GCC-32\\lib
  • Now go to CodeBlocks -> Settings -> Compiler
  • Go to Toolchain executables & change Compiler's installation directory to C:\\TDM-GCC-32
  • Go to Linker Settigns -> Other linker options & add -lbgi -lgdi32 -lcomdlg32 -luuid -loleaut32 -lole32

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages