This repository contains an OpenGL project for drawing a 3D robotic arm. The user can interact with the robotic arm and rotate its parts using the specified keys.
To ensure the project runs correctly on different platforms, specific libraries are included based on the operating system:
#ifdef __APPLE__ // MacOS
#define GL_SILENCE_DEPRECATION
#include <GLUT/glut.h>
#include <OpenGL/gl.h>
#include <OpenGL/glu.h>
#else // Windows and Linux
#include <GL/glut.h>
#include <GL/gl.h>
#include <GL/glu.h>
#endif
-
Shoulder Rotation:
- Key
o
: Rotates the shoulder clockwise. - Key
O
: Rotates the shoulder counterclockwiseo.
- Key
-
Elbow Rotation:
- Key
c
: Rotates the elbow clockwise. - Key
C
: Rotates the elbow counterclockwise.
- Key
-
Hand Rotation:
- Key
m
: Rotates the hand clockwise - Key
M
: Rotates the hand counterclockwise.
- Key
-
Thumb Rotation:
- Key
p
: Rotates the thumb clockwise. - Key
P
: Rotates the thumb counterclockwise.
- Key
-
Index Finger Rotation:
- Key
i
: Rotates the index finger clockwise. - Key
I
: Rotates the index finger counterclockwise.
- Key
-
Ring Finger Rotationr:
- Key
a
: Rotates the ring finger clockwise. - Key
A
: Rotates the ring finger counterclockwise.
- Key
-
Full Arm Rotation Around Y-Axis:
- Key
y
: Rotates the entire arm clockwise. - Key
Y
: Rotates the entire arm counterclockwise.
- Key
-
Exit the Program:
- Key
ESC
: Closes the program.
- Key
Feel free to open issues or submit pull requests. All contributions are welcome!
This project is licensed under the MIT License - see the LICENSE file for details.