Skip to content

Nayeem974/Lab-Assignment-5

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Graphics Lab Assignment 5 (MSYS2 UCRT64) — OpenGL (GLFW + GLAD)

Assignment

Create a rectangle that:

  1. Gradually changes color from red → white with time
  2. Magnifies (scales) in X and Y direction with time
  3. Rotates in the XY plane with time

This project is implemented using OpenGL 3.3 Core, GLFW, and GLAD.

Requirements (MSYS2 UCRT64)

Use the MSYS2 UCRT64 terminal and install the needed packages:

Makefile:

CXX := g++ TARGET := app.exe

CXXFLAGS := -O2 -Wall -std=c++17 $(shell pkg-config --cflags glfw3) LIBS := $(shell pkg-config --libs glfw3)

all: $(TARGET)

$(TARGET): main.o $(CXX) main.o -o $@ $(LIBS)

main.o: main.cpp $(CXX) $(CXXFLAGS) -c $< -o $@

run: $(TARGET) ./$(TARGET)

clean: rm -f *.o $(TARGET)

About

Create a rectangle that changes color gradually from red to white and it magnifies and rotates in xy direction with time.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages