Skip to content

Set of OpenGL programs experimenting the OpenGL library using Python and C++.

Notifications You must be signed in to change notification settings

naseemshah/OpenGLlabs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Naseem's OpenGLlabs

Set of OpenGL programs experimenting the OpenGL library using Python and C++.

References

Refrences, tutorials, links, articles & videos used to make all the programs in this repo. Each reference is assigned a unique code and will be commented in the program. So that everyone can search and find references from the refernce page easily.

Reference page: https://github.com/naseemshah/OpenGLlabs/blob/master/Refrences/README.md

Logs

Each program is logged as they are committed. Use this section to find programs easily. (Latest first).
  • L106: Mid-point Line Algorithm

    Description: A program to draw a line using Mid-point Line Algorithm

    • Language: Python
    • Dependencies:
      • PyOpenGL
      • GLUT
    • Directory: /L106.py

    Screenshots

    Screenshot of inputing Screenshot of displaying a line using Midpoint Line Algorithm

  • L105: Line Algorithm: Bresenham

    Description: A program to draw a line using Bresenham Algorithm

    • Language: Python
    • Dependencies:
      • PyOpenGL
      • GLUT
    • Directory: /L105
    • Main file: bresenham.py

    Screenshots

    Screenshot of inputing Screenshot of displaying a line using DDA

  • L104: Line Algorithm: DDA

    Description: A program to draw a line using DDA

    • Language: Python
    • Dependencies:
      • PyOpenGL
      • GLUT
    • Directory: /L104
    • Main file: dda.py

    Screenshots

    Screenshot of inputing Screenshot of displaying a line using DDA

  • L103: Draw a line

    Description: A program to draw a line from 3 Lines of choice:

      Option 1 : Horizontal Line - ask for X-coordinate range and specific Y-coordinate and plot the line.
      
      Option 2 : Vertical Line - ask for specific X-coordinate and Y-coordinate range and plot the line.
    
      Option 3 : Diagonal Line - ask for inputs for example : the input : 5, 10; should plot the line (5,5) (6,6) (7,7) (8,8) (9,9) (10,10).
    
    • Language: Python
    • Dependencies:
      • PyOpenGL
      • GLUT
    • Directory: /L103
    • Main file: 3lines.py

    Screenshots

    Screenshot of displaying inputing Screenshot of displaying Vertical Line Screenshot of displaying inputing Screenshot of displaying Horizontal Line Screenshot of displaying inputing Screenshot of displaying diagonal Line

  • L101: Draw a square

    Description: A program to draw a square with a specific color.

    • Language: Python
    • Dependencies:
      • PyOpenGL
      • GLUT
    • Directory: /L101
    • Main file: square.py

    Screenshots

    Screenshot of displaying square

  • L100: Plot a point at origin

    Description: A program to plot an origin point.

    • Language: Python
    • Dependencies:
      • PyOpenGL
      • GLUT
    • Directory: /L100
    • Main file: origin.py

    Screenshots

    Screenshot of displaying a point at origin

About

Set of OpenGL programs experimenting the OpenGL library using Python and C++.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages